forked from Wavyzz/dolibarr
Fix: nettoyage du code
This commit is contained in:
@@ -1322,18 +1322,10 @@ function dol_loginfunction($notused,$pearstatus)
|
|||||||
print '<body class="body" onload="donnefocus();">';
|
print '<body class="body" onload="donnefocus();">';
|
||||||
|
|
||||||
// Start Form
|
// Start Form
|
||||||
/* if ($conf->global->MAIN_SECURITY_ENABLECAPTCHA)
|
print '<form id="login" name="login" method="post" action="';
|
||||||
{
|
print $_SERVER['PHP_SELF'];
|
||||||
print '<form id="login" name="login" method="post" action="'.DOL_URL_ROOT.'/verifier.php">';
|
print $_SERVER["QUERY_STRING"]?'?'.$_SERVER["QUERY_STRING"]:'';
|
||||||
}
|
print '">';
|
||||||
else
|
|
||||||
{
|
|
||||||
*/
|
|
||||||
print '<form id="login" name="login" method="post" action="';
|
|
||||||
print $_SERVER['PHP_SELF'];
|
|
||||||
print $_SERVER["QUERY_STRING"]?'?'.$_SERVER["QUERY_STRING"]:'';
|
|
||||||
print '">';
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Table 1
|
// Table 1
|
||||||
print '<table cellpadding="0" cellspacing="0" border="0" align="center" width="450">';
|
print '<table cellpadding="0" cellspacing="0" border="0" align="center" width="450">';
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ if (! session_id() || ! isset($_SESSION["dol_login"]))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// MODE DOLIBARR MDB2
|
// MODE DOLIBARR MDB2
|
||||||
// Ajout du mode MDB2 pour test uniquement
|
//Todo: voir pour l'utiliser par d<>faut
|
||||||
if (in_array('dolibarr_mdb2',$authmode) && ! $login)
|
if (in_array('dolibarr_mdb2',$authmode) && ! $login)
|
||||||
{
|
{
|
||||||
require_once(PEAR_PATH."/Auth/Auth.php");
|
require_once(PEAR_PATH."/Auth/Auth.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user