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(23,59,59,02,20,2007,is_dst);
$end=mktime(0,0,0,03,31,2007,is_dst);
if($time > $start && $time < $end){
if(file_exists($date.".html"))
readfile($date.".html");
exit;
}
if($time < $start){
readfile("20070220.html");
exit;
}
if( $time >$end){
readfile("20070220.html");
exit;
}
?>