diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index fe7b09d6837..9e33dd63b6f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -600,11 +600,11 @@ else /** - \brief Affiche formulaire de login - \param langs Lang object - \param conf Conf object - \param mysoc Company object - \remarks Il faut changer le code html dans cette fonction pour changer le design de la logon + * \brief Show Dolibarr default login page + * \param langs Lang object + * \param conf Conf object + * \param mysoc Company object + * \remarks You must change HTML code in this page to change design of logon page. */ function dol_loginfunction($langs,$conf,$mysoc) { @@ -617,6 +617,9 @@ function dol_loginfunction($langs,$conf,$mysoc) header('Cache-Control: Public, must-revalidate'); + if (! empty($_REQUEST["urlfrom"])) $_SESSION["urlfrom"]=$_REQUEST["urlfrom"]; + else unset($_SESSION["urlfrom"]); + // Ce DTD est KO car inhibe document.body.scrollTop //print ''; // Ce DTD est OK @@ -719,7 +722,7 @@ function dol_loginfunction($langs,$conf,$mysoc) print ' '."\n"; - // Code de sécurité + // Security graphical code $disabled=! $conf->global->MAIN_SECURITY_ENABLECAPTCHA; if (function_exists("imagecreatefrompng") && ! $disabled) { @@ -747,8 +750,10 @@ function dol_loginfunction($langs,$conf,$mysoc) } print ''; + + // Hidden fields print ''; - + print ''; // Message @@ -766,6 +771,9 @@ function dol_loginfunction($langs,$conf,$mysoc) print '
'; } + print "\n"; + print ''; + // Fin entete html print "\n\n"; }