This is my 'functions.php':
Quote:
function vBCloaker_CheckUserAgent($testing=false)
{
if ($testing)
{ return true; }
global $DB_site;
$cloakPage = false;
$spideragents = $DB_site->query_first("SELECT value FROM ".TABLE_PREFIX."setting WHERE varname='spiderstrings'");
$spideragents = explode("\n",$spideragents['value']);
for ($i=0;$i<sizeof($spideragents);$i++)
{
if (substr_count(trim($spideragents[$i]),$_SERVER["HTTP_USER_AGENT"]) > 0) // Spiderbot
{
$cloakPage = true;
break;
}
}
return $cloakPage;
}
|
looks to match everything in post 30.
Is anyone else having the same problem still?
*If I can get this working, I'll definetely donate at least a few bux.