[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/plugins/badbehavior/bad-behavior/ -> mozilla.inc.php (source)

   1  <?php if (!defined('BB2_CORE')) die('I said no cheating!');
   2  
   3  // Analyze user agents claiming to be Mozilla
   4  
   5  function bb2_mozilla($package)
   6  {
   7      // First off, workaround for Google Desktop, until they fix it FIXME
   8      // Google Desktop fixed it, but apparently some old versions are
   9      // still out there. :(
  10      // Always check accept header for Mozilla user agents
  11      if (strpos($package['headers_mixed']['User-Agent'], "Google Desktop") === FALSE) {
  12          if (!array_key_exists('Accept', $package['headers_mixed'])) {
  13              return "17566707";
  14          }
  15      }
  16      return false;
  17  }
  18  
  19  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics