Ajout du l'auto-user

This commit is contained in:
Rodolphe Quiedeville 2003-10-14 14:49:35 +00:00
parent 431c95e85e
commit 365049b802

View File

@ -76,6 +76,12 @@ if (!empty ($GLOBALS["REMOTE_USER"]))
{ {
$user->fetch($GLOBALS["REMOTE_USER"]); $user->fetch($GLOBALS["REMOTE_USER"]);
} }
else
{
if (!empty ($dolibarr_auto_user))
{
$user->fetch($dolibarr_auto_user);
}
else else
{ {
require_once "Auth/Auth.php"; require_once "Auth/Auth.php";
@ -102,7 +108,7 @@ else
*/ */
print '</div></div></body></html>'; print '</div></div></body></html>';
die ; die ;
}
} }
} }