diff options
| author | Tarik Gasmi | 2007-09-18 17:18:38 +0200 |
|---|---|---|
| committer | Tarik Gasmi | 2007-09-18 17:18:38 +0200 |
| commit | 12183ece8e4cb1bb81072a72f696572c8b3a07ee (patch) | |
| tree | 1e7b274e6a4229d4d1819d4feaabe272b1037a62 /ldap-site-mngmt/webinterface/computers/host_change.php | |
| parent | Added theme.conf for openslx theme for pxe. Only labels should be added autom... (diff) | |
| download | core-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/host_change.php')
| -rw-r--r-- | ldap-site-mngmt/webinterface/computers/host_change.php | 14 |
1 files changed, 8 insertions, 6 deletions
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 "<br>"; echo "submenuNR:"; print_r($submenu); echo "<br><br>"; */ -$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 "<br><br>"; 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 "<br><br>"; if (new_ip_host($newip,$hostDN,$auDN)){ $mesg = "IP erfolgreich eingetragen<br><br>"; - 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<br><br>"; } @@ -389,8 +390,9 @@ if (count($entrydel) != 0 ){ } */ - -update_dhcpmtime(); +if ( $dhcphlpcont != "" ){ + update_dhcpmtime(array()); +} $mesg .= "<br>Sie werden automatisch auf die vorherige Seite zurückgeleitet. <br> Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>"; |
