mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove old file and add some new things
git-svn-id: http://www.observium.org/svn/observer/trunk@350 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
ini_set('allow_url_fopen', 0);
|
||||
|
||||
include("../config.php");
|
||||
include("../includes/functions.php");
|
||||
include("includes/authenticate.inc");
|
||||
$start = utime();
|
||||
$id = $_GET['device']
|
||||
?>
|
||||
|
||||
Really Delete?
|
||||
<a href="javascript:;" onclick="opener.location='/?page=list&delete=<?php echo("$id"); ?>';self.close()">Yes!</a>
|
||||
<a href=\"javascript:;" onclick="self.close()">No!</a>
|
@@ -10,6 +10,10 @@
|
||||
include("../includes/functions.php");
|
||||
include("includes/authenticate.inc");
|
||||
|
||||
|
||||
if(!$_SESSION['authenticated']) { echo("not authenticated"); exit; }
|
||||
|
||||
|
||||
if($_GET['params']) {
|
||||
list($_GET['host'], $_GET['if'], $_GET['from'], $_GET['to'], $_GET['width'], $_GET['height'], $_GET['title'], $_GET['vertical'], $_GET['type'], $_GET['interfaces']) = explode("||", mcrypt_ecb(MCRYPT_DES, $key_value, $_GET['params'], MCRYPT_DECRYPT));
|
||||
}
|
||||
|
@@ -72,6 +72,16 @@ if(@mysql_result(mysql_query("select count(interface_id) from interfaces WHERE d
|
||||
</li>");
|
||||
}
|
||||
|
||||
if($_SESSION[userlevel] >= "5") {
|
||||
echo("
|
||||
<li class=" . $select['map'] . ">
|
||||
<a href='/device/" . $device['device_id'] . "/map/'>
|
||||
<img src='images/16/chart_organisation.png' align=absmiddle border=0> Port Map
|
||||
</a>
|
||||
</li>
|
||||
");
|
||||
}
|
||||
|
||||
echo("<li class=" . $select['graphs'] . ">
|
||||
<a href='/device/" . $device['device_id'] . "/graphs/'>
|
||||
<img src='images/16/server_chart.png' align=absmiddle border=0> Host Graphs
|
||||
|
@@ -28,7 +28,7 @@ echo("</div>");
|
||||
echo("<div style='background-color: #e5e5e5; border: solid #e5e5e5 10px; margin-bottom:10px;'>");
|
||||
|
||||
|
||||
echo("<h4>Device Permissions</h4>");
|
||||
echo("<h3>Device Permissions</h3>");
|
||||
|
||||
if($_SESSION['userlevel'] == '10') { echo("<strong>Global Administrative Access</strong>"); }
|
||||
if($_SESSION['userlevel'] == '5') { echo("<strong>Global Viewing Access</strong>"); }
|
||||
|
Reference in New Issue
Block a user