From 98b5917f277740e7a574605e63d425be93d4b7d3 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 11 Mar 2009 14:46:55 +0000 Subject: [PATCH] remove old file and add some new things git-svn-id: http://www.observium.org/svn/observer/trunk@350 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/delete.php | 13 ------------- html/graph.php | 4 ++++ html/pages/device.php | 10 ++++++++++ html/pages/preferences.php | 2 +- 4 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 html/delete.php diff --git a/html/delete.php b/html/delete.php deleted file mode 100644 index 3bebfbd04..000000000 --- a/html/delete.php +++ /dev/null @@ -1,13 +0,0 @@ - - - Really Delete? - ';self.close()">Yes! - No! diff --git a/html/graph.php b/html/graph.php index c796a0079..7a3ac0c6d 100644 --- a/html/graph.php +++ b/html/graph.php @@ -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)); } diff --git a/html/pages/device.php b/html/pages/device.php index 4a2afed7f..c3d47a824 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -72,6 +72,16 @@ if(@mysql_result(mysql_query("select count(interface_id) from interfaces WHERE d "); } +if($_SESSION[userlevel] >= "5") { + echo(" +
  • + + Port Map + +
  • +"); +} + echo("
  • Host Graphs diff --git a/html/pages/preferences.php b/html/pages/preferences.php index 2bcd66658..ab7013dc2 100644 --- a/html/pages/preferences.php +++ b/html/pages/preferences.php @@ -28,7 +28,7 @@ echo(""); echo("
    "); -echo("

    Device Permissions

    "); +echo("

    Device Permissions

    "); if($_SESSION['userlevel'] == '10') { echo("Global Administrative Access"); } if($_SESSION['userlevel'] == '5') { echo("Global Viewing Access"); }