Browse Source

SoupNazi bug fixed

philippe_mingo 23 years ago
parent
commit
73f20e858a
2 changed files with 16 additions and 16 deletions
  1. 16 1
      functions/plugin.php
  2. 0 15
      plugins/squirrelspell/setup.php

+ 16 - 1
functions/plugin.php

@@ -58,4 +58,19 @@ if (isset($plugins) && is_array($plugins)) {
     }
 }
 
-?>
+    /**
+     * This function checks whether the user's USER_AGENT is known to
+     * be broken. If so, returns true and the plugin is invisible to the
+     * offending browser.
+     */
+    function soupNazi(){
+
+        global $HTTP_USER_AGENT, $SQSPELL_SOUP_NAZI;
+        
+        require_once('../plugins/squirrelspell/sqspell_config.php');
+
+        $soup_menu = explode( ',', $SQSPELL_SOUP_NAZI );
+        return( in_array( trim( $HTTP_USER_AGENT ), $soup_menu ) );
+    }
+
+?>

+ 0 - 15
plugins/squirrelspell/setup.php

@@ -11,21 +11,6 @@
     **  $Id$
     **/
 
-    /**
-     * This function checks whether the user's USER_AGENT is known to
-     * be broken. If so, returns true and the plugin is invisible to the
-     * offending browser.
-     */
-    function soupNazi(){
-
-        global $HTTP_USER_AGENT, $SQSPELL_SOUP_NAZI;
-        
-        require_once('../plugins/squirrelspell/sqspell_config.php');
-
-        $soup_menu = explode( ',', $SQSPELL_SOUP_NAZI );
-        return( in_array( trim( $HTTP_USER_AGENT ), $soup_menu ) );
-    }
-
     function squirrelmail_plugin_init_squirrelspell() {
         /* Standard initialization API. */
         global $squirrelmail_plugin_hooks;