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_delete.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'ldap-site-mngmt/webinterface/computers/host_delete.php')
diff --git a/ldap-site-mngmt/webinterface/computers/host_delete.php b/ldap-site-mngmt/webinterface/computers/host_delete.php
index 0470ed91..4d7a935b 100644
--- a/ldap-site-mngmt/webinterface/computers/host_delete.php
+++ b/ldap-site-mngmt/webinterface/computers/host_delete.php
@@ -3,6 +3,7 @@ include('../standard_header.inc.php');
$hostDN = $_POST['dn'];
$hostname = $_POST['name'];
+$dhcphlpcont = $_POST['dhcphlpcont'];
$hostDN = htmlentities($hostDN);
$hostname = htmlentities($hostname);
@@ -28,7 +29,9 @@ echo "
if ( $hostDN != ""){
if ( delete_host($hostDN) ){
- update_dhcpmtime();
+ if ( $dhcphlpcont != "" ){
+ update_dhcpmtime(array());
+ }
$mesg = "Rechner ".$hostname." erfolgreich gelöscht!
";
}
else{
--
cgit v1.2.3-55-g7522