summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-10 20:09:02 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-10 20:09:02 +0000
commitae0f0e5862cf6c6f616f31ad53ff88b700353655 (patch)
tree31223f2e4036a67a8d4d0f712d9227b7312358f5 /frontends/php/map.php
parent2db97c42e8af03ebd37a848f31f6d271aebd1ae9 (diff)
downloadzabbix-ae0f0e5862cf6c6f616f31ad53ff88b700353655.tar.gz
zabbix-ae0f0e5862cf6c6f616f31ad53ff88b700353655.tar.xz
zabbix-ae0f0e5862cf6c6f616f31ad53ff88b700353655.zip
- configurable format of map output (png, jpg) (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1597 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index 15f2cc86..43ddc016 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -36,7 +36,8 @@
$background=DBget_field($result,0,3);
// Header( "Content-type: text/html");
- Header( "Content-type: image/png");
+ if(MAP_OUTPUT_FORMAT == "JPG") Header( "Content-type: image/jpeg");
+ else Header( "Content-type: image/png");
Header( "Expires: Mon, 17 Aug 1998 12:51:50 GMT");
check_authorisation();
@@ -334,7 +335,9 @@
}
ImageStringUp($im,0,imagesx($im)-10,imagesy($im)-50, S_ZABBIX_URL, $gray);
+
+ if(MAP_OUTPUT_FORMAT == "JPG") ImageJPEG($im);
+ else ImageOut($im); #default
- ImageOut($im);
ImageDestroy($im);
?>