summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/roles/roles_menu.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/roles/roles_menu.php')
-rw-r--r--ldap-site-mngmt/webinterface/roles/roles_menu.php95
1 files changed, 0 insertions, 95 deletions
diff --git a/ldap-site-mngmt/webinterface/roles/roles_menu.php b/ldap-site-mngmt/webinterface/roles/roles_menu.php
deleted file mode 100644
index 246601e8..00000000
--- a/ldap-site-mngmt/webinterface/roles/roles_menu.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-
-
-function createRolesMenu($rollen , $mnr, $assocdom) {
- global $template;
- global $START_PATH;
- # Struktur der Registerkartenleiste
- if ($assocdom != ""){
- $hauptmenu = array(array("link" => "roles.php",
- "text" => "&Uuml;bersicht",
- "zugriff" => array("MainAdmin","DhcpAdmin")),
- array("link" => "role_show.php?role=MainAdmin&mnr=1",
- "text" => "Main Admins",
- "zugriff" => array("MainAdmin")),
- array("link" => "role_show.php?role=DhcpAdmin&mnr=2",
- "text" => "DHCP Admins",
- "zugriff" => array("MainAdmin")),
- array("link" => "role_show.php?role=HostAdmin&mnr=3",
- "text" => "Host Admins",
- "zugriff" => array("MainAdmin","DhcpAdmin")),
- array("link" => "role_show.php?role=RbsAdmin&mnr=4",
- "text" => "RBS Admins",
- "zugriff" => array("MainAdmin","DhcpAdmin")),
- #array("link" => "role_show.php?role=ZoneAdmin&mnr=4",
- # "text" => "DNS Admins",
- # "zugriff" => array("MainAdmin"))
- );
- }else{
- $hauptmenu = array(array("link" => "roles.php",
- "text" => "&Uuml;bersicht",
- "zugriff" => array("MainAdmin","DhcpAdmin")),
- array("link" => "role_show.php?role=MainAdmin&mnr=1",
- "text" => "Main Admins",
- "zugriff" => array("MainAdmin")),
- array("link" => "role_show.php?role=DhcpAdmin&mnr=2",
- "text" => "DHCP Admins",
- "zugriff" => array("MainAdmin")),
- array("link" => "role_show.php?role=HostAdmin&mnr=3",
- "text" => "Host Admins",
- "zugriff" => array("MainAdmin","DhcpAdmin")),
- array("link" => "role_show.php?role=RbsAdmin&mnr=4",
- "text" => "RBS Admins",
- "zugriff" => array("MainAdmin","DhcpAdmin"))
- );
- }
- # $rollen = array_keys($roles);
-
- # Zusammenstellen der Menuleiste
- $template->define_dynamic("Hauptmenu", "Menu");
- $i=0;
- foreach($hauptmenu as $item) {
- if($item['zugriff'] === "alle" || vergleicheArrays($rollen , $item['zugriff'])) {
- if ($i==0) {
- if ($mnr==0) {
- $zwisch="";
- $lastaktive=true;
- $farb="#505050";
- }
- else {
- $zwisch="";
- $farb="#A0A0A0";
- $lastaktive=false;
- }
- }
- else {
- if ($mnr==$i) {
- $zwisch="";
- $lastaktive=true;
- $farb="#505050";
- }
- else {
- $farb="#A0A0A0";
- if ($lastaktive) {$zwisch="";}
- else {$zwisch="";}
- $lastaktive=false;
- }
- }
- $template->assign(array("ZWISCHEN" => $zwisch,
- "FARBE" => $farb,
- "LINK_M" => $item["link"],
- "TEXT_M" => $item["text"]));
- $template->parse("HAUPTMENU_LIST", ".Hauptmenu");
-
- }
- $i=$i+1;
- }
- if ($lastaktive) {$template->assign(array("ENDE" => ""));}
- else {
- $template->assign(array("ENDE" => ""));
- }
-
-}
-
-
-?> \ No newline at end of file