$version_old)) {
header("Location: ./admin_maj.php");
exit();
}
// User wants to be authentified
$_POST['login']=$_SESSION["NomU"];
$_POST['password']=$_SESSION["Password"];
if (isset($_POST['login']) && isset($_POST['password'])) {
$result = openSession($_POST['login'], $_POST['password']);
if ($result=="2") {
$message = $vocab["echec_connexion_GRR"];
$message .= " ".$vocab["wrong_pwd"];
} else if ($result == "3") {
$message = $vocab["echec_connexion_GRR"];
$message .= "
". $vocab["importation_impossible"];
} else if ($result == "4") {
//$message = $vocab["importation_impossible"];
$message = $vocab["echec_connexion_GRR"];
$message .= " ".$vocab["causes_possibles"];
$message .= "
- ".$vocab["wrong_pwd"];
$message .= "
- ". $vocab["echec_authentification_ldap"];
} else {
header("Location: ./".page_accueil()."");
die();
}
}
// on ferme une éventuelle session ouverte précédemment
closeSession($_GET['auto']);
echo begin_page(getSettingValue("company")." : ".$vocab["mrbs"],"no_session");
?>
".$vocab["msg_login3"]."";
?>
".$vocab["mrbs"]." - ".$vocab["grr_version"].getSettingValue("version")."\n";
echo "
".$vocab["msg_login1"]."".$grr_devel_url."";
echo "
- ".$vocab["autor_contact"]." -