fix services delete function

git-svn-id: http://www.observium.org/svn/observer/trunk@1515 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-29 13:42:36 +00:00
parent 7de52b2f91
commit 130646be6e

View File

@ -8,6 +8,13 @@ if($_POST['addsrv']) {
}
}
if($_POST['delsrv']) {
if($_SESSION['userlevel'] == '10') {
include("includes/service-delete.inc.php");
}
}
if ($handle = opendir($config['install_dir'] . "/includes/services/")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && !strstr($file, ".")) {
@ -47,7 +54,7 @@ echo("
Type
</td>
<td>
<select name='type'>
<select name='service'>
$existform
</select>
</td>