*** empty log message ***
[squirrelmail.git] / functions / plugin.php
index e99b7fefbcc59544260b0fd45c6b59b472b2580a..99b7f4c987a05b6ab0efc07334aada97c2d9d1ed 100644 (file)
@@ -13,6 +13,8 @@
  * $Id$
  */
 
+require_once(SM_PATH . 'functions/global.php');
+
 global $squirrelmail_plugin_hooks;
 $squirrelmail_plugin_hooks = array();
 
@@ -97,8 +99,9 @@ function soupNazi(){
 
     $soup_menu = array('Mozilla/3','Mozilla/2','Mozilla/1', 'Opera 4',
                        'Opera/4', 'OmniWeb', 'Lynx');
+    sqgetGlobalVar('HTTP_USER_AGENT', $user_agent, SQ_SERVER);
     foreach($soup_menu as $browser) {
-        if(stristr($_SERVER['HTTP_USER_AGENT'], $browser)) {
+        if(stristr($user_agent, $browser)) {
             return 1;
         }
     }