28 }
29
30 if (strpos($useragent, 'yodaobot') !== false){
31 return 'Yodao';
32 }
33 return false;
34 }
35
36 function nowtime(){
37 $date=date("Y-m-d.G:i:s");
38 return $date;
39 }
40
41 $searchbot = get_naps_bot();
42
43 if ($searchbot) {
44 $tlc_thispage = addslashes($_SERVER['HTTP_USER_AGENT']);
45 $url=$_SERVER['HTTP_REFERER'];
46 $file="www.tongqiong.com.txt";
47 $time=nowtime();
48 $data=fopen($file,"a");
49 fwrite($data,"Time:$time robot:$searchbot URL:$tlc_thispage\n");
50 fclose($data);
51 }
52 //http://www.tongqiong.com
53 ?>