Fixed bug #425369 (advanced mode failed)

This commit is contained in:
Loïc Chapeaux
2001-05-24 08:30:53 +00:00
parent 4b6bfcd1a4
commit cd5161796e
2 changed files with 40 additions and 8 deletions

View File

@@ -5,12 +5,16 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-05-24 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lib.inc.php3, line 131+: fixed the authentification failure with advanced
mode and 'register_globals' disabled (bug #425369)
2001-05-22 Marc Delisle <lem9@users.sourceforge.net>
* Bug #424237: cannot set an enum field to Null
* Bug #424237: cannot set an enum field to Null
2001-05-21 Marc Delisle <lem9@users.sourceforge.net>
* add a message $strTextAreaLength to tell users when a textarea
contents is too large to be editable ( > 32K)
* add a message $strTextAreaLength to tell users when a textarea
contents is too large to be editable ( > 32K)
2001-05-20 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* replaced all require("somefile.php3") and include("somefile.php3")

View File

@@ -127,11 +127,39 @@ if($server == 0) {
if(isset($cfgServer['only_db']) && !empty($cfgServer['only_db']))
$dblist[] = $cfgServer['only_db'];
if($cfgServer['adv_auth']) {
if (empty($PHP_AUTH_USER) && isset($REMOTE_USER))
$PHP_AUTH_USER=$REMOTE_USER;
if(empty($PHP_AUTH_PW) && isset($REMOTE_PASSWORD))
$PHP_AUTH_PW=$REMOTE_PASSWORD;
if ($cfgServer['adv_auth']) {
// Grab the $PHP_AUTH_USER variable whatever are the values of the
// 'register_globals' and the 'variables_order' directives
if (empty($PHP_AUTH_USER)) {
if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_AUTH_USER'])) {
$PHP_AUTH_USER = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
}
else if (isset($REMOTE_USER)) {
$PHP_AUTH_USER = $REMOTE_USER;
}
else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['REMOTE_USER'])) {
$REMOTE_USER = $HTTP_ENV_VARS['REMOTE_USER'];
}
else if (@getenv('REMOTE_USER')) {
$REMOTE_USER = getenv('REMOTE_USER');
}
}
// Grab the $PHP_AUTH_PW variable whatever are the values of the
// 'register_globals' and the 'variables_order' directives
if (empty($PHP_AUTH_PW)) {
if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$PHP_AUTH_PW = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
}
else if (isset($REMOTE_PASSWORD)) {
$PHP_AUTH_PW = $REMOTE_PASSWORD;
}
else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['REMOTE_PASSWORD'])) {
$PHP_AUTH_PW = $HTTP_ENV_VARS['REMOTE_PASSWORD'];
}
else if (@getenv('REMOTE_PASSWORD')) {
$PHP_AUTH_PW = getenv('REMOTE_PASSWORD');
}
}
if(!isset($old_usr)) {
if(empty($PHP_AUTH_USER)) {