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/host_change.php | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
(limited to 'ldap-site-mngmt/webinterface/computers/host_change.php')
diff --git a/ldap-site-mngmt/webinterface/computers/host_change.php b/ldap-site-mngmt/webinterface/computers/host_change.php
index a0e149b7..52df970f 100644
--- a/ldap-site-mngmt/webinterface/computers/host_change.php
+++ b/ldap-site-mngmt/webinterface/computers/host_change.php
@@ -57,7 +57,7 @@ echo "Host DN:"; print_r($hostDN); echo "
";
echo "submenuNR:"; print_r($submenu); echo "
";
*/
-$seconds = 200;
+$seconds = 2;
$url = 'host.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
echo "
@@ -89,6 +89,7 @@ if ( $oldhostname != "" && $hostname != "" && $oldhostname != $hostname ){
$newhostDN = "hostname=".$hostname.",cn=computers,".$auDN;
# print_r($newhostDN); echo "
";
modify_host_dn($hostDN, $newhostDN);
+ $hostDN = $newhostDN;
# newsubmenu holen...hosts neu holen, sortieren, ->position
#$newhosts = get_hosts($auDN,array("dn"));
@@ -231,9 +232,9 @@ if ( $oldip == "" && $ip != "" ){
# print_r($newip); echo "
";
if (new_ip_host($newip,$hostDN,$auDN)){
$mesg = "IP erfolgreich eingetragen
";
- if ($dhcptype == "subnet"){
- adjust_hostip_dhcpsubnet($ip,$hostDN,$dhcphlpcont);
- }
+ #if ($dhcptype == "subnet"){
+ # adjust_hostip_dhcpsubnet($ip,$hostDN,$dhcphlpcont);
+ #}
}else{
$mesg = "Fehler beim eintragen der IP
";
}
@@ -389,8 +390,9 @@ if (count($entrydel) != 0 ){
}
*/
-
-update_dhcpmtime();
+if ( $dhcphlpcont != "" ){
+ update_dhcpmtime(array());
+}
$mesg .= "
Sie werden automatisch auf die vorherige Seite zurückgeleitet.
Falls nicht, klicken Sie hier back";
--
cgit v1.2.3-55-g7522