From 59cf91925ca8da43d2427331b23e4673b0e53095 Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Mon, 14 May 2007 08:03:48 +0000 Subject: Other webinterface data. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1077 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/computers/new_pxe.php | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 ldap-site-mngmt/webinterface/computers/new_pxe.php (limited to 'ldap-site-mngmt/webinterface/computers/new_pxe.php') diff --git a/ldap-site-mngmt/webinterface/computers/new_pxe.php b/ldap-site-mngmt/webinterface/computers/new_pxe.php new file mode 100644 index 00000000..07890505 --- /dev/null +++ b/ldap-site-mngmt/webinterface/computers/new_pxe.php @@ -0,0 +1,130 @@ +assign(array("PXECN" => $pxecn, + "PXEDAY" => $pxeday, + "PXEBEG" => $pxebeg, + "PXEEND" => $pxeend, + # "LDAPURI" => "", + "FILEURI" => "", + "RBS" => "", + "RBSAU" => "", + "NFS" => "", + "NFSROOT" => "", + "TFTP" => "", + "TFTPROOT" => "", + "FILE" => "", + "ALLOW" => "", + "CONSOLE" => "", + "DEFAULT" => "menu.c32", + "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, + "SBMNR" => $sbmnr)); + +############################################# +# 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 -- cgit v1.2.3-55-g7522