if($_SERVER['REMOTE_ADDR']!="203.217.247.193" && substr($_SERVER['REMOTE_ADDR'],0,9)!="66.249.73") {
include "head.php";
?>
$id=$_GET['id'];
$type=$_GET['type'];
$r_page=$_GET['r_page'];
$no=$_GET['no'];
$display=$_GET['display'];
$sort_kind=$_GET['sort_kind'];
$page=$_GET['page'];
$keyword=$_GET['keyword'];
$keyfield=$_GET['keyfield'];
$code=$_GET['code'];
if(!$page)
$page=1;
if($id=="good" || $id=="review")
$comix_per_page=20;
else
$comix_per_page=30;
$news_result=mysql_query("SELECT * FROM News WHERE boardid='$id' and boardno='$no'",$connect);
$news_row=mysql_fetch_array($news_result);
$news=$news_row[article_type];
if($id=="chain_reply")
$printid=$id."_".$type;
else
$printid=$id;
$setup = get_table_attrib($id,$connect);
$member=mysql_fetch_array(mysql_query("SELECT * FROM zetyx_member_table WHERE no='".$_SESSION['zb_logged_no']."'",$connect));
function getmicrotime2() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
if(!eregi($setup[no]."_".$no,$_SESSION['zb_hit']) && substr($_SERVER['REMOTE_ADDR'],0,9)!="72.14.199" && substr($_SERVER['REMOTE_ADDR'],0,9)!="66.249.79") { // Google Bot Filtering
$_dbTimeStart = getmicrotime2();
$_dbTime += getmicrotime2()-$_dbTimeStart;
$hitStr=",".$setup[no]."_".$no;
mysql_query("update zetyx_board_$id set hit=hit+1 where no='$no'",$connect);
// 4.0x 용 세션 처리
$zb_hit=$_SESSION['zb_hit'].$hitStr;
$_SESSION['zb_hit']=$zb_hit;
if($news_row[no]>0) {
$signdate=time();
mysql_query("insert into hit_news values ('','$signdate',$no,'$id','$id"."_"."$no','$news_row[article_type]','".$_SERVER['REMOTE_ADDR']."')",$connect);
}
}
?>