summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/computers
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers')
-rw-r--r--ldap-site-mngmt/webinterface/computers/dhcphost_change.php8
-rw-r--r--ldap-site-mngmt/webinterface/computers/host_change.php5
-rw-r--r--ldap-site-mngmt/webinterface/computers/host_delete.php1
-rw-r--r--ldap-site-mngmt/webinterface/computers/hwhost_change.php15
-rw-r--r--ldap-site-mngmt/webinterface/computers/rbshost_change.php5
5 files changed, 18 insertions, 16 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/dhcphost_change.php b/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
index 96bbb715..a35a29cb 100644
--- a/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
+++ b/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
@@ -27,7 +27,7 @@ echo "Host DN:"; print_r($hostDN); echo "<br>";
echo "submenuNR:"; print_r($sbmnr); echo "<br><br>";*/
-$seconds = 40;
+$seconds = 2;
$url = 'dhcphost.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
echo "
@@ -53,6 +53,7 @@ if ($dhcp != "none" && $dhcp != $olddhcp){
if ($olddhcp != ""){
echo "DHCP replace "; print_r($olddhcp); echo " with "; print_r($entrydhcp); echo "<br>";
if ($result = ldap_mod_replace($ds,$hostDN,$entrydhcp)){
+ update_dhcpmtime();
$mesg = "Rechner erfolgreich in DHCP <b>".$dhcpcn." [Abt.: ".$dhcpau."]</b> angemeldet<br><br>";
}else{
$mesg = "Fehler beim &auml;ndern des DHCP Dienstes zu <b>".$dhcpcn."</b>!<br><br>";
@@ -63,6 +64,7 @@ if ($dhcp != "none" && $dhcp != $olddhcp){
}
echo "DHCP add "; print_r($entrydhcp); echo "<br>";
if ($result = ldap_mod_add($ds,$hostDN,$entrydhcp)){
+ update_dhcpmtime();
$mesg = "Rechner erfolgreich in DHCP <b>".$dhcpcn." [Abt.: ".$dhcpau."]</b> angemeldet<br><br>";
}else{
$mesg = "Fehler beim &auml;ndern des DHCP Dienstes zu <b>".$dhcpcn."</b>!<br><br>";
@@ -78,6 +80,7 @@ if ($dhcp != "none" && $dhcp != $olddhcp){
#}
echo "DHCP delete "; echo "<br>";
if ($result = ldap_mod_del($ds,$hostDN,$entrydhcp)){
+ update_dhcpmtime();
$mesg = "Rechner erfolgreich aus DHCP gel&ouml;scht<br><br>";
}else{
$mesg = "Fehler beim l&ouml;schen aus DHCP Dienst!<br><br>";
@@ -96,6 +99,7 @@ if ($fixedaddress != "none" && $fixedaddress != $oldfixedaddress){
if ($oldfixedaddress != ""){
echo "Fixed Address &auml;ndern"; echo "<br>";
if ($result = ldap_mod_replace($ds,$hostDN,$entryfixadd)){
+ update_dhcpmtime();
$mesg = "Option Fixed-Address erfolgreich auf <b>".$fixedaddress."</b> ge&auml;ndert<br><br>";
}else{
$mesg = "Fehler beim &auml;ndern der Option Fixed-Address auf <b>".$fixedaddress."</b>!<br><br>";
@@ -103,6 +107,7 @@ if ($fixedaddress != "none" && $fixedaddress != $oldfixedaddress){
}else{
echo "Fixed Address auf IP Adresse setzen"; echo "<br>";
if ($result = ldap_mod_add($ds,$hostDN,$entryfixadd)){
+ update_dhcpmtime();
$mesg = "Option Fixed-Address erfolgreich auf <b>".$fixedaddress."</b> gesetzt<br><br>";
}else{
$mesg = "Fehler beim setzen der Option Fixed-Address auf <b>".$fixedaddress."</b>!<br><br>";
@@ -112,6 +117,7 @@ if ($fixedaddress != "none" && $fixedaddress != $oldfixedaddress){
$entryfixadd ['dhcpoptfixed-address'] = array();
echo "No Fixed Address"; echo "<br>";
if ($result = ldap_mod_del($ds,$hostDN,$entryfixadd)){
+ update_dhcpmtime();
$mesg = "Option Fixed-Address erfolgreich gel&ouml;scht<br><br>";
}else{
$mesg = "Fehler beim l&ouml;schen der Option Fixed-Address!<br><br>";
diff --git a/ldap-site-mngmt/webinterface/computers/host_change.php b/ldap-site-mngmt/webinterface/computers/host_change.php
index f54e149d..a0e149b7 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 = 2;
+$seconds = 200;
$url = 'host.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
echo "
@@ -255,6 +255,7 @@ if ( $oldip != "" && $ip != "" && $oldip != $ip ){
if ($dhcptype == "subnet"){
adjust_hostip_dhcpsubnet($ip,$hostDN,$dhcphlpcont);
}
+ adjust_hostip_tftpserverip($oldip,$ip);
}else{
$mesg = "Fehler beim aendern der IP<br><br>";
# oldip die schon gelöscht wurde wieder einfügen
@@ -269,6 +270,7 @@ if ( $oldip != "" && $ip == "" ){
if(delete_ip_host($hostDN,$auDN)){
$mesg = "IP erfolgreich geloescht<br><br>";
+ adjust_hostip_tftpserverip($oldip,"");
}else{
$mesg = "Fehler beim loeschen der IP<br><br>";
}
@@ -388,6 +390,7 @@ if (count($entrydel) != 0 ){
*/
+update_dhcpmtime();
$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
diff --git a/ldap-site-mngmt/webinterface/computers/host_delete.php b/ldap-site-mngmt/webinterface/computers/host_delete.php
index bcfa0add..0470ed91 100644
--- a/ldap-site-mngmt/webinterface/computers/host_delete.php
+++ b/ldap-site-mngmt/webinterface/computers/host_delete.php
@@ -28,6 +28,7 @@ echo "
if ( $hostDN != ""){
if ( delete_host($hostDN) ){
+ update_dhcpmtime();
$mesg = "Rechner <b>".$hostname."</b> erfolgreich gel&ouml;scht!<br><br>";
}
else{
diff --git a/ldap-site-mngmt/webinterface/computers/hwhost_change.php b/ldap-site-mngmt/webinterface/computers/hwhost_change.php
index 7b93f7c9..678471a4 100644
--- a/ldap-site-mngmt/webinterface/computers/hwhost_change.php
+++ b/ldap-site-mngmt/webinterface/computers/hwhost_change.php
@@ -22,21 +22,9 @@ if (count($oldattribs) != 0){
}
#print_r($oldatts); echo "<br><br>";
-/*
-echo "new hostname:"; print_r($hostname); echo "<br>";
-echo "old hostname:"; print_r($oldhostname); echo "<br>";
-echo "new mac:"; print_r($mac); echo "<br>";
-echo "old mac:"; print_r($oldmac); echo "<br>";
-echo "new ip:"; print_r($ip); echo "<br>";
-echo "old ip:"; print_r($oldip); echo "<br>";
-echo "new desc:"; print_r($desc); echo "<br>";
-echo "old desc:"; print_r($olddesc); echo "<br><br>";
-echo "Host DN:"; print_r($hostDN); echo "<br>";
-echo "submenuNR:"; print_r($submenu); echo "<br><br>";
-*/
$seconds = 2;
-$url = 'host.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
+$url = 'hwhost.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
echo "
<html>
@@ -116,6 +104,7 @@ if (count($entrydel) != 0 ){
}
}
+update_dhcpmtime();
$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
diff --git a/ldap-site-mngmt/webinterface/computers/rbshost_change.php b/ldap-site-mngmt/webinterface/computers/rbshost_change.php
index 3a812931..edff80bc 100644
--- a/ldap-site-mngmt/webinterface/computers/rbshost_change.php
+++ b/ldap-site-mngmt/webinterface/computers/rbshost_change.php
@@ -23,7 +23,7 @@ echo "Host DN:"; print_r($hostDN); echo "<br>";
echo "submenuNR:"; print_r($sbmnr); echo "<br><br>";*/
-$seconds = 40;
+$seconds = 2;
$url = 'rbshost.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
echo "
@@ -53,6 +53,7 @@ if ($rbs != "none" && $rbs != $oldrbs){
if ($oldrbs != ""){
echo "RBS replace "; print_r($oldrbs); echo " with "; print_r($entryrbs); echo "<br>";
if ($result = ldap_mod_replace($ds,$hostDN,$entryrbs)){
+ update_dhcpmtime();
rbs_adjust_host($hostDN, $rbs);
$mesg = "Remote Boot Service erfolgreich zu <b>".$rbscn." [Abt.: ".$rbsau."]</b> ge&auml;ndert<br><br>";
}else{
@@ -61,6 +62,7 @@ if ($rbs != "none" && $rbs != $oldrbs){
}else{
echo "RBS add "; print_r($entryrbs); echo "<br>";
if ($result = ldap_mod_add($ds,$hostDN,$entryrbs)){
+ update_dhcpmtime();
rbs_adjust_host($hostDN, $rbs);
$mesg = "Remote Boot Service erfolgreich zu <b>".$rbscn." [Abt.: ".$rbsau."]</b> ge&auml;ndert<br><br>";
}else{
@@ -73,6 +75,7 @@ if ($rbs != "none" && $rbs != $oldrbs){
$entryrbs ['dhcpoptfilename'] = array();
echo "RBS delete "; echo "<br>";
if ($result = ldap_mod_del($ds,$hostDN,$entryrbs)){
+ update_dhcpmtime();
$mesg = "Rechner erfolgreich aus RBS gel&ouml;scht<br><br>";
}else{
$mesg = "Fehler beim l&ouml;schen aus RBS!<br><br>";