[ 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/ -> trackback.inc.php (source)

   1  <?php if (!defined('BB2_CORE')) die('I said no cheating!');
   2  
   3  // Specialized screening for trackbacks
   4  function bb2_trackback($package)
   5  {
   6      // Web browsers don't send trackbacks
   7      if ($package['is_browser']) {
   8          return 'f0dcb3fd';
   9      }
  10  
  11      // Proxy servers don't send trackbacks either
  12      if (array_key_exists('Via', $package['headers_mixed']) || array_key_exists('Max-Forwards', $package['headers_mixed']) || array_key_exists('X-Forwarded-For', $package['headers_mixed']) || array_key_exists('Client-Ip', $package['headers_mixed'])) {
  13          return 'd60b87c7';
  14      }
  15      return false;
  16  }
  17  
  18  ?>


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