Browse code

Fix coding style with php-cs-checker, see https://cs.sensiolabs.org/

Hanno authored on 26/06/2018 13:58:19
Showing 1 changed files
... ...
@@ -8,7 +8,7 @@ Written 2008-2018 by schokokeks.org Hosting, namely
8 8
 
9 9
 To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10 10
 
11
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
11
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
12 12
 http://creativecommons.org/publicdomain/zero/1.0/
13 13
 
14 14
 Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
... ...
@@ -20,21 +20,21 @@ include("subuser.php");
20 20
 $section = 'subusers_subusers';
21 21
 
22 22
 if (!isset($_POST['username']) || $_POST['username'] == '') {
23
-  system_failure("Der Benutzername muss eingegeben werden!");
23
+    system_failure("Der Benutzername muss eingegeben werden!");
24 24
 }
25 25
 if (!isset($_POST['modules']) || count($_POST['modules']) == 0) {
26
-  system_failure("Der zusätzliche Zugang muss irgendwelche Rechte erhalten!");
26
+    system_failure("Der zusätzliche Zugang muss irgendwelche Rechte erhalten!");
27 27
 }
28 28
 
29 29
 $_POST['username'] = $_SESSION['userinfo']['username'].'_'.$_POST['username'];
30 30
 
31 31
 if (isset($_GET['id']) && (int) $_GET['id'] != 0) {
32
-  edit_subuser($_GET['id'], $_POST['username'], $_POST['modules'], $_POST['password']);
32
+    edit_subuser($_GET['id'], $_POST['username'], $_POST['modules'], $_POST['password']);
33 33
 } else {
34
-  new_subuser($_POST['username'], $_POST['modules'], $_POST['password']);
34
+    new_subuser($_POST['username'], $_POST['modules'], $_POST['password']);
35 35
 }
36 36
 
37 37
 
38
-if (! $debugmode)
39
-  header('Location: subusers');
40
-
38
+if (! $debugmode) {
39
+    header('Location: subusers');
40
+}
Browse code

Copyright year update

Bernd Wurst authored on 13/01/2018 06:07:05
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2014 by schokokeks.org Hosting, namely
5
+Written 2008-2018 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Lizenzinfos in eigenes Modul ausgelagert und Copyright auf 2014 angepasst

Bernd Wurst authored on 08/02/2014 05:45:07
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2013 by schokokeks.org Hosting, namely
5
+Written 2008-2014 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Updated copyright notice (2012 => 2013)

Bernd Wurst authored on 19/01/2013 10:49:50
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2012 by schokokeks.org Hosting, namely
5
+Written 2008-2013 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Added license tags for CC0, README and COPYING

Bernd Wurst authored on 11/03/2012 15:40:04
Showing 1 changed files
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
2
+/*
3
+This file belongs to the Webinterface of schokokeks.org Hosting
4
+
5
+Written 2008-2012 by schokokeks.org Hosting, namely
6
+  Bernd Wurst <bernd@schokokeks.org>
7
+  Hanno Böck <hanno@schokokeks.org>
8
+
9
+To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10
+
11
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12
+http://creativecommons.org/publicdomain/zero/1.0/
13
+
14
+Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
15
+*/
16
+
2 17
 require_role(ROLE_SYSTEMUSER);
3 18
 include("subuser.php");
4 19
 
Browse code

Subusers-Modul in einer ersten funktionsfähigen Version

Bernd Wurst authored on 23/11/2011 11:00:31
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+<?php
2
+require_role(ROLE_SYSTEMUSER);
3
+include("subuser.php");
4
+
5
+$section = 'subusers_subusers';
6
+
7
+if (!isset($_POST['username']) || $_POST['username'] == '') {
8
+  system_failure("Der Benutzername muss eingegeben werden!");
9
+}
10
+if (!isset($_POST['modules']) || count($_POST['modules']) == 0) {
11
+  system_failure("Der zusätzliche Zugang muss irgendwelche Rechte erhalten!");
12
+}
13
+
14
+$_POST['username'] = $_SESSION['userinfo']['username'].'_'.$_POST['username'];
15
+
16
+if (isset($_GET['id']) && (int) $_GET['id'] != 0) {
17
+  edit_subuser($_GET['id'], $_POST['username'], $_POST['modules'], $_POST['password']);
18
+} else {
19
+  new_subuser($_POST['username'], $_POST['modules'], $_POST['password']);
20
+}
21
+
22
+
23
+if (! $debugmode)
24
+  header('Location: subusers');
25
+