From abe04218651961eba38e083079e0b200b5a54c7f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 31 Oct 2008 02:00:11 +0000 Subject: If themes/$themename/graph.php exists, source this file for custom atributes (colors, etc) --- usr/local/www/graph.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php index 7679423..22313bd 100755 --- a/usr/local/www/graph.php +++ b/usr/local/www/graph.php @@ -55,8 +55,6 @@ if ($_GET["timeint"]) else $time_interval = 3; -$fetch_link = "ifstats.php?if={$ifnum}"; - //SVG attributes $attribs['axis']='fill="black" stroke="black"'; $attribs['in']='fill="#FF0000" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="7"'; @@ -72,6 +70,13 @@ $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"); + eveal($themetxt); +} + //Error text if we cannot fetch data : depends on which method is used $error_text = "Cannot get data about interface $ifnum"; -- cgit v1.1