mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
Lots of additions.
git-svn-id: http://www.observium.org/svn/observer/trunk@108 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
<?php
|
||||
|
||||
if($_POST['id'] && $_SESSION['userlevel'] > '9') {
|
||||
if($_SESSION['userlevel'] < 10) {
|
||||
echo("<span class='alert'>You are not permitted to perform this function</span>");
|
||||
exit;
|
||||
}
|
||||
|
||||
if($_POST['id'] {
|
||||
delHost($id);
|
||||
} elseif ($_POST['id']) {
|
||||
echo("<p class='errorbox'><b>Error:</b> You don't have the necessary privileges to remove hosts.</p>");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user