diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-31 02:00:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-31 02:00:11 +0000 |
commit | abe04218651961eba38e083079e0b200b5a54c7f (patch) | |
tree | e223181d648e52d9e0ca37d8499b0dc8a9a7e40e /usr/local/www/graph.php | |
parent | 4750323755acfbd5abd03a9f6564a751f6d305c3 (diff) | |
download | pfsense-abe04218651961eba38e083079e0b200b5a54c7f.zip pfsense-abe04218651961eba38e083079e0b200b5a54c7f.tar.gz |
If themes/$themename/graph.php exists, source this file for custom
atributes (colors, etc)
Diffstat (limited to 'usr/local/www/graph.php')
-rwxr-xr-x | usr/local/www/graph.php | 9 |
1 files changed, 7 insertions, 2 deletions
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"; |