From 72d1b575a5ad7209d058194f5f1fce0ba40e8a59 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 9 Nov 2008 20:58:29 +0000 Subject: Include correct file 'CVS: ---------------------------------------------------------------------- --- usr/local/www/graph.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'usr/local/www/graph.php') diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php index 44a2c76..2cf4a91 100755 --- a/usr/local/www/graph.php +++ b/usr/local/www/graph.php @@ -73,19 +73,20 @@ $attribs['switch_scale']='fill="#FF0000" font-family="Tahoma, Verdana, Arial, He $attribs['error']='fill="blue" font-family="Arial" font-size="4"'; $attribs['collect_initial']='fill="gray" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4"'; -/* check for custom theme colors */ -$fetch_link = "ifstats.php?if={$ifnum}"; -if(file_exists("/themes/{$g['theme']}/graph.php")) { - $themetxt = file_get_contents("/themes/{$g['theme']}/graph.php"); - eval($themetxt); -} - //Error text if we cannot fetch data : depends on which method is used $error_text = "Cannot get data about interface $ifnum"; $height=100; //SVG internal height : do not modify $width=200; //SVG internal width : do not modify +$fetch_link = "ifstats.php?if={$ifnum}"; + +/* check for custom theme colors */ +if(file_exists("/usr/local/www/themes/{$g['theme']}/graph.php")) { + $themetxt = file_get_contents("/usr/local/www/themes/{$g['theme']}/graph.php"); + eval($themetxt); +} + /********* Graph DATA **************/ print('' . "\n");?> -- cgit v1.1