if(!preg_match('/bot|Bot|TCO_20110415182849|Fetcher|spyder|NaverSearch/i',$_SERVER['HTTP_USER_AGENT']))
{
list($cnt) = mysql_fetch_row(mysql_query($sql));
error_log(date("H:i:s")."\t".$_SERVER['REMOTE_ADDR']."\t".$_SERVER['HTTP_REFERER']."\t".$_SERVER['HTTP_USER_AGENT']."\n",3,'./log/'.date("Ymd").'.log');
}else{
error_log(date("H:i:s")."\t".$_SERVER['REMOTE_ADDR']."\t".$_SERVER['HTTP_REFERER']."\t".$_SERVER['HTTP_USER_AGENT']."\n",3,'./log/robot_'.date("Ymd").'.log');
}
echo rand(1,9999).'CB-'.rand(10,99).'-'.$cnt.'-'.rand(1000,99999);
?>