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,28,2006,is_dst);
$end=mktime(0,0,0,04,15,2006,is_dst);
if($time > $start && $time < $end){
if(file_exists($date.".html"))
readfile($date.".html");
exit;
}
if($time < $start){
readfile("index-x.html");
exit;
}
if( $time >$end){
readfile("20060415.html");
exit;
}
?>