diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-09-07 09:16:46 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-09-07 09:16:46 +0000 |
| commit | 9db4b0aeb0582ea1afa3e54493268348963cbe0f (patch) | |
| tree | e43517c29d15694a81179018dcc069aa6ea9b80d /frontends/php/map.php | |
| parent | cf2952549223c779ec2fe14eddd6dc70bcae064c (diff) | |
| download | zabbix-9db4b0aeb0582ea1afa3e54493268348963cbe0f.tar.gz zabbix-9db4b0aeb0582ea1afa3e54493268348963cbe0f.tar.xz zabbix-9db4b0aeb0582ea1afa3e54493268348963cbe0f.zip | |
- fixed permission check for all *.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@483 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
| -rw-r--r-- | frontends/php/map.php | 9 |
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) |
