[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/include/inc_ext/bad-behavior/bad-behavior/ -> konqueror.inc.php (source)

   1  <?php if (!defined('BB2_CORE')) die('I said no cheating!');
   2  
   3  // Analyze user agents claiming to be Konqueror
   4  
   5  function bb2_konqueror($package)
   6  {
   7      // CafeKelsa is a dev project at Yahoo which indexes job listings for
   8      // Yahoo! HotJobs. It identifies as Konqueror so we skip these checks.
   9      if (stripos($package['headers_mixed']['User-Agent'], "YahooSeeker/CafeKelsa") === FALSE || match_cidr($package['ip'], "209.73.160.0/19") === FALSE) {
  10          if (!array_key_exists('Accept', $package['headers_mixed'])) {
  11              return "17566707";
  12          }
  13      }
  14      return false;
  15  }
  16  
  17  ?>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7