Code-Cleanups
bernd

bernd commited on 2007-12-08 16:29:04
Zeige 11 geänderte Dateien mit 0 Einfügungen und 58 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@845 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -1,7 +1,5 @@
1 1
 <?php
2 2
 
3
-$menu = array();
4
-
5 3
 $role = $_SESSION['role'];
6 4
 
7 5
 
... ...
@@ -10,7 +8,4 @@ if (($role & ROLE_CUSTOMER) || ($role & ROLE_SYSTEMUSER))
10 8
   $menu["domains_domains"] = array("label" => "Domains", "file" => "domains.php", "weight" => 1);
11 9
 }
12 10
 
13
-if (empty($menu))
14
-  $menu = false;
15
-
16 11
 ?>
... ...
@@ -1,13 +1,8 @@
1 1
 <?php
2 2
 
3
-$menu = array();
4
-
5 3
 $role = $_SESSION['role'];
6 4
 
7
-
8 5
 if ($role & ROLE_SYSTEMUSER)
9 6
 {
10 7
   $menu["freewvs_freewvs"] = array("label" => "FreeWVS", "file" => "freewvs.php", "weight" => 1, "submenu" => "vhosts_vhosts");
11 8
 }
12
-else
13
-  $menu=false;
... ...
@@ -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
 ?>
... ...
@@ -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
 ?>
... ...
@@ -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_CUSTOMER)
... ...
@@ -10,7 +8,4 @@ if ($role & ROLE_CUSTOMER)
10 8
     
11 9
 }
12 10
 
13
-if (empty($menu))
14
-  $menu = false;
15
-
16 11
 ?>
... ...
@@ -1,5 +1,4 @@
1 1
 <?php
2
-$menu = array();
3 2
 
4 3
 $role = $_SESSION['role'];
5 4
 
... ...
@@ -8,9 +7,4 @@ if ($role & ROLE_SYSTEMUSER)
8 7
   $menu["mysql_databases"] = array("label" => "MySQL-Datenbank", "file" => "databases.php", "weight" => 20);
9 8
     
10 9
 }
11
-
12
-if (empty($menu))
13
-  $menu = false;
14
-
15
-
16 10
 ?>
... ...
@@ -1,6 +1,5 @@
1 1
 <?php
2 2
 
3
-$menu = array();
4 3
 $role = $_SESSION['role'];
5 4
 
6 5
 switch ($role)
... ...
@@ -11,7 +10,4 @@ switch ($role)
11 10
     
12 11
 }
13 12
 
14
-if (empty($menu))
15
-  $menu = false;
16
-
17 13
 ?>
... ...
@@ -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_SYSADMIN)
... ...
@@ -9,7 +7,4 @@ if ($role & ROLE_SYSADMIN)
9 7
   $menu["su_su"] = array("label" => "Su-Login", "file" => "su.php", "weight" => -10);
10 8
 }
11 9
 
12
-if (empty($menu))
13
-  $menu = false;
14
-
15 10
 ?>
... ...
@@ -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_CUSTOMER)
... ...
@@ -9,7 +7,4 @@ if ($role & ROLE_CUSTOMER)
9 7
   $menu["systemuser_accounts"] = array("label" => "Benutzeraccounts", "file" => "accounts.php", "weight" => 30);
10 8
 }
11 9
 
12
-if (empty($menu))
13
-  $menu = false;
14
-
15 10
 ?>
... ...
@@ -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)
... ...
@@ -9,8 +7,4 @@ if ($role & ROLE_SYSTEMUSER)
9 7
     $menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts.php", "weight" => 1);
10 8
 }
11 9
 
12
-if (empty($menu))
13
-  $menu = false;
14
-
15
-
16 10
 ?>
... ...
@@ -1,7 +1,5 @@
1 1
 <?php
2 2
 
3
-$menu = array();
4
-
5 3
 $role = $_SESSION['role'];
6 4
 
7 5
 require_once('include/hasdomain.php');
... ...
@@ -11,9 +9,4 @@ if (($role & ROLE_SYSTEMUSER) && user_has_vmail_domain())
11 9
   $menu["vmail_accounts"] = array("label" => "E-Mail", "file" => "accounts.php", "weight" => 10);
12 10
 }
13 11
 
14
-
15
-if (empty($menu))
16
-  $menu = false;
17
-
18
-
19 12
 ?>
20 13