Quand on est authentifié apache, la variable $GLOBAL[USER_NAME] n'est pas toujours définie car cela dépend 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
|
//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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user