diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-11-10 23:14:19 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-11-10 23:14:31 -0500 |
commit | ce2078f7d0558b044474bb86697ee39763721c90 (patch) | |
tree | 3161f229b629756f82fdd8d0899801089e0ba7b8 | |
parent | 2b30323ef3ebbd11d84e913db3b33e514b0657a6 (diff) | |
download | pfsense-ce2078f7d0558b044474bb86697ee39763721c90.zip pfsense-ce2078f7d0558b044474bb86697ee39763721c90.tar.gz |
Unbreak graphs
-rwxr-xr-x | usr/local/www/graph.php | 1 | ||||
-rwxr-xr-x | usr/local/www/status_graph.php | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php index 6634ed3..fb11d42 100755 --- a/usr/local/www/graph.php +++ b/usr/local/www/graph.php @@ -51,6 +51,7 @@ header("Content-type: image/svg+xml"); /********** HTTP GET Based Conf ***********/ $ifnum=@$_GET["ifnum"]; // BSD / SNMP interface name / number +$ifnum = get_real_interface($ifnum); $ifname=@$_GET["ifname"]?$_GET["ifname"]:"Interface $ifnum"; //Interface name that will be showed on top right of graph /********* Other conf *******/ diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index c674cbc..a68b6bd 100755 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -184,8 +184,8 @@ foreach ($ifdescrs as $ifn => $ifd) { <p> <div id="niftyOutter"> <div id="col1" style="float: left; width: 46%; padding: 5px; position: relative;"> - <object data="graph.php?ifnum=<?=htmlspecialchars($curif);?>&ifname=<?=strtoupper(rawurlencode($ifdescrs[htmlspecialchars($curif)]));?>" type="image/svg+xml" width="<?=$width;?>" height="<?=$height;?>"> - <param name="src" value="graph.php?ifnum=<?=htmlspecialchars($curif);?>&ifname=<?=strtoupper(rawurlencode($ifdescrs[htmlspecialchars($curif)]));?>" /> + <object data="graph.php?ifnum=<?=htmlspecialchars($curif);?>&ifname=<?=strtoupper(rawurlencode($ifdescrs[htmlspecialchars($curif)]));?>" type="image/svg+xml" width="<?=$width;?>" height="<?=$height;?>"> + <param name="src" value="graph.php?ifnum=<?=htmlspecialchars($curif);?>&ifname=<?=strtoupper(rawurlencode($ifdescrs[htmlspecialchars($curif)]));?>" /> <?=gettext("Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin"); ?>. </object> </div> |