summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index e7ed50a6..3ac6adca 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -18,6 +18,8 @@
Header( "Content-type: image/png");
Header( "Expires: Mon, 17 Aug 1998 12:51:50 GMT");
+ check_authorisation();
+
$im = imagecreate($width,$height);
$red=ImageColorAllocate($im,255,0,0);
@@ -38,6 +40,13 @@
ImageFilledRectangle($im,0,0,$width,$height,$white);
ImageRectangle($im,0,0,$width-1,$height-1,$black);
+ if(!check_right("Network map","R",$HTTP_GET_VARS["sysmapid"]))
+ {
+ ImagePng($im);
+ ImageDestroy($im);
+ exit();
+ }
+
if(!isset($HTTP_GET_VARS["noedit"]))
{
for($x=$grid;$x<$width;$x+=$grid)