diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php
index 10e9b90ccd6..b77ddadd8b5 100644
--- a/htdocs/admin/ldap.php
+++ b/htdocs/admin/ldap.php
@@ -245,7 +245,8 @@ print '
'.$langs->trans
// Pass
print '';
print '| '.$langs->trans("LDAPPassword").' | ';
-print '';
+print '';
+print showValueWithClipboardCPButton(getDolGlobalString('LDAP_ADMIN_PASS'), 0, ' ');
print ' | '.$langs->trans('Password').' (ex: secret) | ';
print '';
diff --git a/htdocs/admin/system/dolibarr.php b/htdocs/admin/system/dolibarr.php
index 80efc0a9891..86c76ca1604 100644
--- a/htdocs/admin/system/dolibarr.php
+++ b/htdocs/admin/system/dolibarr.php
@@ -411,7 +411,7 @@ foreach ($configfileparameters as $key => $value) {
} elseif ($newkey == 'dolibarr_main_url_root' && preg_match('/__auto__/', ${$newkey})) {
print ${$newkey}.' => '.constant('DOL_MAIN_URL_ROOT');
} elseif ($newkey == 'dolibarr_main_document_root_alt') {
- $tmparray = explode(',', ${$newkey});
+ $tmparray = explode(',', $dolibarr_main_document_root_alt);
$i = 0;
foreach ($tmparray as $value2) {
if ($i > 0) {
@@ -429,7 +429,7 @@ foreach ($configfileparameters as $key => $value) {
global $dolibarr_main_cookie_cryptkey, $dolibarr_main_instance_unique_id;
$valuetoshow = $dolibarr_main_instance_unique_id ? $dolibarr_main_instance_unique_id : $dolibarr_main_cookie_cryptkey; // Use $dolibarr_main_instance_unique_id first then $dolibarr_main_cookie_cryptkey
if (empty($dolibarr_main_prod)) {
- print '';
+ print '';
print showValueWithClipboardCPButton($valuetoshow, 0, '********');
} else {
print '**********';
|