if ($id) { if (preg_match("/^(http:\/\/)/i",$id)) { $id = ""; } } if (($id) && ($id != "")) { include "header.php"; print "
";
if (file_exists($id)) {
include "$id";
}
else {
print "Sorry. There are no statistics for this week
\n";
}
print "
";
}
else {
$d = dir("$current_directory");
//echo "Handle: ".$d->handle."
\n";
//echo "Path: ".$d->path."
\n";
include "header.php";
print $page_header;
$i=0;
while($entry=$d->read()) {
if($entry=="." or $entry==".." or $entry=="index.html") {
}
else {
$zzz[$i]=$entry;
$i++;
}
}
$d->close();
reset($zzz);
rsort($zzz);
while (list($key, $val) = each($zzz)) {
$date=substr("$val",0,2)+1;
$year=$add_year+substr("$val",4, 2);
$month= date(F, mktime(0,0,0,$date,0,2000));
$day=substr("$val",2, 2);
print "$month, $day $year
\n";
}
}
include "footer.php";
?>