Allow Babelfish in to translate

This commit is contained in:
moodler
2005-07-13 16:40:48 +00:00
parent b8b0f6dbe9
commit e80ca6fb8d
+2
View File
@@ -385,6 +385,8 @@ global $THEME;
if (empty($_SESSION['USER']) and !empty($_SERVER['HTTP_REFERER'])) {
if (strpos($_SERVER['HTTP_REFERER'], 'google') !== false ) {
$USER = guest_user();
} else if (strpos($_SERVER['HTTP_REFERER'], 'babelfish.altavista.com') !== false ) {
$USER = guest_user();
}
}
}