summaryrefslogtreecommitdiffstats
path: root/frontends/php/maps.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-05-07 10:41:18 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-05-07 10:41:18 +0000
commitfefeed0a362b96cfcbc252adfa1e41b9035d8b9e (patch)
treed8ea8461f3c5a917e5add76012ff78d95973de1c /frontends/php/maps.php
parent8dfc2751c6834cd9942254fdba3f1a4b559ecf13 (diff)
downloadzabbix-fefeed0a362b96cfcbc252adfa1e41b9035d8b9e.tar.gz
zabbix-fefeed0a362b96cfcbc252adfa1e41b9035d8b9e.tar.xz
zabbix-fefeed0a362b96cfcbc252adfa1e41b9035d8b9e.zip
- added default user "guest" (Alexei)
- more support for flexible permissions (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@357 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/maps.php')
-rw-r--r--frontends/php/maps.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/frontends/php/maps.php b/frontends/php/maps.php
index ab8c70c9..801549f1 100644
--- a/frontends/php/maps.php
+++ b/frontends/php/maps.php
@@ -31,16 +31,18 @@
$lasthost="";
$result=DBselect("select sysmapid,name from sysmaps order by name");
- for($i=0;$i<DBnum_rows($result);$i++)
+ while($row=DBfetch($result))
{
- $sysmapid_=DBget_field($result,$i,0);
- $name=DBget_field($result,$i,1);
- if( isset($sysmapid) && ($sysmapid == $sysmapid_) )
+ if(!check_right("Network map","R",$row["sysmapid"]))
+ {
+ continue;
+ }
+ if( isset($sysmapid) && ($sysmapid == $row["sysmapid"]) )
{
echo "<b>[";
}
- echo "<a href='maps.php?sysmapid=$sysmapid_'>$name</a>";
- if(isset($sysmapid) && ($sysmapid == $sysmapid_) )
+ echo "<a href='maps.php?sysmapid=".$row["sysmapid"]."'>".$row["name"]."</a>";
+ if(isset($sysmapid) && ($sysmapid == $row["sysmapid"]) )
{
echo "]</b>";
}