Date | '; echo 'Downloaded | '; echo 'Uploaded | '; echo 'Total Transfered | '; echo '
space: | |||
mode: | |||
'; include("fbegin.inc"); echo '
ifBWStats: Daily Statistics For '.$interfacename.'
'; echo 'Month Ending: '.str_replace('%20', ' ', $queryparts[3]).''; $tab_array[0] = array ("Daily", false, "ifbwstats_cur.php"); $tab_array[1] = array ("Monthly", false, "ifbwstats_disp.php"); $tab_array[2] = array ("Settings", false, "pkg_edit.php?xml=ifbwstats.xml"); $tab_array[3] = array ("Archive", true, $url); display_top_tabs($tab_array); echo ' | ||||||||||
';
echo ' ';
$foundfile = 'null';
if (file_exists($queryparts[0])) $foundfile = $queryparts[0];
if ($foundfile == 'null')
{
echo 'Sorry, no data file found.';
}
else
{
$fp = fopen($foundfile,"r") or die("Error Reading File");
$data = fread($fp, filesize($foundfile));
fclose($fp);
$wandataall = explode("\n", $data);
$n = count($wandataall);
$monthintotal = 0;
$monthouttotal = 0;
$monthdaystart = 0;
echo '
Diffstat (limited to 'config/archive/frickin/frickin.xml') |