aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-05 02:33:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-05 02:33:01 +0000
commit64a405a2aab31375230484205302d965a3ca2a1a (patch)
tree6aa9399bb929086031afa6035bf69676ffed3471
parenta0f51167f3a4476954a95d96ccf2b5b280164bda (diff)
downloadpfsense-packages-64a405a2aab31375230484205302d965a3ca2a1a.tar.gz
pfsense-packages-64a405a2aab31375230484205302d965a3ca2a1a.tar.bz2
pfsense-packages-64a405a2aab31375230484205302d965a3ca2a1a.zip
Minor coesmetic touch ups
-rw-r--r--packages/pfstat.php2
-rw-r--r--packages/pfstat.xml12
2 files changed, 9 insertions, 5 deletions
diff --git a/packages/pfstat.php b/packages/pfstat.php
index 42a96f96..2791e3ae 100644
--- a/packages/pfstat.php
+++ b/packages/pfstat.php
@@ -57,7 +57,7 @@ include("fbegin.inc");
echo "<table BORDERCOLOR=\"#990000\" width=\"100%\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<tr bgcolor='#990000'><td><center><font color='white'>" . $graph['graphname'] . "</td></tr>\n";
echo "<td><center><table width=\"100%\"><tr><td width='100%'>";
- echo "<br><img src='/pfstat/" . $graph['imagename'] . "'>";
+ echo "<center><br><img src='/pfstat/" . $graph['imagename'] . "'>";
echo "</td></tr>";
echo "<tr bgcolor='#990000'><td><center><font color='white'>" . $graph['description'] . "</td></tr>";
echo "</table>\n";
diff --git a/packages/pfstat.xml b/packages/pfstat.xml
index fa8faa42..86efaaf2 100644
--- a/packages/pfstat.xml
+++ b/packages/pfstat.xml
@@ -190,6 +190,11 @@
$rightgraphtext = "";
$isfirstleft = 0;
$isfirstright = 0;
+ $fromclassification = $rowhelper['fromclassification'];
+ $imagename = $rowhelper['imagename'];
+ $from = $rowhelper['from'];
+ $graphsizewidth = $rowhelper['graphsizewidth'];
+ $graphsizeheight = $rowhelper['graphsizeheight'];
foreach($rowhelper['row'] as $row) {
if($row['location'] == "left") {
if($isfirstleft == 1) $leftgraphtext .= ",\n";
@@ -201,11 +206,10 @@
$isfirstright = 1;
}
}
- fwrite($fout, "image \"/usr/local/www/pfstat/" . $rowhelper['imagename'] ."\" { \n");
- $from = $rowhelper['from'];
+ fwrite($fout, "image \"/usr/local/www/pfstat/" . $imagename ."\" { \n");
if($from == "") $from = "30";
- fwrite($fout, "from " . $from . " " . $rowhelper['fromclassification'] . " to now \n");
- fwrite($fout, "width " . $row['graphsizewidth'] . " height " . $rowhelper['graphsizeheight'] . " \n");
+ fwrite($fout, "from " . $from . " " . $fromclassification . " to now \n");
+ fwrite($fout, "width " . $graphsizewidth . " height " . $graphsizeheight . " \n");
if($leftgraphtext != "") {
fwrite($fout, " left \n");
fwrite($fout, " " . $leftgraphtext . "\n");