Browse code

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

Hanno authored on26/06/2018 13:58:19
Showing1 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.
... ...
@@ -17,17 +17,15 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
17 17
 $role = $_SESSION['role'];
18 18
 
19 19
 if ($role == ROLE_ANONYMOUS) {
20
-  $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
20
+    $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
21 21
 } else {
22
-  if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT))
23
-    $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
24
-  if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
25
-    $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
26
-  }
27
-
28
-  $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99);
29
-  $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0);
22
+    if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT)) {
23
+        $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
24
+    }
25
+    if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
26
+        $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
27
+    }
28
+
29
+    $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99);
30
+    $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0);
30 31
 }
31
-
32
-
33
-?>
Browse code

Certlogin aus dem Menü entfernt

Bernd Wurst authored on13/02/2018 15:07:53
Showing1 changed files
... ...
@@ -18,7 +18,6 @@ $role = $_SESSION['role'];
18 18
 
19 19
 if ($role == ROLE_ANONYMOUS) {
20 20
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
21
-  $menu["certlogin"] = array("label" => "Zertifikat-Login", "file" => "certlogin", "weight" => 10);
22 21
 } else {
23 22
   if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT))
24 23
     $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
Browse code

E-Mail-Adresse verifizieren in das neue Modul integriert

Bernd Wurst authored on12/01/2018 11:49:16
Showing1 changed files
... ...
@@ -25,9 +25,6 @@ if ($role == ROLE_ANONYMOUS) {
25 25
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
26 26
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
27 27
   }
28
-  if ($role & ROLE_CUSTOMER) {
29
-    $menu["index_chdetails"] = array("label" => "Adressen ändern", "file" => "chdetails", "weight" => 1, "submenu" => "index_index");
30
-  }
31 28
 
32 29
   $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99);
33 30
   $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0);
Browse code

Erster Entwurf einer UI für Kundendaten

Bernd Wurst authored on01/12/2017 11:27:59
Showing1 changed files
... ...
@@ -25,6 +25,9 @@ if ($role == ROLE_ANONYMOUS) {
25 25
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
26 26
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
27 27
   }
28
+  if ($role & ROLE_CUSTOMER) {
29
+    $menu["index_chdetails"] = array("label" => "Adressen ändern", "file" => "chdetails", "weight" => 1, "submenu" => "index_index");
30
+  }
28 31
 
29 32
   $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99);
30 33
   $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0);
Browse code

Copyright year update

Bernd Wurst authored on13/01/2018 06:07:05
Showing1 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 on08/02/2014 05:45:07
Showing1 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

jQuery-based Certlogin, so entfällt ein Mausklick

Bernd Wurst authored on23/01/2013 10:36:54
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ $role = $_SESSION['role'];
18 18
 
19 19
 if ($role == ROLE_ANONYMOUS) {
20 20
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
21
-  $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10);
21
+  $menu["certlogin"] = array("label" => "Zertifikat-Login", "file" => "certlogin", "weight" => 10);
22 22
 } else {
23 23
   if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT))
24 24
     $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
Browse code

Updated copyright notice (2012 => 2013)

Bernd Wurst authored on19/01/2013 10:49:50
Showing1 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 on11/03/2012 15:40:04
Showing1 changed files
... ...
@@ -1,4 +1,18 @@
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
+*/
2 16
 
3 17
 $role = $_SESSION['role'];
4 18
 
Browse code

Ermögliche Client-Cert-Login auch für VMail-Accounts

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

bernd authored on05/03/2012 06:19:25
Showing1 changed files
... ...
@@ -6,7 +6,7 @@ if ($role == ROLE_ANONYMOUS) {
6 6
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
7 7
   $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10);
8 8
 } else {
9
-  if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER))
9
+  if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT))
10 10
     $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
11 11
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
12 12
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
Browse code

Passwort-Ändern geht jetzt auch für Subuser

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

bernd authored on01/10/2010 10:45:36
Showing1 changed files
... ...
@@ -8,7 +8,7 @@ if ($role == ROLE_ANONYMOUS) {
8 8
 } else {
9 9
   if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER))
10 10
     $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
11
-  if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER) && ! $role & ROLE_SUBUSER) {
11
+  if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
12 12
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
13 13
   }
14 14
 
Browse code

Cert-Login geht jetztauch mit sub-usern

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

bernd authored on01/10/2010 10:45:35
Showing1 changed files
... ...
@@ -6,7 +6,7 @@ if ($role == ROLE_ANONYMOUS) {
6 6
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
7 7
   $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10);
8 8
 } else {
9
-  if ($role & ROLE_SYSTEMUSER && ! ($role & ROLE_SUBUSER))
9
+  if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER))
10 10
     $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
