50) $page=50; $item_id=$_GET['item_id']; if (intval($item_id)<>$item_id || $item_id<1 || $item_id>'999999999999999' || $D<1 || $D>31 || $M<1 || $M>12 || $Y>2050 || $Y<2000 || $_SERVER["REQUEST_URI"]<>str_replace('?','',$_SERVER["REQUEST_URI"])) { header("HTTP/1.1 404 Not Found"); exit; } if ($D<10) $D='0'.$D; if ($M<10) $M='0'.$M; if ($page==1) { $file_dir="./article/".$Y.'/'.$M.'/'.$D.'/'.$item_id.'.htm'; } else { $file_dir="./article/".$Y.'/'.$M.'/'.$D.'/'.$item_id.'.'.$page.'.htm'; } //$repage_gen=3600*24*365*10; //20191106暫時改成180天 $repage_gen=3600*24*180; if($_SERVER['REMOTE_ADDR']=='59.124.64.167'){ /* $repage_gen = 3; $_GET['debug'] = 1; echo __FILE__."
"; echo 'Line:'.__LINE__."
"; echo $repage_gen; echo '
'; */ } $root = '/var/www/html/new/'; @include_once($root.'include/config.inc.php'); include_once($root."include/php_to_html.php"); html_start($file_dir,$repage_gen); include_once("./news/article.php"); html_end($fname,$repage_gen); ?>