diff --git a/html/login.php b/html/login.php
index face7be1a..713142081 100644
--- a/html/login.php
+++ b/html/login.php
@@ -48,30 +48,33 @@ if ( isset ($_POST["p_user"] ) )
* Check repository version
*/
- if ($version != DBVERSIONREPO)
- {
- echo alert(_('Version de base de données incorrectes, vous devez mettre à jour'));
- echo "";
- exit();
- }
+ if ($version != DBVERSIONREPO)
+ {
+ echo html_page_start();
+ echo h1(_("Version base de donneés incorrecte"));
+ echo span(_('Un instant svp'));
+ echo alert(_('Version de base de données incorrectes, vous devez mettre à jour'));
+ echo "";
+ exit();
+ }
require_once NOALYSS_INCLUDE."/class/user.class.php";
$User=new User($rep);
$User->Check(false,'LOGIN');
if ($g_captcha == true)
- {
- include("securimage/securimage.php");
- $img = new Securimage();
- $valid = $img->check($_POST['captcha_code']);
- if ( $valid == false )
- {
- echo alert(_('Code invalide'));
- echo "";
- exit();
- }
+ {
+ include("securimage/securimage.php");
+ $img = new Securimage();
+ $valid = $img->check($_POST['captcha_code']);
+ if ( $valid == false )
+ {
+ echo alert(_('Code invalide'));
+ echo "";
+ exit();
}
- // force the nocache
- $backurl='user_login.php?v='.microtime(true);
- if ( isset ($_POST['backurl'])) {
+ }
+ // force the nocache
+ $backurl='user_login.php?v='.microtime(true);
+ if ( isset ($_POST['backurl'])) {
$backurl=urldecode($_POST['backurl']);
}
echo "";
@@ -86,10 +89,13 @@ else
*/
if ( $version != DBVERSIONREPO)
- {
- echo alert(_('Version de base de données incorrectes, vous devez mettre à jour'));
- echo "";
- exit();
+ {
+ echo html_page_start();
+ echo h1(_("Version base de donneés incorrecte"));
+ echo span(_('Un instant svp'));
+ echo alert(_('Version de base de données incorrectes, vous devez mettre à jour'));
+ echo "";
+ exit();
}