summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-09 20:58:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-09 20:58:29 +0000
commit72d1b575a5ad7209d058194f5f1fce0ba40e8a59 (patch)
treecde59377ab3f1db1ef96a3d2f9db7837c493078e /usr/local
parent8b379e475ee3800cdca60d5f99ad80b338ad9b01 (diff)
downloadpfsense-72d1b575a5ad7209d058194f5f1fce0ba40e8a59.zip
pfsense-72d1b575a5ad7209d058194f5f1fce0ba40e8a59.tar.gz
Include correct file
'CVS: ----------------------------------------------------------------------
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/graph.php15
1 files changed, 8 insertions, 7 deletions
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('<?xml version="1.0" encoding="iso-8859-1"?>' . "\n");?>
<svg width="100%" height="100%" viewBox="0 0 <?=$width?> <?=$height?>" preserveAspectRatio="none" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="init(evt)">
OpenPOWER on IntegriCloud