Chargement class mal place
This commit is contained in:
parent
4a05711299
commit
758fbe5aac
@ -73,8 +73,10 @@ foreach ($_POST as $key => $val)
|
|||||||
|
|
||||||
require_once("master.inc.php");
|
require_once("master.inc.php");
|
||||||
|
|
||||||
$bc[0]="class=\"impair\"";
|
// Chargement des includes complementaire de presentation
|
||||||
$bc[1]="class=\"pair\"";
|
if ($conf->use_ajax) require_once(DOL_DOCUMENT_ROOT.'/lib/ajax.lib.php');
|
||||||
|
if (! defined('NOREQUIREMENU')) require_once(DOL_DOCUMENT_ROOT ."/menu.class.php");
|
||||||
|
if (! defined('NOREQUIREHTML')) require_once(DOL_DOCUMENT_ROOT ."/html.form.class.php");
|
||||||
|
|
||||||
// Init session
|
// Init session
|
||||||
$sessionname="DOLSESSID_".$dolibarr_main_db_name;
|
$sessionname="DOLSESSID_".$dolibarr_main_db_name;
|
||||||
@ -82,6 +84,9 @@ session_name($sessionname);
|
|||||||
session_start();
|
session_start();
|
||||||
dolibarr_syslog("Session name=".$sessionname." Session id()=".session_id().", _SESSION['dol_login']=".$_SESSION["dol_login"]);
|
dolibarr_syslog("Session name=".$sessionname." Session id()=".session_id().", _SESSION['dol_login']=".$_SESSION["dol_login"]);
|
||||||
|
|
||||||
|
$bc[0]="class=\"impair\"";
|
||||||
|
$bc[1]="class=\"pair\"";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Phase identification
|
* Phase identification
|
||||||
*/
|
*/
|
||||||
@ -343,7 +348,9 @@ if (! session_id() || ! isset($_SESSION["dol_login"]))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verification du code
|
// Verification du code securite graphique
|
||||||
|
// \TODO Ce test apres les test PEAR ner sert a rien car il n'empeche pas le brute force cracking
|
||||||
|
// Il doit etre mis avant validation du mot de passe. Mais pour cela il faut virer PEAR.
|
||||||
if ($conf->global->MAIN_SECURITY_ENABLECAPTCHA)
|
if ($conf->global->MAIN_SECURITY_ENABLECAPTCHA)
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/../external-libs/Artichow/Artichow.cfg.php';
|
require_once DOL_DOCUMENT_ROOT.'/../external-libs/Artichow/Artichow.cfg.php';
|
||||||
@ -450,7 +457,7 @@ if (! session_id() || ! isset($_SESSION["dol_login"]))
|
|||||||
session_start();
|
session_start();
|
||||||
$langs->load('main');
|
$langs->load('main');
|
||||||
if ($result == 0) $_SESSION["loginmesg"]=$langs->trans("ErrorCantLoadUserFromDolibarrDatabase",$login);
|
if ($result == 0) $_SESSION["loginmesg"]=$langs->trans("ErrorCantLoadUserFromDolibarrDatabase",$login);
|
||||||
if ($result < 0) $_SESSION["loginmesg"]=$user->error;
|
if ($result < 0) $_SESSION["loginmesg"]=$user->error;
|
||||||
header('Location: '.DOL_URL_ROOT.'/index.php');
|
header('Location: '.DOL_URL_ROOT.'/index.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,16 +146,14 @@ if (isset($_SERVER["HTTP_USER_AGENT"]))
|
|||||||
if (eregi('iceweasel',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->firefox=1;
|
if (eregi('iceweasel',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->firefox=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chargement des includes principaux
|
// Chargement des includes principaux de librairies communes
|
||||||
if (! defined('NOREQUIREUSER')) require_once(DOL_DOCUMENT_ROOT ."/user.class.php");
|
if (! defined('NOREQUIREUSER')) require_once(DOL_DOCUMENT_ROOT ."/user.class.php");
|
||||||
if (! defined('NOREQUIREMENU')) require_once(DOL_DOCUMENT_ROOT ."/menu.class.php");
|
|
||||||
if (! defined('NOREQUIREHTML')) require_once(DOL_DOCUMENT_ROOT ."/html.form.class.php");
|
|
||||||
if (! defined('NOREQUIREDB')) require_once(DOL_DOCUMENT_ROOT ."/lib/databases/".$conf->db->type.".lib.php");
|
|
||||||
if (! defined('NOREQUIRETRAN')) require_once(DOL_DOCUMENT_ROOT ."/translate.class.php");
|
if (! defined('NOREQUIRETRAN')) require_once(DOL_DOCUMENT_ROOT ."/translate.class.php");
|
||||||
if (! defined('NOREQUIRESOC')) require_once(DOL_DOCUMENT_ROOT ."/societe.class.php");
|
if (! defined('NOREQUIRESOC')) require_once(DOL_DOCUMENT_ROOT ."/societe.class.php");
|
||||||
|
if (! defined('NOREQUIREDB')) require_once(DOL_DOCUMENT_ROOT ."/lib/databases/".$conf->db->type.".lib.php");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation objet $langs
|
* Creation objet $langs (must be before all other code)
|
||||||
*/
|
*/
|
||||||
if (! defined('NOREQUIRETRAN'))
|
if (! defined('NOREQUIRETRAN'))
|
||||||
{
|
{
|
||||||
@ -194,7 +192,7 @@ if (! defined('NOREQUIREDB'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Chargement langage par défaut
|
* Chargement langage par défaut (must be after the setValues of $conf)
|
||||||
*/
|
*/
|
||||||
if (! defined('NOREQUIRETRAN'))
|
if (! defined('NOREQUIRETRAN'))
|
||||||
{
|
{
|
||||||
@ -297,5 +295,9 @@ if (! defined('NOREQUIRESOC'))
|
|||||||
$yesno[0]="no";
|
$yesno[0]="no";
|
||||||
$yesno[1]="yes";
|
$yesno[1]="yes";
|
||||||
|
|
||||||
|
// Sert pour styles lignes tableaux
|
||||||
|
$bc[0]="class=\"impair\"";
|
||||||
|
$bc[1]="class=\"pair\"";
|
||||||
|
|
||||||
if ( ! defined('MENTION_NPR') ) define('MENTION_NPR','(npr)');
|
if ( ! defined('MENTION_NPR') ) define('MENTION_NPR','(npr)');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user