diff options
author | Tarik Gasmi | 2007-07-06 12:29:06 +0200 |
---|---|---|
committer | Tarik Gasmi | 2007-07-06 12:29:06 +0200 |
commit | 493c1dd8260f24f8bfaf9271418529011b0f2a80 (patch) | |
tree | 834619232835c4786d793848a7f99882034d7bd1 /ldap-site-mngmt/webinterface/rbs/rbservice.php | |
parent | Adjusted timings a little bit (waiting for scripts like hwautocfg to (diff) | |
download | core-493c1dd8260f24f8bfaf9271418529011b0f2a80.tar.gz core-493c1dd8260f24f8bfaf9271418529011b0f2a80.tar.xz core-493c1dd8260f24f8bfaf9271418529011b0f2a80.zip |
Actualised LDAP SiteManagement Webinterface and Perl-Config-Skripts
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1225 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/rbs/rbservice.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/rbs/rbservice.php | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/ldap-site-mngmt/webinterface/rbs/rbservice.php b/ldap-site-mngmt/webinterface/rbs/rbservice.php index 896acbf8..f3c5db7e 100644 --- a/ldap-site-mngmt/webinterface/rbs/rbservice.php +++ b/ldap-site-mngmt/webinterface/rbs/rbservice.php @@ -24,14 +24,18 @@ createRBSMenu($rollen, $mnr, $auDN, $sbmnr); ################################################################################### +$rbsDN = $_GET['rbsdn']; + $template->assign(array("RBSDN" => "", "CN" => "", "TFTP" => "", "TFTPIP" => "", + "TFTPROOT" => "", "INITBOOTFILE" => "", "TFTPKERNEL" => "", "TFTPPXE" => "", "TFTPCLIENTCONF" => "", + "FSURI" => "", "NFS" => "", "NFSIP" => "", "NFSPATH" => "", @@ -44,10 +48,8 @@ $template->assign(array("RBSDN" => "", "IP" => "")); # RBS Daten -$rbs_array = get_rbservices($auDN,array("dn","cn")); -$rbsDN = $rbs_array[0]['dn']; -$attributes = array("dn","cn","rbsofferdn","tftpserverip","tftpkernelpath","tftpclientconfpath","tftppxepath", - "nfsserverip","exportpath","nbdserverip","initbootfile"); +$attributes = array("dn","cn","rbsofferdn","tftpserverip","tftproot","tftpkernelpath","tftpclientconfpath", + "tftppxepath","nfsserverip","exportpath","nbdserverip","initbootfile","fileserveruri"); $rbs_data = get_node_data($rbsDN, $attributes); # RBS Anbieten @@ -82,6 +84,7 @@ $template->assign(array("RBSDN" => $rbs_data['dn'], "TFTP" => $tftpserver['hostname'], "TFTPDN" => $tftpserver['dn'], "TFTPIP" => $rbs_data['tftpserverip'], + "TFTPROOT" => $rbs_data['tftproot'], "INITBOOTFILE" => $rbs_data['initbootfile'], "TFTPKERNEL" => $rbs_data['tftpkernelpath'], "TFTPPXE" => $rbs_data['tftppxepath'], @@ -98,6 +101,7 @@ $template->assign(array("RBSDN" => $rbs_data['dn'], "MNR" => $mnr, "SBMNR" => $sbmnr)); +# RBS Offers $template->define_dynamic("Rbsoffers", "Webseite"); foreach ($rbsoffers as $offer){ $template->assign(array("RBSOFFER" => $offer['dn'], @@ -105,6 +109,19 @@ foreach ($rbsoffers as $offer){ $template->parse("RBSOFFERS_LIST", ".Rbsoffers"); } + +# Fileserver URIs +$template->define_dynamic("Fsuris", "Webseite"); +if ( count($rbs_data['fileserveruri']) > 1 ){ + foreach ($rbs_data['fileserveruri'] as $fsuri){ + $template->assign(array("FSURI" => $fsuri)); + $template->parse("FSURIS_LIST", ".Fsuris"); + } +}else{ + $template->assign(array("FSURI" => $rbs_data['fileserveruri'])); + $template->parse("FSURIS_LIST", ".Fsuris"); +} + ### Rechner $hostorgroup = $exp[0]; $hosts_array = get_hosts($auDN,array("dn","hostname","ipaddress")); |