Allow other Google thigns into the site too ... in particular translate.google.com

This commit is contained in:
moodler 2004-05-16 14:19:35 +00:00
parent 6f80940b1e
commit 2d33fc00d1

View File

@ -245,6 +245,9 @@
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false ) {
$USER = guest_user();
}
if (strpos($_SERVER['HTTP_USER_AGENT'], 'google.com') !== false ) {
$USER = guest_user();
}
}
if (empty($_SESSION['USER']) and !empty($_SERVER['HTTP_REFERER'])) {
if (strpos($_SERVER['HTTP_REFERER'], 'google') !== false ) {