diff options
Diffstat (limited to 'usr/local')
-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"; |