From 2e001124ba1967b8485ed4330b75c1fb292a3492 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sat, 24 Apr 2010 22:58:36 +0000 Subject: [PATCH] add deleted ports to ports menu remove old popup failure git-svn-id: http://www.observium.org/svn/observer/trunk@1075 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-menubar.php | 14 ++++++++++++++ html/includes/warn-deleted-ports.inc.php | 5 ----- 2 files changed, 14 insertions(+), 5 deletions(-) delete mode 100644 html/includes/warn-deleted-ports.inc.php diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index c7f9b8dd0..8647e76eb 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -150,10 +150,24 @@ if (isset($interface_alerts)) { echo('
  • Alerts ('.$interface_alerts.')
  • '); } + $sql = "SELECT * FROM `ports` AS P, `devices` as D WHERE P.`deleted` = '1' AND D.device_id = P.device_id"; + $query = mysql_query($sql); + $deleted_ports = 0; + while($interface = mysql_fetch_assoc($query)) { + if(interfacepermitted($interface['interface_id'], $interface['device_id'])){ + $deleted_ports++; + } + } + ?>
  • Down
  • Disabled
  • + Deleted'); } + +?> diff --git a/html/includes/warn-deleted-ports.inc.php b/html/includes/warn-deleted-ports.inc.php deleted file mode 100644 index 057655f16..000000000 --- a/html/includes/warn-deleted-ports.inc.php +++ /dev/null @@ -1,5 +0,0 @@ -