summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/roles/roles_menu.php
diff options
context:
space:
mode:
authorLars Müller2008-03-01 19:04:26 +0100
committerLars Müller2008-03-01 19:04:26 +0100
commitcd46d68991f7ae0cf319f915c5fecdd71b78ee34 (patch)
treee9a48065f3203c8e16b14f82216452810d0f53ee /ldap-site-mngmt/webinterface/roles/roles_menu.php
parentOptimizations, improvements ... (diff)
downloadcore-cd46d68991f7ae0cf319f915c5fecdd71b78ee34.tar.gz
core-cd46d68991f7ae0cf319f915c5fecdd71b78ee34.tar.xz
core-cd46d68991f7ae0cf319f915c5fecdd71b78ee34.zip
Reorganisation of the repo structure as discussed on the devel list.
- Move the majority of trunk and all branches to the new openslx/ dir. - Move ldap-site-mngmt to contrib/. - Move openslx/trunk/os-plugins/plugins/vmchooser/src/ to openslx-src-tools/trunk/os-plugins/plugins/vmchooser/ git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1591 95ad53e4-c205-0410-b2fa-d234c58c8868
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