diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php
index dfc4772c583..8081f06dcd3 100644
--- a/htdocs/admin/security_other.php
+++ b/htdocs/admin/security_other.php
@@ -136,32 +136,38 @@ print '
'.$langs->trans("Activated").' | ';
print ''.$langs->trans("Action").' | ';
print '';
-// Disable clear password in database
+// Enable Captcha code
+$var=!$var;
+print "";
+print '| '.$langs->trans("UseCaptchaCode").' | ';
+print '';
+if($conf->global->MAIN_SECURITY_ENABLECAPTCHA == 1)
+{
+ print img_tick();
+}
+print ' | ';
+print '';
if (function_exists("imagecreatefrompng"))
{
- $var=!$var;
- print " |
";
- print '| '.$langs->trans("UseCaptchaCode").' | ';
- print '';
- if($conf->global->MAIN_SECURITY_ENABLECAPTCHA == 1)
- {
- print img_tick();
- }
- print ' | ';
- print '';
- if ($conf->global->MAIN_SECURITY_ENABLECAPTCHA == 0)
- {
- print ''.$langs->trans("Activate").'';
- }
- if($conf->global->MAIN_SECURITY_ENABLECAPTCHA == 1)
- {
- print ''.$langs->trans("Disable").'';
- }
- print " | ";
-
- print "";
- print '
';
+ if ($conf->global->MAIN_SECURITY_ENABLECAPTCHA == 0)
+ {
+ print ''.$langs->trans("Activate").'';
+ }
+ if($conf->global->MAIN_SECURITY_ENABLECAPTCHA == 1 && function_exists("imagecreatefrompng"))
+ {
+ print ''.$langs->trans("Disable").'';
+ }
}
+else
+{
+ $html = new Form($db);
+ $desc = $html->textwithwarning('',$langs->transnoentities("EnableGDLibraryDesc"),1);
+ print $desc;
+}
+print "";
+
+print "";
+print '';
print '';
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index 209fcf3f208..cf1e5bea1dd 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -34,6 +34,7 @@ NextValueForCreditNotes=Next value (credit notes)
MustBeLowerThanPHPLimit=Note: your PHP limits upload size to %s %s, whatever is this parameter's value
NoMaxSizeByPHPLimit=Note: No limit are built in your PHP
MaxSizeForUploadedFiles=Maximum size for uploaded files (0 to disallow any upload)
+UseCaptchaCode=Use Captcha code
ComptaSetup=Accounting module setup
UserSetup=Users' management setup
MenuSetup=Menus management setup
diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang
index e98663065ba..02e250f7bd5 100644
--- a/htdocs/langs/en_US/other.lang
+++ b/htdocs/langs/en_US/other.lang
@@ -79,6 +79,7 @@ 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.
+EnableGDLibraryDesc=Install or enable GD library with your PHP for use this option.
##### Webcal #####
LoginWebcal=Login for Webcalendar
AddCalendarEntry=Add entry in calendar
diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang
index 6265f367ff6..abd9529cf0b 100644
--- a/htdocs/langs/fr_FR/admin.lang
+++ b/htdocs/langs/fr_FR/admin.lang
@@ -34,6 +34,7 @@ NextValueForCreditNotes=Prochaine valeur (avoirs)
MustBeLowerThanPHPLimit=Remarque: Votre PHP limite naturellement la taille à %s %s maximum, quelque soit la valeur de ce paramètre
NoMaxSizeByPHPLimit=Aucune limite interne à votre serveur PHP
MaxSizeForUploadedFiles=Taille maximum des documents uploadés (0 pour interdire l'upload)
+UseCaptchaCode=Utilisation de codes Captcha
ComptaSetup=Configuration du module Comptabilité
UserSetup=Configuration gestion des utilisateurs
MenuSetup=Administration des menus par base de données
diff --git a/htdocs/langs/fr_FR/other.lang b/htdocs/langs/fr_FR/other.lang
index 3a9b5c18a2c..986cbc63b49 100644
--- a/htdocs/langs/fr_FR/other.lang
+++ b/htdocs/langs/fr_FR/other.lang
@@ -79,6 +79,7 @@ BugTracker=Bug tracker
SendNewPasswordDesc=Ce formulaire permet d'envoyer un nouveau mot de passe. Il sera envoyé à l'adresse email de votre user.
La modification du mot de passe ne sera effective qu'après clic par le destinataire du lien de confirmation inclut dans ce mail.
Surveillez votre messagerie.
BackToLoginPage=Retour page de connexion
AuthenticationDoesNotAllowSendNewPassword=Le mode d'authentification de Dolibarr est configuré à "%s".
Dans ce mode, Dolibarr n'a pas la possibilité de connaitre ni modifier votre mot de passe.
Contacter votre administrateur pour connaitre les modalités de changement.
+EnableGDLibraryDesc=Vous devez activer ou installer la librairie GD avec votre PHP pour pouvoir activer cette option.
##### Webcal #####
LoginWebcal=Login Webcalendar
AddCalendarEntry=Ajouter entrée dans le calendrier