diff options
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/new_pxe.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/computers/new_pxe.php | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/new_pxe.php b/ldap-site-mngmt/webinterface/computers/new_pxe.php deleted file mode 100644 index 3c4be824..00000000 --- a/ldap-site-mngmt/webinterface/computers/new_pxe.php +++ /dev/null @@ -1,115 +0,0 @@ -<?php - -include('../standard_header.inc.php'); - -# Dateiname und evtl. Pfad des Templates für die Webseite -$webseite = "new_pxe.dwt"; - -include('computers_header.inc.php'); - -$mnr = 2; -$sbmnr = 0; -$mcnr = -1; - -################################################################################### - -# Menuleisten erstellen -createMainMenu($rollen, $mainnr); -createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr); - -################################################################################### - -$pxecn = str_replace ( "_", " ", $_GET['pxecn']); -$pxeday = str_replace ( "_", " ", $_GET['pxeday']); -$pxebeg = str_replace ( "_", " ", $_GET['pxebeg']); -$pxeend = str_replace ( "_", " ", $_GET['pxeend']); - -$template->assign(array("PXECN" => $pxecn, - "PXEDAY" => $pxeday, - "PXEBEG" => $pxebeg, - "PXEEND" => $pxeend, - #"FILEURI" => "", - "RBS" => "", - "RBSAU" => "", - "FILE" => "", - "ALLOW" => "", - #"CONSOLE" => "", - #"DISPLAY" => "", - #"FONT" => "", - "IMPLICIT" => "", - #"KBDMAP" => "", - "MENMPW" => "", - "MENTIT" => "", - "NOESC" => "1", - "ONERR" => "", - "ONTIME" => "", - "PROMPT" => "0", - #"SAY" => "", - "SERIAL" => "", - "TIMEOUT" => "600", - "NODEDN" => "cn=rbs,".$auDN, - "HDN" => "none", - "HN" => "", - "GDN" => "none", - "GN" => "", - "MNR" => $mnr)); - -############################################# -# RB Dienste holen -$rbsoffers = get_rbsoffers($auDN); - -$template->assign(array("ALTRBSDN" => "", - "ALTRBSCN" => "", - "ALTRBSAU" => "")); - -if (count($rbsoffers) != 0){ -$template->define_dynamic("Altrbs", "Webseite"); - foreach ($rbsoffers as $item){ - $rbsdnexp = ldap_explode_dn($item,1); - $rbsoffcn = $rbsdnexp[0]; - $rbsoffau = $rbsdnexp[2]; - #$auexp = explode(',',$item['auDN']); - #$altrbsau = explode('=',$auexp[0]); - $template->assign(array("ALTRBSDN" => $item, - "ALTRBSCN" => $rbsoffcn, - "ALTRBSAU" => " [ Abt.: ".$rbsoffau." ]")); - $template->parse("ALTRBS_LIST", ".Altrbs"); - } -} - -################################################# -# Ziel Objekt (nur Rechner und Gruppen, nicht Default) - -$hostorgroup = $exp[0]; -$hgexp = explode('=',$exp[0]); - -$hosts_array = get_hosts($auDN,array("dn","hostname","hlprbservice","hwaddress"),""); -if ( count($hosts_array) != 0 ){ - $template->define_dynamic("Hosts", "Webseite"); - foreach ($hosts_array as $item){ - # Nur Hosts die in DHCP/TFTP angemeldet und deren MAC eingetragen ist (für PXE-Filename) - if ( $item['hlprbservice'] != "" && $item['hwaddress'] != "" ){ - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'])); - $template->parse("HOSTS_LIST", ".Hosts"); - } - } -} - -$groups_array = get_groups($auDN,array("dn","cn","hlprbservice")); -if ( count($groups_array) != 0 ){ - $template->define_dynamic("Groups", "Webseite"); - foreach ($groups_array as $item){ - if ( $item['hlprbservice'] != "" ){ - $template->assign(array("GDN" => $item['dn'], - "GN" => $item['cn'])); - $template->parse("GROUPS_LIST", ".Groups"); - } - } -} - -################################################################################### - -include("computers_footer.inc.php"); - -?>
\ No newline at end of file |