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
+
+
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("