From cd46d68991f7ae0cf319f915c5fecdd71b78ee34 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Sat, 1 Mar 2008 18:04:26 +0000 Subject: 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 --- .../webinterface/computers/computers_menu.php | 250 --------------------- 1 file changed, 250 deletions(-) delete mode 100644 ldap-site-mngmt/webinterface/computers/computers_menu.php (limited to 'ldap-site-mngmt/webinterface/computers/computers_menu.php') diff --git a/ldap-site-mngmt/webinterface/computers/computers_menu.php b/ldap-site-mngmt/webinterface/computers/computers_menu.php deleted file mode 100644 index 1ab98526..00000000 --- a/ldap-site-mngmt/webinterface/computers/computers_menu.php +++ /dev/null @@ -1,250 +0,0 @@ - "computers.php", - # "text" => "Übersicht", - # "zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin")), - array("link" => "hostoverview.php?sort=hostname", - "text" => "Übersicht Rechner", - "zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin")), - array("link" => $iprechnerlink, - "text" => "IP Adressen Rechner", - "zugriff" => array("MainAdmin","DhcpAdmin","HostAdmin")), - #array("link" => "groupoverview.php", - # "text" => "Rechnergruppen", - # "zugriff" => array("MainAdmin")), - #array("link" => "machineconfig_default.php", - # "text" => "Default MachineConfigs", - # "zugriff" => array("MainAdmin","HostAdmin")), - #array("link" => "new_mcdef.php", - # "text" => "Neue MachineConfig", - # "zugriff" => array("MainAdmin","HostAdmin")), - array("link" => "pxeconfigs.php", - "text" => "PXE Configs", - "zugriff" => array("MainAdmin","DhcpAdmin"))); - - # Submenus - /*$computers_array = get_hosts($auDN,array("dn","hostname","ou")); - for($n=0;$n "host.php?dn=".$computers_array[$n]['dn']."&sbmnr=".$n, - "text" => $computers_array[$n]['hostname'], - "zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin")); - # print_r($comps); echo "
"; - }*/ - $comps[] = array("link" => "new_host.php?sbmnr=0", #.$n, - "text" => "Neuen Rechner anlegen", - "zugriff" => array("MainAdmin","DhcpAdmin","HostAdmin")); - - $groups_array = get_groups($auDN,array("dn","cn")); - for($n=0;$n "group.php?dn=".$groups_array[$n]['dn']."&sbmnr=".$n, - "text" => $groups_array[$n]['cn'], - "zugriff" => array("MainAdmin","DhcpAdmin","HostAdmin")); - - } - $groups[] = array("link" => "new_group.php?sbmnr=".$n, - "text" => "Neue Gruppe anlegen", - "zugriff" => array("MainAdmin","DhcpAdmin","HostAdmin")); - - # default machine-configs - $mcdef_array = get_machineconfigs("cn=computers,".$auDN,array("dn","cn","timerange")); - for($n=0;$n "mcdef.php?dn=".$mcdef_array[$n]['dn']."&mnr=3&sbmnr=".$n, - "text" => $mcdef_array[$n]['cn'], - "zugriff" => array("MainAdmin","DhcpAdmin","HostAdmin")); - } - - $newpxe[] = array("link" => "new_pxe.php", - "text" => "Neue PXE Config anlegen", - "zugriff" => array("MainAdmin","DhcpAdmin")); - - $submenu = array(#array(), - $comps, - array(), - #$groups, - #$defmc, - $newpxe); - #echo "submenu: ";print_r($submenu);echo "

