Update common.inc.php to allow custom font color

Allowing customization of the font color is useful for me as I pull graphs into a dashboard which happens to have a black background. Perhaps this feature can be useful to others.
This commit is contained in:
cFire
2016-07-02 00:14:18 +02:00
committed by GitHub
parent 9ff9e5ae72
commit 902da3a219

View File

@@ -90,6 +90,10 @@ if ($_GET['bg']) {
$rrd_options .= ' -c CANVAS#'.mres($_GET['bg']).' ';
}
if ($_GET['font']) {
$rrd_options .= ' -c FONT#'.mres($_GET['font']).' ';
}
// $rrd_options .= " -c BACK#FFFFFF";
if ($height < '99') {
$rrd_options .= ' --only-graph';