vorher ging noch alles.Fatal error: Call to undefined function: areyouabot() in /home/www/n4b225/html/forum/includes/sessions.php on line 382
Ich habe view bots mod drin und den SE Logger. Aber sonst lief is immer einwandfrei. Ich habe auch nix geändert.
Geht es bei Euch? http://www.pausen-power.de
Das ist der entsprechende Teil:
Code: Alles auswählen
//
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
function append_sid($url, $non_html_amp = false)
{
global $SID;
if (areyouabot($_SERVER["HTTP_USER_AGENT"], TRUE) != 1) {
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
}
return $url;
}
function logSearchEngines($filename)
{
$engines = array(
// Suchmaschinen bzw. unbekannt
"almaden", // Suchmaschine www.almaden.ibm.com
"appie", // Suchmaschine www.walhello.com
"ask jeeves",
"bumblebee", // Suchmaschine www.relevare.com
"crawler@fast",
"crawler",
"fast-webcrawler",
"WebCrawler", // Suchmaschine www.webcrawler.com
"Fluffy the spider", // Suchmaschine www.searchhippo.com
"Firefly", //
"Flickbot", //
"cosmos", // www.xyleme.com
"BaiDuSpider", //
"GAIS Robot", // Suchmaschine: seednet
"Gigabot", //
"Girafabot", // Suchmaschine www.girafa.com
"Googlebot", // Suchmaschine www.google.de
"grub-client", // www.grup.org
"Gulper", // Suchmaschine www.ecsl.cs.sunysb.edu/~maxim/cgi-bin/Link/GulperBot (research prototyp)
"hitwise", // www.hitwise.com
"htdig", //
"ia_archiver", //
"Indy Library", //
"slurp@inktomi", // www.inktomi.com
"larbin", // unspecific bot
"Lycos", // Suchmaschine www.lycos.com
"Acoon" , // Suchmaschine Acoon
"@messebasel", // Suchmaschine Messe Basel
"@bluewin" , // Suchmaschine sear.ch
"@pta" , // Suchmaschine search.at
"@altavista.de" , // Suchmaschine AltaVista Deutschland
"anzwerscrawl" , // Suchmaschine Anzwers
"arachnoidea" , // Suchmaschine EuroSeek
"architext" , // Suchmaschine Excite
"fido/" , // Suchmaschine PlanetSearch
"gais robot" , //
"gulliver" , // Suchmaschine Northern Light
"infoseek" , // Suchmaschine Infoseek
"fireball" , // Suchmaschine Fireball
"lwp-trivial", // Suchmaschine Search 4 Free
"lycos_spider", // Suchmaschine Lycos
"ezresult" , // Suchmaschine EZResult
"T-H-U-N-D-E-R-S-T-O-N-E" , // Suchmaschine Thunderstone
"MuscatFerret", // Suchmaschine EuroFerret
"kolibri" , // Suchmaschine Kolibri Online
"Scooter" , // Suchmaschine AltaVista
"Search.at" , // Suchmaschine search.at
"Sexsearcher", // Suchmaschine Sexsearcher
"Slurp" , // Suchmaschine Hotbot
"SwissSearch", // Suchmaschine SwissSearch
"The Informant", // Suchmaschine The Informant
"Ultraseek" , // Suchmaschine Ultraseek
"WiseWire" , // Suchmaschine WiseWire"
"MSIECrawler", //
"Mercator", //
"metacarta", // www.metacarta.com
"msnbot", // www.msn.bot
"NationalDirectory", //
"NetResearchServer", // www.loopimprovements.com
"NutchCrawler", //
"obot", //
"Openbot", // www.openfind.com.tw
"polybot", // http://cis.poly.edu
"Pompos", // http://pompos.iliad.fr
"psbot", // Suchmaschine www.picsearch.com
"reifier", //
"Scrubby", // www.scrubtheweb.com
"SlySearch", // www.slysearch.com
"szukacz",
"internetseer", // http://sitecheck.internetseer.com
"teoma",
"TurnitinBot", // www.turnitin.com
"UIowa", //
"VoilaBot", //
"vspider", //
"WebSearch", // Suchmaschine www.websearch.com.au
"WebWombat", // www.webwombat.com.au
"Wget", //
"Webster", //
"Yahoo", // Yahoo Crawler
"ZyBorg", // www.WISEnutbot.com
);
if(preg_match("#(" . str_replace(".", "\.", implode("|", $engines)) . ")#i", getenv("HTTP_USER_AGENT")))
{
global $db;
$sql= "INSERT INTO " . STATISTIC_SE_LOG_TABLE . " (statistic_se_log_se_name, statistic_se_log_time, statistic_se_log_file ) VALUES ('" . getenv("HTTP_USER_AGENT") . "', " . time() . ", '" . $filename . "' )";
if ( !($result = $db->sql_query($sql)) )
{
}
}
return FALSE;
}
?>