Quand on est authentifi apache, la variable $GLOBAL[USER_NAME] n'est pas toujours dfinie car cela dpend si register_global est off ou non. $HTTP_SERVER_VARS est utilis la place.
This commit is contained in:
parent
2e9cf161d6
commit
cfa0b77062
@ -83,9 +83,9 @@ clearstatcache();
|
||||
|
||||
//XAVIER DUTOIT 18/09/2003 : si l'utilisateur n'est pas authentifié apache, on essaie pear Auth
|
||||
|
||||
if (!empty ($GLOBALS["REMOTE_USER"]))
|
||||
if (!empty ($HTTP_SERVER_VARS["REMOTE_USER"]))
|
||||
{
|
||||
$user->fetch($GLOBALS["REMOTE_USER"]);
|
||||
$user->fetch($HTTP_SERVER_VARS["REMOTE_USER"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user