"; - - # Zusammenstellen der Menuleiste - $template->define_dynamic("Hauptmenu", "Menu"); - $template->define_dynamic("Submenu", "Menu"); - $i=0; - - $maxmenu = count($hauptmenu); - foreach($hauptmenu as $item){ - $template->clear_parse("SUBMENU_LIST"); - - if($item['zugriff'] === "alle" || vergleicheArrays($rollen , $item['zugriff'])) { - - ######################################################################### - # SUBMENU - - $subempty = 0; - $j=0; - $maxsub = count($submenu[$mnr]); - #echo "_"; print_r($maxsub); echo "_"; - if($maxsub > 0){ - foreach($submenu[$mnr] as $item2) { - - if($item2['zugriff'] === "alle" || vergleicheArrays($rollen, $item2['zugriff'])) { - - - if($i != $mnr){ - $template->assign(array("SUB" => "")); - # "LINK_S" => "", - # "TEXT_S" => "")); - $template->parse("SUBMENU_LIST", ".Submenu"); - $template->clear_dynamic("Submenu"); - } - else{ - if ($j==0) { - if ($sbmnr==0) { - if($maxsub == 1){$zwisch2="branchbottom2";} - else {$zwisch2="branch2";} - $lastaktive=true; - $farb="#505050"; - } - else{ - if ($maxsub == 1) {$zwisch2="branchbottom2";} - # Wenn Unter-Unter-Menu ... - #if(count($subsubmenu[$i][$j][0]) != 0){ - #if($maxsub == 1){$zwisch2=" - # ";} - #else {$zwisch2=" - # ";} - #} - else{$zwisch2="branch2";} - $farb="#A0A0A0"; - $lastaktive=false; - } - } - else { - if ($sbmnr==$j) { - if($maxsub == $j+1){$zwisch2="branchbottom2";} - else {$zwisch2="branch2";} - $lastaktive=true; - $farb="#505050"; - } - else { - if ($maxsub == $j+1) {$zwisch2="branchbottom2";} - # Wenn Unter-Unter-Menu ... - #if(count($subsubmenu[$i][$j][0]) != 0){ - # if($maxsub == $i+1){$zwisch2=" - # ";} - # else {$zwisch2=" - # ";} - #} - else{$zwisch2="branch2";} - $farb="#A0A0A0"; - $lastaktive=false; - } - } - $htmlcode= " - - - - -   - -   - - ".$item2['text']." -   - - "; - $template->assign(array("SUB" => $htmlcode)); - $template->assign(array("FARBE_S" => $farb)); - $template->parse("SUBMENU_LIST", ".Submenu"); - $template->clear_dynamic("Submenu"); - } - } - else { - $subempty++; - } - $j=$j+1; - } - } - if($subempty == count($submenu[$mnr])) { - $template->assign(array("SUB" => "")); - # "LINK_S" => "", - # "TEXT_S" => "")); - $template->parse("SUBMENU_LIST", ".Submenu"); - $template->clear_dynamic("Submenu"); - - } - # SUBMENU - ##################################################################### - - if ($i==0) { - if ($mnr==0) { - if(count($submenu[$i][0]) != 0){ - if($maxmenu == 1){$zwisch="";} # {$zwisch="";} - else {$zwisch="";} - }else{$zwisch="";} - $lastaktive=true; - $farb="#505050"; - } - else{ - if(count($submenu[$i][0]) != 0){ - if($maxmenu == 1){$zwisch=" - ";} - else {$zwisch=" - ";} - }else{$zwisch="";} - $farb="#A0A0A0"; - $lastaktive=false; - } - } - else { - if ($mnr==$i) { - if(count($submenu[$mnr][0]) != 0){ - if($maxmenu == $i+1){$zwisch="";} - else {$zwisch="";} - }else{$zwisch="";} - $lastaktive=true; - $farb="#505050"; - } - else { - - if(count($submenu[$i][0]) != 0){ - if($maxmenu == $i+1){$zwisch=" - ";} - else {$zwisch=" - ";} - }else{$zwisch="";} - $farb="#A0A0A0"; - $lastaktive=false; - } - } - $template->assign(array("ICON" => $zwisch, - "FARBE" => $farb, - "LINK_M" => $item["link"], - "TEXT_M" => $item["text"])); - $template->parse("HAUPTMENU_LIST", ".Hauptmenu"); - $template->clear_dynamic("Hauptmenu"); - } - $i=$i+1; - } - if ($lastaktive) {$template->assign(array("ENDE" => ""));} - else{ - $template->assign(array("ENDE" => "")); - } -} -?> \ No newline at end of file -- cgit v1.2.3-55-g7522