aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");