11 11
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER) && ! $role & ROLE_SUBUSER) {
12 12
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
Browse code

Erlaube subusers, die nur Zugriff auf bestimmte Module haben

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

bernd authored on01/10/2010 10:45:34
Showing1 changed files
... ...
@@ -6,9 +6,9 @@ if ($role == ROLE_ANONYMOUS) {
6 6
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
7 7
   $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10);
8 8
 } else {
9
-  if ($role & ROLE_SYSTEMUSER)
9
+  if ($role & ROLE_SYSTEMUSER && ! ($role & ROLE_SUBUSER))
10 10
     $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
11
-  if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
11
+  if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER) && ! $role & ROLE_SUBUSER) {
12 12
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
13 13
   }
14 14
 
Browse code

Menü-Einträge nicht gleich gewichten

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

bernd authored on12/09/2010 07:22:40
Showing1 changed files
... ...
@@ -4,10 +4,10 @@ $role = $_SESSION['role'];
4 4
 
5 5
 if ($role == ROLE_ANONYMOUS) {
6 6
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
7
-  $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 0);
7
+  $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10);
8 8
 } else {
9 9
   if ($role & ROLE_SYSTEMUSER)
10
-    $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 0, "submenu" => "index_index");
10
+    $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
11 11
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
12 12
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
13 13
   }
Browse code

Login via Client-Zertifikat (userinterface)

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

bernd authored on05/03/2009 11:13:27
Showing1 changed files
... ...
@@ -6,6 +6,8 @@ if ($role == ROLE_ANONYMOUS) {
6 6
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
7 7
   $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 0);
8 8
 } else {
9
+  if ($role & ROLE_SYSTEMUSER)
10
+    $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 0, "submenu" => "index_index");
9 11
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
10 12
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
11 13
   }
Browse code

Login vial Client-Cert über Unterverzeichnis

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

bernd authored on05/03/2009 09:14:11
Showing1 changed files
... ...
@@ -4,6 +4,7 @@ $role = $_SESSION['role'];
4 4
 
5 5
 if ($role == ROLE_ANONYMOUS) {
6 6
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
7
+  $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 0);
7 8
 } else {
8 9
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
9 10
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
Browse code

eliminate .php extensions for URLs

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

bernd authored on08/08/2008 19:32:32
Showing1 changed files
... ...
@@ -3,14 +3,14 @@
3 3
 $role = $_SESSION['role'];
4 4
 
5 5
 if ($role == ROLE_ANONYMOUS) {
6
-  $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0);
6
+  $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
7 7
 } else {
8 8
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
9
-    $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98);
9
+    $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
10 10
   }
11 11
 
12
-  $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99);
13
-  $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0);
12
+  $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99);
13
+  $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0);
14 14
 }
15 15
 
16 16
 
Browse code

Code-Cleanups

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

bernd authored on08/12/2007 16:29:04
Showing1 changed files
... ...
@@ -1,7 +1,5 @@
1 1
 <?php
2 2
 
3
-$menu = array();
4
-
5 3
 $role = $_SESSION['role'];
6 4
 
7 5
 if ($role == ROLE_ANONYMOUS) {
... ...
@@ -15,8 +13,5 @@ if ($role == ROLE_ANONYMOUS) {
15 13
   $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0);
16 14
 }
17 15
 
18
-if (empty($menu))
19
-  $menu = false;
20
-
21 16
 
22 17
 ?>
Browse code

Auch mailaccounts können sich einloggen

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

bernd authored on13/08/2007 13:15:55
Showing1 changed files
... ...
@@ -4,16 +4,15 @@ $menu = array();
4 4
 
5 5
 $role = $_SESSION['role'];
6 6
 
7
-switch ($role)
8
-{
9
-  case ROLE_ANONYMOUS:
10
-    $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0);
11
-    break;
12
-  default:
13
-    $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99);
7
+if ($role == ROLE_ANONYMOUS) {
8
+  $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0);
9
+} else {
10
+  if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
14 11
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98);
15
-    $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0);
16
-    
12
+  }
13
+
14
+  $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99);
15
+  $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0);
17 16
 }
18 17
 
19 18
 if (empty($menu))
Browse code

Menü-Includes sinnvoller / Debug-Modus über config abschaltbar

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

bernd authored on01/07/2007 16:21:48
Showing1 changed files
... ...
@@ -1,5 +1,7 @@
1 1
 <?php
2 2
 
3
+$menu = array();
4
+
3 5
 $role = $_SESSION['role'];
4 6
 
5 7
 switch ($role)
... ...
@@ -14,4 +16,8 @@ switch ($role)
14 16
     
15 17
 }
16 18
 
19
+if (empty($menu))
20
+  $menu = false;
21
+
22
+
17 23
 ?>
Browse code

webinterface => /webinterface

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

bernd authored on27/03/2007 07:40:51
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+$role = $_SESSION['role'];
4
+
5
+switch ($role)
6
+{
7
+  case ROLE_ANONYMOUS:
8
+    $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0);
9
+    break;
10
+  default:
11
+    $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99);
12
+    $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98);
13
+    $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0);
14
+    
15
+}
16
+
17
+?>