Added Zoomspider as allowed to enter when opentogoogle is open
authormoodler <moodler>
Thu, 13 Sep 2007 08:59:31 +0000 (08:59 +0000)
committermoodler <moodler>
Thu, 13 Sep 2007 08:59:31 +0000 (08:59 +0000)
lib/setup.php

index aabf33d468ca544aea69bfa62b337548a6583af6..a0ded0af2d088aeaffec7a7f593d1f596ceb2499 100644 (file)
@@ -601,11 +601,13 @@ global $HTTPSPAGEREQUIRED;
             if (!empty($_SERVER['HTTP_USER_AGENT'])) {
                 if (strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false ) {
                     $USER = guest_user();
-                } else if (strpos($_SERVER['HTTP_USER_AGENT'], 'google.com') !== false ) {
+                } else if (strpos($_SERVER['HTTP_USER_AGENT'], 'google.com') !== false ) { // Google
                     $USER = guest_user();
-                } else if (strpos($_SERVER['HTTP_USER_AGENT'], 'Yahoo! Slurp') !== false ) {
+                } else if (strpos($_SERVER['HTTP_USER_AGENT'], 'Yahoo! Slurp') !== false ) {  // Yahoo
                     $USER = guest_user();
-                } else if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSNBOT') !== false ) {
+                } else if (strpos($_SERVER['HTTP_USER_AGENT'], '[ZSEBOT]') !== false ) {  // Zoomspider
+                    $USER = guest_user();
+                } else if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSNBOT') !== false ) {  // MSN Search
                     $USER = guest_user();
                 }
             }