if(is_numeric($_REQUEST[date])):
ereg("([0-9]{4})([0-9][0-9])([0-9][0-9])",$_REQUEST[date],$reg);
$time=mktime(0,0,0,intval($reg[2]),intval($reg[3]),intval($reg[1]),is_dst);
else:
$time=time();
endif;
// echo date("Ymd",$time)."
".$reg[1]." - ".$reg[2]." - ".$reg[3]."
";
$date=date("Ymd",$time);
// echo $date."
\n";
$start=mktime(22,59,59,05,26,2007,is_dst);
$end=($start+(180*86400));
// $end=mktime(0,0,0,12,02,2007,is_dst);
if($time > $start && $time < $end){
if(file_exists($date.".html"))
readfile($date.".html");
exit;
}
if($time < $start){
readfile("20070526.html");
exit;
}
if( $time >$end){
readfile("20071202.html");
exit;
}
?>