diff options
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/host_delete.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/computers/host_delete.php | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/host_delete.php b/ldap-site-mngmt/webinterface/computers/host_delete.php deleted file mode 100644 index 4d7a935b..00000000 --- a/ldap-site-mngmt/webinterface/computers/host_delete.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php -include('../standard_header.inc.php'); - -$hostDN = $_POST['dn']; -$hostname = $_POST['name']; -$dhcphlpcont = $_POST['dhcphlpcont']; -$hostDN = htmlentities($hostDN); -$hostname = htmlentities($hostname); - -/* -echo "AU dn:"; print_r($auDN); echo "<br>"; -echo "hostdn:"; print_r($hostDN); echo "<br>"; -echo "hostname:"; print_r($hostname); echo "<br>"; -*/ - -$seconds = 1; -$url = 'hostoverview.php'; - -echo " -<html> -<head> - <title>AU Management</title> - <link rel='stylesheet' href='../styles.css' type='text/css'> -</head> -<body> -<table border='0' cellpadding='30' cellspacing='0'> -<tr><td>"; - -if ( $hostDN != ""){ - - if ( delete_host($hostDN) ){ - if ( $dhcphlpcont != "" ){ - update_dhcpmtime(array()); - } - $mesg = "Rechner <b>".$hostname."</b> erfolgreich gelöscht!<br><br>"; - } - else{ - $mesg = "Fehler beim löschen von Rechner <b>".$hostname."</b> !<br><br>"; - } - -} - - - -$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zurückgeleitet. <br> - Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>"; -redirect($seconds, $url, $mesg, $addSessionId = TRUE); - -echo "</td></tr></table></body> -</html>"; -?>
\ No newline at end of file |