summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/computers/dhcphost.php
diff options
context:
space:
mode:
authorTarik Gasmi2007-09-18 17:18:38 +0200
committerTarik Gasmi2007-09-18 17:18:38 +0200
commit12183ece8e4cb1bb81072a72f696572c8b3a07ee (patch)
tree1e7b274e6a4229d4d1819d4feaabe272b1037a62 /ldap-site-mngmt/webinterface/computers/dhcphost.php
parentAdded theme.conf for openslx theme for pxe. Only labels should be added autom... (diff)
downloadcore-12183ece8e4cb1bb81072a72f696572c8b3a07ee.tar.gz
core-12183ece8e4cb1bb81072a72f696572c8b3a07ee.tar.xz
core-12183ece8e4cb1bb81072a72f696572c8b3a07ee.zip
ldap-site-mngmt: actualized WebIF and DHCPConfig Generationscript
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1340 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/dhcphost.php')
-rw-r--r--ldap-site-mngmt/webinterface/computers/dhcphost.php18
1 files changed, 12 insertions, 6 deletions
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 "<br><br>";
$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 "<br>";
$sub = array_search('dhcpSubnet', $ocarray['objectclass']);
#print_r($sub);
@@ -89,7 +92,8 @@ if ($dhcphlpcont == ""){
$expsub = explode('=',$exp0[0]); $dhcpsub = $expsub[1];
$dhcp .= "Subnet <b>".$dhcpsub."</b> / ";
$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 == ""){
<td class='tab_d_ohne'>&nbsp;</td>
</tr>
<tr valign='top'>
- <td class='tab_d'><b>fixed-address:</b> &nbsp;</td>
- <td class='tab_d'>".$fixedaddress."&nbsp;</td>
- <td class='tab_d'>
+ <td class='tab_d_ohne'><b>fixed-address:</b> &nbsp;</td>
+ <td class='tab_d_ohne'>".$fixedaddress."&nbsp;</td>
+ <td class='tab_d_ohne'>
<select name='fixadd' size='3' class='medium_form_selectbox'>
".$fixedaddselopt."
</select>
@@ -170,6 +174,8 @@ $template->assign(array("HOSTDN" => $hostDN,
"HOST_DHCPOPT" => $host_dhcpopt,
"NEXTSERVER" => $host['dhcpoptnext-server'],
"FILENAME" => $host['dhcpoptfilename'],
+ "DEFAULTLEASE" => $dhcpdefaultlease,
+ "MAXLEASE" => $dhcpmaxlease,
"HOSTLINK" => "<a href='host.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"RBSLINK" => "<a href='rbshost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"HWLINK" => "<a href='hwhost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",