bug #516491 - in php 4.1+

This commit is contained in:
Loïc Chapeaux
2002-02-15 12:43:41 +00:00
parent e6b171eb58
commit dc19da2631
2 changed files with 6 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ $Source$
* libraries/select_lang.php3: sorted the languages array.
* libraries/auth/cookie.auth.lib.php3, line 100: restored the use of
"$strLogin" inside the title of the login page.
* libraries/defines.inc.php3: bug #516491 - $HTTP_USER_AGENT in
php 4.1+. Thanks to Marcus B<>rger for this patch.
2002-02-14 Marc Delisle <lem9@users.sourceforge.net>
* hungarian updates thanks to Peter Bakondy

View File

@@ -89,7 +89,10 @@ if (!defined('PMA_USR_OS')) {
$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
} else if (!empty($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) {
$HTTP_USER_AGENT = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
} else if (!isset($HTTP_USER_AGENT)) {
$HTTP_USER_AGENT = '';
}
// 1. Platform
if (strstr($HTTP_USER_AGENT, 'Win')) {
define('PMA_USR_OS', 'Win');
@@ -104,6 +107,7 @@ if (!defined('PMA_USR_OS')) {
} else {
define('PMA_USR_OS', 'Other');
}
// 2. browser and version
if (ereg('MSIE ([0-9].[0-9]{1,2})', $HTTP_USER_AGENT, $log_version)) {
define('PMA_USR_BROWSER_VER', $log_version[1]);