Updated to support a demo user

This commit is contained in:
Neil Lathwood
2015-02-16 23:45:28 +00:00
parent f0b0ed4468
commit 2cb5d727b4
20 changed files with 57 additions and 35 deletions

View File

@@ -35,7 +35,7 @@ echo('<table cellpadding="7" cellspacing="0" class="devicetable" width="100%">')
foreach (getlocations() as $location)
{
if ($_SESSION['userlevel'] == '10')
if ($_SESSION['userlevel'] >= '10')
{
$num = dbFetchCell("SELECT COUNT(device_id) FROM devices WHERE location = ?", array($location));
$net = dbFetchCell("SELECT COUNT(device_id) FROM devices WHERE location = ? AND type = 'network'", array($location));