]> git.mjollnir.org Git - moodle.git/commitdiff
Allow other Google thigns into the site too ... in particular translate.google.com
authormoodler <moodler>
Sun, 16 May 2004 14:19:35 +0000 (14:19 +0000)
committermoodler <moodler>
Sun, 16 May 2004 14:19:35 +0000 (14:19 +0000)
lib/setup.php

index 1513a9d085ab506008bf4253eb116f04639fc325..fe6c9db7746ef9f1943f904ba0166094c63aacd2 100644 (file)
                 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 ) {