mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user