diff options
| author | Tarik Gasmi | 2007-07-31 09:29:53 +0200 |
|---|---|---|
| committer | Tarik Gasmi | 2007-07-31 09:29:53 +0200 |
| commit | c7b4e4a81d7f38c0f1f927f6804ef281c4f67dcd (patch) | |
| tree | 974eb0c95d0ff2678439b161246433cde972564d /ldap-site-mngmt/webinterface/rbs/rbservice.php | |
| parent | * more work towards Debian & Ubuntu support, Debian-4.0, Ubuntu-6.10 (diff) | |
| download | core-c7b4e4a81d7f38c0f1f927f6804ef281c4f67dcd.tar.gz core-c7b4e4a81d7f38c0f1f927f6804ef281c4f67dcd.tar.xz core-c7b4e4a81d7f38c0f1f927f6804ef281c4f67dcd.zip | |
Actualized LDAP SiteManagement Code - Web Interface, DHCP Generationscript
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1284 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 | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/ldap-site-mngmt/webinterface/rbs/rbservice.php b/ldap-site-mngmt/webinterface/rbs/rbservice.php index f3c5db7e..b6b7162d 100644 --- a/ldap-site-mngmt/webinterface/rbs/rbservice.php +++ b/ldap-site-mngmt/webinterface/rbs/rbservice.php @@ -75,9 +75,8 @@ $name = array_slice($expcn,1); $rbscn = implode('_',$name); # Server Hostnamen holen -$tftpserver = get_hostname_from_ip($rbs_data['tftpserverip'],$auDN); -$nfsserver = get_hostname_from_ip($rbs_data['nfsserverip'],$auDN); -$nbdserver = get_hostname_from_ip($rbs_data['nbdserverip'],$auDN); +$tftpserver = get_hostname_from_ip($rbs_data['tftpserverip']); +#print_r($tftpserver); $template->assign(array("RBSDN" => $rbs_data['dn'], "RBSCN" => $rbscn, @@ -127,21 +126,14 @@ $hostorgroup = $exp[0]; $hosts_array = get_hosts($auDN,array("dn","hostname","ipaddress")); $template->define_dynamic("TftpHosts", "Webseite"); -$template->define_dynamic("NfsHosts", "Webseite"); -$template->define_dynamic("NbdHosts", "Webseite"); foreach ($hosts_array as $item){ - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'], - "IP" => $item['ipaddress'])); - $template->parse("TFTPHOSTS_LIST", ".TftpHosts"); - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'], - "IP" => $item['ipaddress'])); - $template->parse("NFSHOSTS_LIST", ".NfsHosts"); - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'], - "IP" => $item['ipaddress'])); - $template->parse("NBDHOSTS_LIST", ".NbdHosts"); + if ($item['ipaddress'] != "" && $item['hostname'] != $tftpserver['hostname']){ + $hostip = explode("_",$item['ipaddress']); + $template->assign(array("HDN" => $item['dn'], + "HN" => $item['hostname'], + "IP" => $hostip[0])); + $template->parse("TFTPHOSTS_LIST", ".TftpHosts"); + } } ################################################ |
