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,12,02,2006,is_dst);
$end=mktime(0,0,0,12,25,2006,is_dst);
if($time > $start && $time < $end){
if(file_exists($date.".html"))
readfile($date.".html");
exit;
}
if($time < $start){
readfile("20061202.html");
exit;
}
if( $time >$end){
readfile("20061202.html");
exit;
}
?>