From f91180fe7c1493c04938e2855c6d9fea6cf57f5c Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 3 Apr 2007 19:28:18 +0000 Subject: [PATCH] Make $mono_font global in graphing functions. git-svn-id: http://www.observium.org/svn/observer/trunk@32 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/functions.php | 24 ++++++++++++------------ includes/graphing.php | 2 +- includes/procurve-graphing.php | 4 ++-- includes/snom-graphing.php | 2 +- includes/unix-graphing.php | 24 ++++++++++++------------ 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index cab44eb6c..5785e7047 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -343,7 +343,7 @@ function fixifName ($inf) { function trafgraph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--alt-autoscale-max", @@ -395,7 +395,7 @@ function trafgraph ($rrd, $graph, $from, $to, $width, $height) } function pktsgraph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--alt-autoscale-max", @@ -436,7 +436,7 @@ function pktsgraph ($rrd, $graph, $from, $to, $width, $height) { function errorgraph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; @@ -480,7 +480,7 @@ function errorgraph ($rrd, $graph, $from, $to, $width, $height) function nucastgraph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--start", $from, "--end", $to, @@ -521,7 +521,7 @@ function nucastgraph ($rrd, $graph, $from, $to, $width, $height) function cpugraph ($rrd, $graph , $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--start", $from, "--width", $width, "--height", $height, "--vertical-label", $vertical, "--alt-autoscale-max", @@ -560,7 +560,7 @@ function cpugraph ($rrd, $graph , $from, $to, $width, $height) function tempgraph ($rrd, $graph, $from, $to, $width, $height, $title, $vertical) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; @@ -598,7 +598,7 @@ function tempgraph ($rrd, $graph, $from, $to, $width, $height, $title, $vertical function uptimegraph ($rrd, $graph , $from, $to, $width, $height, $title, $vertical) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $rrd = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--start", $from, "--width", $width, "--height", $height, "--alt-autoscale-max", @@ -630,7 +630,7 @@ function uptimegraph ($rrd, $graph , $from, $to, $width, $height, $title, $verti function memgraph ($rrd, $graph , $from, $to, $width, $height, $title, $vertical) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $memrrd = $database; @@ -661,7 +661,7 @@ function memgraph ($rrd, $graph , $from, $to, $width, $height, $title, $vertical } function ip_graph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--start", $from, "--end", $to, "--width", $width, "--height", $height, "--alt-autoscale-max", "-E", "-l 0", @@ -713,7 +713,7 @@ function ip_graph ($rrd, $graph, $from, $to, $width, $height) { } function icmp_graph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--start", $from, "--end", $to, "--width", $width, "--height", $height, "--alt-autoscale-max", "-E", "-l 0", @@ -770,7 +770,7 @@ function icmp_graph ($rrd, $graph, $from, $to, $width, $height) { } function tcp_graph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--start", $from, "--end", $to, "--width", $width, "--height", $height, "--alt-autoscale-max", "-E", "-l 0", @@ -822,7 +822,7 @@ function tcp_graph ($rrd, $graph, $from, $to, $width, $height) { } function udp_graph ($rrd, $graph, $from, $to, $width, $height) { - global $rrdtool; global $installdir; + global $rrdtool, $installdir, $mono_font; $database = "rrd/" . $rrd; $imgfile = "graphs/" . "$graph"; $optsa = array( "--start", $from, "--end", $to, "--width", $width, "--height", $height, "--alt-autoscale-max", "-E", "-l 0", diff --git a/includes/graphing.php b/includes/graphing.php index 9d00fd116..dbf573507 100644 --- a/includes/graphing.php +++ b/includes/graphing.php @@ -1,7 +1,7 @@