don't put standard ports in base_url, add dpkg support for packages, fix display of packages in main menubar

git-svn-id: http://www.observium.org/svn/observer/trunk@3070 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-21 00:30:55 +00:00
parent d2b48673e2
commit bf58e662a9
3 changed files with 200 additions and 156 deletions

View File

@@ -66,8 +66,12 @@ foreach ($config['device_types'] as $devtype)
if ($_SESSION['userlevel'] >= '10')
{
if (count($cache['device_types']))
{
echo ('
<li><hr width="140" /></li>');
}
echo('
<li><hr width="140" /></li>
<li><a href="addhost/"><img src="images/16/server_add.png" border="0" align="absmiddle" /> Add Device</a></li>
<li><a href="delhost/"><img src="images/16/server_delete.png" border="0" align="absmiddle" /> Delete Device</a></li>');
}
@@ -489,7 +493,7 @@ if ($_SESSION['userlevel'] >= '5' && ($routing_count['bgp']+$routing_count['ospf
<?php
}
$packages = dbFetchCell("SELECT COUNT(package_id) from `packages`");
$packages = dbFetchCell("SELECT COUNT(pkg_id) from `packages`");
if ($packages)
{