summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php')
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php
new file mode 100644
index 00000000..eb5d66aa
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php
@@ -0,0 +1,34 @@
+<?php
+include('../standard_header.inc.php');
+
+$subnetDN = $_POST['dn'];
+$cn = $_POST['name'];
+
+$seconds = 100;
+$url = "dhcpsubnets.php?mnr=2";
+
+echo "
+<html>
+<head>
+ <title>Computers Management</title>
+ <link rel='stylesheet' href='../styles.css' type='text/css'>
+</head>
+<body>
+<table border='0' cellpadding='30' cellspacing='0'>
+<tr><td>";
+
+if ( $subnetDN != ""){
+ if( delete_dhcpsubnet($subnetDN,$cn)){
+ $mesg = "Subnet <b>".$cn."</b> erfolgreich gel&ouml;scht!<br><br>";
+ }else{
+ $mesg = "Fehler beim l&ouml;schen des Subnets <b>".$cn."</b> !<br><br>";
+ }
+}
+
+$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>";
+redirect($seconds, $url, $mesg, $addSessionId = TRUE);
+
+echo "</td></tr></table></body>
+</html>";
+?> \ No newline at end of file