From 67a9561650869513a35287a4b9d07882115542e5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 11 Sep 2007 19:03:11 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20mise=20en=20page=20et=20d=E9sactivation?= =?UTF-8?q?=20du=20captcha=20si=20module=20ldap=20ou=20autre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/langs/en_US/other.lang | 2 +- htdocs/user/passwordforgotten.php | 33 +++++++++++++++++-------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index eb00e2d7e53..1242803cb21 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -78,7 +78,7 @@ VolumeUnitmm3=mm3 BugTracker=Bug tracker SendNewPasswordDesc=This form allows you to request a new passord. It will be send to your email address. Change will be effective only after clicking on confirmation link inside this email. Check your email reader software. BackToLoginPage=Back to login page -AuthenticationDoesNotAllowSendNewPassword=Authentication mode is %s. In this mode, Dolibarr can't know nor change your password. Contact your system administrator if you want to change your password. +AuthenticationDoesNotAllowSendNewPassword=Authentication mode is %s.
In this mode, Dolibarr can't know nor change your password.
Contact your system administrator if you want to change your password. ##### Webcal ##### LoginWebcal=Login for Webcalendar AddCalendarEntry=Add entry in calendar diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index cd17609abd3..2af98f7e875 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -182,7 +182,7 @@ print '
'."\n"; // Table 1 -print ''."\n"; +print '
'."\n"; if (file_exists(DOL_DOCUMENT_ROOT.'/logo.png')) { print '
'; @@ -196,13 +196,13 @@ print '
'."\n"; print '
'."\n"; // Table 2 -print ''."\n"; +print '
'."\n"; print ''."\n"; print ''; $disabled='disabled'; -if ($mode == 'dolibarr') $disabled=''; +if ($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') $disabled=''; print ''; @@ -230,29 +230,32 @@ print '>'; print ''."\n"; -//print "Info session: ".session_name().session_id();print_r($_SESSION); -$cryptinstall = DOL_URL_ROOT.'/includes/cryptographp'; -print ''; -print ''; -print ''; -print ''; +if ($conf->global->MAIN_SECURITY_ENABLECAPTCHA && !$disabled) +{ + //print "Info session: ".session_name().session_id();print_r($_SESSION); + $cryptinstall = DOL_URL_ROOT.'/includes/cryptographp'; + print ''; + print ''; + print ''; + print ''; +} -print "".''."\n"; +print "".''."\n"; print "
 
  '.$langs->trans("Login").'  
  '.$langs->trans("SecurityCode").''; -dsp_crypt('dolibarr.cfg.php',1); -print '
  '.$langs->trans("SecurityCode").''; + dsp_crypt('dolibarr.cfg.php',1); + print '
"."\n"; print "
"."\n"; print '
'."\n"; -print '
'; -if (! $mode == 'dolibarr' || $conf->global->MAIN_SECURITY_FORCEFORGETPASSLINK) +print '
'; +if (($mode == 'dolibarr' || $mode == 'dolibarr_mdb2')) { print ''.$langs->trans("SendNewPasswordDesc").''."\n"; } else { - print '
'.$langs->trans("AuthenticationDoesNotAllowSendNewPassword",$mode).'
'."\n"; + print '
'.$langs->trans("AuthenticationDoesNotAllowSendNewPassword",$mode).'
'."\n"; } print '

';