Browse code

Change license from CC0 to 0BSD, all contributors agreed

Hanno Böck authored on 20/08/2022 09:22:23
Showing 1 changed files
... ...
@@ -2,14 +2,11 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2018 by schokokeks.org Hosting, namely
5
+Written by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 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/
9
+This code is published under a 0BSD license.
13 10
 
14 11
 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 12
 */
Browse code

Subuser-Berechtigungen nur für aktuell aktive Module

Bernd Wurst authored on 06/07/2018 11:32:35
Showing 1 changed files
... ...
@@ -35,7 +35,9 @@ if ($subusers) {
35 35
         output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>');
36 36
         output('<ul>');
37 37
         foreach ($subuser['modules'] as $mod) {
38
-            output('<li>'.$available_modules[$mod].'</li>');
38
+            if (isset($available_modules[$mod])) {
39
+                output('<li>'.$available_modules[$mod].'</li>');
40
+            }
39 41
         }
40 42
         output('</ul></div>');
41 43
     }
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.
... ...
@@ -29,22 +29,18 @@ $subusers = list_subusers();
29 29
 $available_modules = available_modules();
30 30
 DEBUG($available_modules);
31 31
 
32
-if ($subusers)
33
-{
34
-  output('<h4>Momentan vorhandene zusätzliche Admin-Zugänge</h4>');
35
-  foreach ($subusers as $subuser) {
36
-    output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>');
37
-    output('<ul>');
38
-    foreach ($subuser['modules'] as $mod) {
39
-      output('<li>'.$available_modules[$mod].'</li>');
32
+if ($subusers) {
33
+    output('<h4>Momentan vorhandene zusätzliche Admin-Zugänge</h4>');
34
+    foreach ($subusers as $subuser) {
35
+        output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>');
36
+        output('<ul>');
37
+        foreach ($subuser['modules'] as $mod) {
38
+            output('<li>'.$available_modules[$mod].'</li>');
39
+        }
40
+        output('</ul></div>');
40 41
     }
41
-    output('</ul></div>');
42
-  }
43
-  
44
-}
45
-else
46
-{
47
-  output('<p><em>Sie haben bisher keine zusätzlichen Admin-Zugänge</em></p>');
42
+} else {
43
+    output('<p><em>Sie haben bisher keine zusätzlichen Admin-Zugänge</em></p>');
48 44
 }
49 45
 
50 46
 addnew('edit.php', 'Neuen zusätzlichen Admin-Zugang anlegen...');
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

changed subusers module to only require systemuser privileges

Bernd Wurst authored on 19/03/2012 13:49:43
Showing 1 changed files
... ...
@@ -16,6 +16,8 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
16 16
 
17 17
 require_once('inc/icons.php');
18 18
 
19
+require_role(ROLE_SYSTEMUSER);
20
+
19 21
 include("subuser.php");
20 22
 
21 23
 title("Zusätzliche Admin-Zugänge");
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_once('inc/icons.php');
3 18
 
4 19
 include("subuser.php");
Browse code

Berechtigungen für Subuser neu gestaltet. Sind jetzt automatisch Kunde und Systemuser.

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2072 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on 23/11/2011 11:33:20
Showing 1 changed files
... ...
@@ -1,5 +1,4 @@
1 1
 <?php
2
-require_role(ROLE_SYSTEMUSER);
3 2
 require_once('inc/icons.php');
4 3
 
5 4
 include("subuser.php");
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,34 @@
1
+<?php
2
+require_role(ROLE_SYSTEMUSER);
3
+require_once('inc/icons.php');
4
+
5
+include("subuser.php");
6
+
7
+title("Zusätzliche Admin-Zugänge");
8
+
9
+output('<p>Sie können für dieses Admin-Interface zusätzliche Accounts anlegen, die dann nur Zugriff auf einzelne Module haben. So ist es z.B. möglich, einen Mail-Admin und einen Webserver-Admin festzulegen.</p><p><strong>Wichtig:</strong> Diese zusätzlichen Zugänge gelten ausschließlich für dieses Web-Interface, nicht für die Anmeldung am Server.</p>');
10
+
11
+$subusers = list_subusers();
12
+
13
+$available_modules = available_modules();
14
+DEBUG($available_modules);
15
+
16
+if ($subusers)
17
+{
18
+  output('<h4>Momentan vorhandene zusätzliche Admin-Zugänge</h4>');
19
+  foreach ($subusers as $subuser) {
20
+    output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>');
21
+    output('<ul>');
22
+    foreach ($subuser['modules'] as $mod) {
23
+      output('<li>'.$available_modules[$mod].'</li>');
24
+    }
25
+    output('</ul></div>');
26
+  }
27
+  
28
+}
29
+else
30
+{
31
+  output('<p><em>Sie haben bisher keine zusätzlichen Admin-Zugänge</em></p>');
32
+}
33
+
34
+addnew('edit.php', 'Neuen zusätzlichen Admin-Zugang anlegen...');