From 12183ece8e4cb1bb81072a72f696572c8b3a07ee Mon Sep 17 00:00:00 2001
From: Tarik Gasmi
Date: Tue, 18 Sep 2007 15:18:38 +0000
Subject: ldap-site-mngmt: actualized WebIF and DHCPConfig Generationscript
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1340 95ad53e4-c205-0410-b2fa-d234c58c8868
---
ldap-site-mngmt/webinterface/computers/dhcphost.php | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
(limited to 'ldap-site-mngmt/webinterface/computers/dhcphost.php')
diff --git a/ldap-site-mngmt/webinterface/computers/dhcphost.php b/ldap-site-mngmt/webinterface/computers/dhcphost.php
index 3eb07d19..27ce686b 100644
--- a/ldap-site-mngmt/webinterface/computers/dhcphost.php
+++ b/ldap-site-mngmt/webinterface/computers/dhcphost.php
@@ -31,11 +31,13 @@ $hostDN = $_GET['dn'];
# Rechner Daten
$attributes = array("hostname","domainname","ipaddress","hwaddress","description","hlprbservice",
"dhcphlpcont","dhcpoptfixed-address","dhcpopthardware","dhcpoptfilename",
- "dhcpoptnext-server","hw-mouse","hw-graphic","hw-monitor");
+ "dhcpoptnext-server","dhcpoptmax-lease-time","dhcpoptdefault-lease-time","hw-mouse","hw-graphic","hw-monitor");
$host = get_node_data($hostDN,$attributes);
$hostip = explode('_',$host['ipaddress']);
# print_r($hostip); echo "
";
$dhcphlpcont = $host['dhcphlpcont'];
+$dhcpmaxlease = $host['dhcpoptmax-lease-time'];
+$dhcpdefaultlease = $host['dhcpoptdefault-lease-time'];
$objectDN = $dhcphlpcont;
$rbsDN = $host['hlprbservice'];
@@ -79,7 +81,8 @@ if ($dhcphlpcont == ""){
# Host in Service oder Subnet?
$objecttype = "service";
$dhcp = "";
- $ocarray = get_node_data($dhcphlpcont,array("objectclass","dhcphlpcont"));
+
+ /*$ocarray = get_node_data($dhcphlpcont,array("objectclass","dhcphlpcont"));
#print_r($ocarray); echo "
";
$sub = array_search('dhcpSubnet', $ocarray['objectclass']);
#print_r($sub);
@@ -89,7 +92,8 @@ if ($dhcphlpcont == ""){
$expsub = explode('=',$exp0[0]); $dhcpsub = $expsub[1];
$dhcp .= "Subnet ".$dhcpsub." / ";
$dhcphlpcont = $ocarray['dhcphlpcont'];
- }
+ }*/
+
$exp1 = explode(',',$dhcphlpcont);
$expdhcp = explode('=',$exp1[0]); $dhcpserv = $expdhcp[1];
$expdhcpau = explode('=',$exp1[2]); $dhcpau = $expdhcpau[1];
@@ -146,9 +150,9 @@ if ($dhcphlpcont == ""){