SoupNazi bug fixed
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Jan 2002 08:39:57 +0000 (08:39 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Jan 2002 08:39:57 +0000 (08:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2081 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/plugin.php
plugins/squirrelspell/setup.php

index b5f4e4f..3ce547c 100644 (file)
@@ -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 ) );
+    }
+
+?>
\ No newline at end of file
index cce6adf..654b110 100644 (file)
     **  $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;