diff --git a/class/RRD.php b/class/RRD.php index 3aaaf16..1b67825 100644 --- a/class/RRD.php +++ b/class/RRD.php @@ -81,6 +81,9 @@ public static function getDSOption($dsname){ } public static function createRRDGraph($filename,$options){ + $config = json_decode(file_get_contents("config.json"),true); + $options[] = "--watermark"; + $options[] = $config["communityName"]." - ".date("c"); $ret = rrd_graph($filename,$options); echo rrd_error(); }