projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[squirrelmail.git]
/
functions
/
plugin.php
diff --git
a/functions/plugin.php
b/functions/plugin.php
index e99b7fefbcc59544260b0fd45c6b59b472b2580a..99b7f4c987a05b6ab0efc07334aada97c2d9d1ed 100644
(file)
--- a/
functions/plugin.php
+++ b/
functions/plugin.php
@@
-13,6
+13,8
@@
* $Id$
*/
* $Id$
*/
+require_once(SM_PATH . 'functions/global.php');
+
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks = array();
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');
$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) {
foreach($soup_menu as $browser) {
- if(stristr($
_SERVER['HTTP_USER_AGENT']
, $browser)) {
+ if(stristr($
user_agent
, $browser)) {
return 1;
}
}
return 1;
}
}