if ($_GET["host"] != "") { ?>
Traffic stats for print $_GET["host"]; ?>
if ($maand == "Current") { $maand = ""; }
if ($maand == "") { $maand = date("M"); }
if ($jaar == "") { $jaar = date("Y"); }
$MND = array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
for ($j=0; $j<12; $j++) {
if ($MND[$j] == $maand) {
print "";
$nummer = $j;
}
elseif (file_exists("$jaar-$MND[$j]/$host.html")) {
print "";
}
elseif ($maand != date("M") && $MND[$j] == date("M")) {
print "";
}
else {
print "";
}
}
$nummer++;
$filetmp = file("$host.html");
eregi("\(.*)\
", $filetmp[40], $regs);
$text= str_replace("", "
", $regs[1]);
?>
print "$text ($maand $jaar)"; ?>
Traffic usage Graph (Daily)
VSPACE=10 HEIGHT=170 ALIGN=TOP>
if ($maand == date("M") && $jaar == date("Y")) {
if (! file_exists("$host.html")) {
print "Unable to find MRTG-file for this target and/or period!";
}
else {
$a = file("$host.html");
for($j=45; $j<184; $j++) {
$a[$j] = str_replace("
","
",$a[$j]);
print $a[$j];
}
echo "\n";
}
}
else {
if (! file_exists("$jaar-$maand/$host.html")) {
print "Unable to find MRTG-file for this target and/or period!";
}
else {
$a = file("$jaar-$maand/$host.html");
for($j=45; $j<184; $j++) {
$a[$j] = str_replace("
","
",$a[$j]);
$a[$j] = str_replace("SRC=\"","SRC=\"$jaar-$maand/",$a[$j]);
print $a[$j];
}
echo "