mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Tony Murray
parent
1c9cbc42f5
commit
a8691680ab
@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user