feature: Added ability to output graphs as svg (#5959)

* feature: Added ability to output graphs as svg

* Update graph.inc.php

* added ability to gzip various files for web servers
This commit is contained in:
Neil Lathwood
2017-02-22 12:08:18 +00:00
committed by Tony Murray
parent 1c9cbc42f5
commit a8691680ab
10 changed files with 48 additions and 12 deletions

View File

@ -1419,3 +1419,17 @@ function eventlog_severity($eventlog_severity)
break;
}
} // end eventlog_severity
/**
*
*/
function set_image_type()
{
global $config;
if ($config['webui']['graph_type'] === 'svg') {
return header('Content-type: image/svg+xml');
} else {
return header('Content-type: image/png');
}
}