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.
... ...
@@ -19,14 +19,8 @@ require_once('include/hasdomain.php');
19 19
 
20 20
 $role = $_SESSION['role'];
21 21
 
22
-if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_dotcourier_domain() ) )
23
-{
24
-  $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts", "weight" => 10);
22
+if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_dotcourier_domain())) {
23
+    $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts", "weight" => 10);
24
+} elseif ($role & ROLE_MAILACCOUNT) {
25
+    $menu["imap_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 10);
25 26
 }
26
-elseif ($role & ROLE_MAILACCOUNT)
27
-{
28
-  $menu["imap_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 10);
29
-}
30
-
31
-
32
-?>
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

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
 require_once('include/hasaccount.php');
4 18
 require_once('include/hasdomain.php');
Browse code

IMAP/POP3 nur anzeigen wenn es benötigt wird

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

bernd authored on11/03/2010 10:37:59
Showing1 changed files
... ...
@@ -1,10 +1,11 @@
1 1
 <?php
2 2
 
3 3
 require_once('include/hasaccount.php');
4
+require_once('include/hasdomain.php');
4 5
 
5 6
 $role = $_SESSION['role'];
6 7
 
7
-if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_regular_domain() ) )
8
+if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_dotcourier_domain() ) )
8 9
 {
9 10
   $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts", "weight" => 10);
10 11
 }
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
... ...
@@ -6,11 +6,11 @@ $role = $_SESSION['role'];
6 6
 
7 7
 if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_regular_domain() ) )
8 8
 {
9
-  $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
9
+  $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts", "weight" => 10);
10 10
 }
11 11
 elseif ($role & ROLE_MAILACCOUNT)
12 12
 {
13
-  $menu["imap_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 10);
13
+  $menu["imap_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 10);
14 14
 }
15 15
 
16 16
 
Browse code

IMAP/POP3 nur den usern anzeigen, die das brauchen

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

bernd authored on02/02/2008 15:57:35
Showing1 changed files
... ...
@@ -1,8 +1,10 @@
1 1
 <?php
2 2
 
3
+require_once('include/hasaccount.php');
4
+
3 5
 $role = $_SESSION['role'];
4 6
 
5
-if ($role & ROLE_SYSTEMUSER)
7
+if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_regular_domain() ) )
6 8
 {
7 9
   $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
8 10
 }
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_SYSTEMUSER)
... ...
@@ -13,8 +11,5 @@ elseif ($role & ROLE_MAILACCOUNT)
13 11
   $menu["imap_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 10);
14 12
 }
15 13
 
16
-if (empty($menu))
17
-  $menu = false;
18
-
19 14
 
20 15
 ?>
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
... ...
@@ -8,6 +8,10 @@ if ($role & ROLE_SYSTEMUSER)
8 8
 {
9 9
   $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
10 10
 }
11
+elseif ($role & ROLE_MAILACCOUNT)
12
+{
13
+  $menu["imap_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 10);
14
+}
11 15
 
12 16
 if (empty($menu))
13 17
   $menu = false;
Browse code

* Initialisierung der Session-Variablen ausgelagert * Rollen als Bitmaske * Ein user kann mehrere Rollen parallel annehmen * Primärer User erhält auch die Rechte des entsprechenden Kundenaccounts

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

bernd authored on30/07/2007 13:00:58
Showing1 changed files
... ...
@@ -4,11 +4,9 @@ $menu = array();
4 4
 
5 5
 $role = $_SESSION['role'];
6 6
 
7
-switch ($role)
7
+if ($role & ROLE_SYSTEMUSER)
8 8
 {
9
-  case ROLE_SYSTEMUSER:
10
-    $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
11
-    
9
+  $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
12 10
 }
13 11
 
14 12
 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)
... ...
@@ -9,4 +11,8 @@ switch ($role)
9 11
     
10 12
 }
11 13
 
14
+if (empty($menu))
15
+  $menu = false;
16
+
17
+
12 18
 ?>
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,12 @@
1
+<?php
2
+
3
+$role = $_SESSION['role'];
4
+
5
+switch ($role)
6
+{
7
+  case ROLE_SYSTEMUSER:
8
+    $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
9
+    
10
+}
11
+
12
+?>