From 64a405a2aab31375230484205302d965a3ca2a1a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 5 Jan 2005 02:33:01 +0000 Subject: Minor coesmetic touch ups --- packages/pfstat.php | 2 +- packages/pfstat.xml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'packages') 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 ""; echo "\n"; echo "
" . $graph['graphname'] . "
"; echo ""; echo "
"; - echo "
"; + echo "

"; echo "
" . $graph['description'] . "
\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"); -- cgit v1.2.3