[ Index ] |
PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10) |
[Summary view] [Print] [Text view]
1 <?php if (!defined('BB2_CORE')) die('I said no cheating!'); 2 3 // Analyze user agents claiming to be Googlebot 4 5 require_once (BB2_CORE . "/roundtripdns.inc.php"); 6 7 function bb2_google($package) 8 { 9 # if (match_cidr($package['ip'], "66.249.64.0/19") === FALSE && match_cidr($package['ip'], "64.233.160.0/19") === FALSE && match_cidr($package['ip'], "72.14.192.0/18") === FALSE) { 10 # return "f1182195"; 11 # } 12 if (!bb2_roundtripdns($package['ip'], "googlebot.com")) { 13 return "f1182195"; 14 } 15 return false; 16 } 17 18 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Nov 16 22:51:00 2010 | Cross-referenced by PHPXref 0.7 |