blob: 28c8277bde3a586b91ea94b0cadb2fa025d92996 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
include('../standard_header.inc.php');
$subnetDN = $_POST['dn'];
$cn = $_POST['name'];
$mnr = $_POST['mnr'];
$seconds = 1;
$url = "dhcpsubnets.php?mnr=".$mnr;
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öscht!<br><br>";
update_dhcpmtime(array());
}else{
$mesg = "Fehler beim löschen des Subnets <b>".$cn."</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>";
?>
|