@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $icon = new stdClass(); |
| 89 | 89 | $icon->src = getDolGlobalString('MAIN_MANIFEST_APPLI_LOGO_URL'); |
| 90 | 90 | if (getDolGlobalString('MAIN_MANIFEST_APPLI_LOGO_URL_SIZE')) { |
| 91 | - $icon->sizes = getDolGlobalString('MAIN_MANIFEST_APPLI_LOGO_URL_SIZE') . "x" . getDolGlobalString('MAIN_MANIFEST_APPLI_LOGO_URL_SIZE'); |
|
| 91 | + $icon->sizes = getDolGlobalString('MAIN_MANIFEST_APPLI_LOGO_URL_SIZE')."x".getDolGlobalString('MAIN_MANIFEST_APPLI_LOGO_URL_SIZE'); |
|
| 92 | 92 | } else { |
| 93 | 93 | $icon->sizes = "512x512"; |
| 94 | 94 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $manifest->icons[] = $icon; |
| 97 | 97 | } elseif (getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED')) { |
| 98 | 98 | if (getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI')) { |
| 99 | - $iconRelativePath = 'logos/thumbs/' . getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI'); |
|
| 99 | + $iconRelativePath = 'logos/thumbs/'.getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI'); |
|
| 100 | 100 | $iconPath = $conf->mycompany->dir_output.'/'.$iconRelativePath; |
| 101 | 101 | if (is_readable($iconPath)) { |
| 102 | 102 | $imgSize = getimagesize($iconPath); |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | if (getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED_SMALL')) { |
| 114 | - $iconRelativePath = 'logos/thumbs/' . getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED_SMALL'); |
|
| 114 | + $iconRelativePath = 'logos/thumbs/'.getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED_SMALL'); |
|
| 115 | 115 | $iconPath = $conf->mycompany->dir_output.'/'.$iconRelativePath; |
| 116 | 116 | if (is_readable($iconPath)) { |
| 117 | 117 | $imgSize = getimagesize($iconPath); |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | if (getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED')) { |
| 129 | - $iconRelativePath = 'logos/' . getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED'); |
|
| 129 | + $iconRelativePath = 'logos/'.getDolGlobalString('MAIN_INFO_SOCIETE_LOGO_SQUARRED'); |
|
| 130 | 130 | $iconPath = $conf->mycompany->dir_output.'/'.$iconRelativePath; |
| 131 | 131 | if (is_readable($iconPath)) { |
| 132 | 132 | $imgSize = getimagesize($iconPath); |
@@ -86,11 +86,11 @@ |
||
| 86 | 86 | print "database=".$conf->db->name."\n"; |
| 87 | 87 | print "\n"; |
| 88 | 88 | print "----- To LDAP database:\n"; |
| 89 | -print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 90 | -print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 91 | -print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 89 | +print "host=".getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 90 | +print "port=".getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 91 | +print "login=".getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 92 | 92 | print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n"; |
| 93 | -print "DN target=" . getDolGlobalString('LDAP_CONTACT_DN')."\n"; |
|
| 93 | +print "DN target=".getDolGlobalString('LDAP_CONTACT_DN')."\n"; |
|
| 94 | 94 | print "\n"; |
| 95 | 95 | |
| 96 | 96 | if (!$confirmed) { |
@@ -115,15 +115,15 @@ |
||
| 115 | 115 | $conf->global->MAIN_DISABLE_ALL_MAILS = 1; // On bloque les mails |
| 116 | 116 | print "\n"; |
| 117 | 117 | print "----- Synchronize all records from LDAP database:\n"; |
| 118 | -print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 119 | -print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 120 | -print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 118 | +print "host=".getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 119 | +print "port=".getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 120 | +print "login=".getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 121 | 121 | print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n"; |
| 122 | -print "DN to extract=" . getDolGlobalString('LDAP_MEMBER_DN')."\n"; |
|
| 122 | +print "DN to extract=".getDolGlobalString('LDAP_MEMBER_DN')."\n"; |
|
| 123 | 123 | if (getDolGlobalString('LDAP_MEMBER_FILTER')) { |
| 124 | - print 'Filter=(' . getDolGlobalString('LDAP_MEMBER_FILTER').')'."\n"; // Note: filter is defined into function getRecords |
|
| 124 | + print 'Filter=('.getDolGlobalString('LDAP_MEMBER_FILTER').')'."\n"; // Note: filter is defined into function getRecords |
|
| 125 | 125 | } else { |
| 126 | - print 'Filter=(' . getDolGlobalString('LDAP_KEY_MEMBERS').'=*)'."\n"; |
|
| 126 | + print 'Filter=('.getDolGlobalString('LDAP_KEY_MEMBERS').'=*)'."\n"; |
|
| 127 | 127 | } |
| 128 | 128 | print "----- To Dolibarr database:\n"; |
| 129 | 129 | print "type=".$conf->db->type."\n"; |
@@ -87,11 +87,11 @@ |
||
| 87 | 87 | print "database=".$conf->db->name."\n"; |
| 88 | 88 | print "\n"; |
| 89 | 89 | print "----- To LDAP database:\n"; |
| 90 | -print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 91 | -print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 92 | -print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 90 | +print "host=".getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 91 | +print "port=".getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 92 | +print "login=".getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 93 | 93 | print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n"; |
| 94 | -print "DN target=" . getDolGlobalString('LDAP_MEMBER_DN')."\n"; |
|
| 94 | +print "DN target=".getDolGlobalString('LDAP_MEMBER_DN')."\n"; |
|
| 95 | 95 | print "\n"; |
| 96 | 96 | |
| 97 | 97 | if (!$confirmed) { |
@@ -97,12 +97,12 @@ |
||
| 97 | 97 | $conf->global->MAIN_DISABLE_ALL_MAILS = 1; // On bloque les mails |
| 98 | 98 | print "\n"; |
| 99 | 99 | print "----- Synchronize all records from LDAP database:\n"; |
| 100 | -print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 101 | -print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 102 | -print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 100 | +print "host=".getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 101 | +print "port=".getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 102 | +print "login=".getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 103 | 103 | print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n"; |
| 104 | -print "DN to extract=" . getDolGlobalString('LDAP_MEMBER_TYPE_DN')."\n"; |
|
| 105 | -print 'Filter=(' . getDolGlobalString('LDAP_KEY_MEMBERS_TYPES').'=*)'."\n"; |
|
| 104 | +print "DN to extract=".getDolGlobalString('LDAP_MEMBER_TYPE_DN')."\n"; |
|
| 105 | +print 'Filter=('.getDolGlobalString('LDAP_KEY_MEMBERS_TYPES').'=*)'."\n"; |
|
| 106 | 106 | print "----- To Dolibarr database:\n"; |
| 107 | 107 | print "type=".$conf->db->type."\n"; |
| 108 | 108 | print "host=".$conf->db->host."\n"; |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $sql2 .= " FROM ".MAIN_DB_PREFIX."mailing_cibles as mc"; |
| 152 | 152 | $sql2 .= " WHERE mc.statut < 1 AND mc.fk_mailing = ".((int) $id); |
| 153 | 153 | if (getDolGlobalInt('MAILING_LIMIT_SENDBYCLI') > 0 && empty($max)) { |
| 154 | - $sql2 .= " LIMIT " . getDolGlobalString('MAILING_LIMIT_SENDBYCLI'); |
|
| 154 | + $sql2 .= " LIMIT ".getDolGlobalString('MAILING_LIMIT_SENDBYCLI'); |
|
| 155 | 155 | } elseif (getDolGlobalInt('MAILING_LIMIT_SENDBYCLI') > 0 && $max > 0) { |
| 156 | 156 | $sql2 .= " LIMIT ".min(getDolGlobalInt('MAILING_LIMIT_SENDBYCLI'), $max); |
| 157 | 157 | } elseif ($max > 0) { |
@@ -229,9 +229,9 @@ discard block |
||
| 229 | 229 | $substitutionarray['__OTHER5__'] = $other5; |
| 230 | 230 | $substitutionarray['__USER_SIGNATURE__'] = $signature; // Signature is empty when ran from command line or taken from user in parameter) |
| 231 | 231 | $substitutionarray['__SIGNATURE__'] = $signature; // For backward compatibility |
| 232 | - $substitutionarray['__CHECK_READ__'] = '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.urlencode($obj->tag).'&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY') . "-".$obj->tag."-".$obj->email."-".$obj->rowid, "md5").'&email='.urlencode($obj->email).'&mtid='.((int) $obj->rowid).'" width="1" height="1" style="width:1px;height:1px" border="0"/>'; |
|
| 233 | - $substitutionarray['__UNSUBSCRIBE__'] = '<a href="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-unsubscribe.php?tag='.urlencode($obj->tag).'&unsuscrib=1&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY') . "-".$obj->tag."-".$obj->email."-".$obj->rowid, "md5").'&email='.urlencode($obj->email).'&mtid='.((int) $obj->rowid).'" target="_blank">'.$langs->trans("MailUnsubcribe").'</a>'; |
|
| 234 | - $substitutionarray['__UNSUBSCRIBE_URL__'] = DOL_MAIN_URL_ROOT.'/public/emailing/mailing-unsubscribe.php?tag='.urlencode($obj->tag).'&unsuscrib=1&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY') . "-".$obj->tag."-".$obj->email."-".$obj->rowid, "md5").'&email='.urlencode($obj->email).'&mtid='.((int) $obj->rowid); |
|
| 232 | + $substitutionarray['__CHECK_READ__'] = '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.urlencode($obj->tag).'&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY')."-".$obj->tag."-".$obj->email."-".$obj->rowid, "md5").'&email='.urlencode($obj->email).'&mtid='.((int) $obj->rowid).'" width="1" height="1" style="width:1px;height:1px" border="0"/>'; |
|
| 233 | + $substitutionarray['__UNSUBSCRIBE__'] = '<a href="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-unsubscribe.php?tag='.urlencode($obj->tag).'&unsuscrib=1&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY')."-".$obj->tag."-".$obj->email."-".$obj->rowid, "md5").'&email='.urlencode($obj->email).'&mtid='.((int) $obj->rowid).'" target="_blank">'.$langs->trans("MailUnsubcribe").'</a>'; |
|
| 234 | + $substitutionarray['__UNSUBSCRIBE_URL__'] = DOL_MAIN_URL_ROOT.'/public/emailing/mailing-unsubscribe.php?tag='.urlencode($obj->tag).'&unsuscrib=1&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY')."-".$obj->tag."-".$obj->email."-".$obj->rowid, "md5").'&email='.urlencode($obj->email).'&mtid='.((int) $obj->rowid); |
|
| 235 | 235 | |
| 236 | 236 | $onlinepaymentenabled = 0; |
| 237 | 237 | if (isModEnabled('paypal')) { |
@@ -251,10 +251,10 @@ discard block |
||
| 251 | 251 | $substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash($conf->global->PAYMENT_SECURITY_TOKEN, 2); |
| 252 | 252 | $substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash($conf->global->PAYMENT_SECURITY_TOKEN, 2); |
| 253 | 253 | } else { |
| 254 | - $substitutionarray['__SECUREKEYPAYMENT_MEMBER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'membersubscription'.$obj->source_id, 2); |
|
| 255 | - $substitutionarray['__SECUREKEYPAYMENT_ORDER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'order'.$obj->source_id, 2); |
|
| 256 | - $substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'invoice'.$obj->source_id, 2); |
|
| 257 | - $substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'contractline'.$obj->source_id, 2); |
|
| 254 | + $substitutionarray['__SECUREKEYPAYMENT_MEMBER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'membersubscription'.$obj->source_id, 2); |
|
| 255 | + $substitutionarray['__SECUREKEYPAYMENT_ORDER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'order'.$obj->source_id, 2); |
|
| 256 | + $substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'invoice'.$obj->source_id, 2); |
|
| 257 | + $substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'contractline'.$obj->source_id, 2); |
|
| 258 | 258 | } |
| 259 | 259 | } |
| 260 | 260 | /* For backward compatibility */ |
@@ -264,25 +264,25 @@ discard block |
||
| 264 | 264 | if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) { |
| 265 | 265 | $substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash($conf->global->PAYPAL_SECURITY_TOKEN, 2); |
| 266 | 266 | } else { |
| 267 | - $substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'membersubscription'.$obj->source_id, 2); |
|
| 267 | + $substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'membersubscription'.$obj->source_id, 2); |
|
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) { |
| 271 | 271 | $substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash($conf->global->PAYPAL_SECURITY_TOKEN, 2); |
| 272 | 272 | } else { |
| 273 | - $substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'order'.$obj->source_id, 2); |
|
| 273 | + $substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'order'.$obj->source_id, 2); |
|
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) { |
| 277 | 277 | $substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash($conf->global->PAYPAL_SECURITY_TOKEN, 2); |
| 278 | 278 | } else { |
| 279 | - $substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'invoice'.$obj->source_id, 2); |
|
| 279 | + $substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'invoice'.$obj->source_id, 2); |
|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) { |
| 283 | 283 | $substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash($conf->global->PAYPAL_SECURITY_TOKEN, 2); |
| 284 | 284 | } else { |
| 285 | - $substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'contractline'.$obj->source_id, 2); |
|
| 285 | + $substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'contractline'.$obj->source_id, 2); |
|
| 286 | 286 | } |
| 287 | 287 | } |
| 288 | 288 | |
@@ -110,15 +110,15 @@ |
||
| 110 | 110 | $conf->global->MAIN_DISABLE_ALL_MAILS = 1; // On bloque les mails |
| 111 | 111 | print "\n"; |
| 112 | 112 | print "----- Synchronize all records from LDAP database:\n"; |
| 113 | -print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 114 | -print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 115 | -print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 113 | +print "host=".getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 114 | +print "port=".getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 115 | +print "login=".getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 116 | 116 | print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n"; |
| 117 | -print "DN to extract=" . getDolGlobalString('LDAP_USER_DN')."\n"; |
|
| 117 | +print "DN to extract=".getDolGlobalString('LDAP_USER_DN')."\n"; |
|
| 118 | 118 | if (getDolGlobalString('LDAP_FILTER_CONNECTION')) { |
| 119 | - print 'Filter=(' . getDolGlobalString('LDAP_FILTER_CONNECTION').')'."\n"; // Note: filter is defined into function getRecords |
|
| 119 | + print 'Filter=('.getDolGlobalString('LDAP_FILTER_CONNECTION').')'."\n"; // Note: filter is defined into function getRecords |
|
| 120 | 120 | } else { |
| 121 | - print 'Filter=(' . getDolGlobalString('LDAP_KEY_USERS').'=*)'."\n"; |
|
| 121 | + print 'Filter=('.getDolGlobalString('LDAP_KEY_USERS').'=*)'."\n"; |
|
| 122 | 122 | } |
| 123 | 123 | print "----- To Dolibarr database:\n"; |
| 124 | 124 | print "type=".$conf->db->type."\n"; |
@@ -92,15 +92,15 @@ |
||
| 92 | 92 | $conf->global->MAIN_DISABLE_ALL_MAILS = 1; // On bloque les mails |
| 93 | 93 | print "\n"; |
| 94 | 94 | print "----- Synchronize all records from LDAP database:\n"; |
| 95 | -print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 96 | -print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 97 | -print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 95 | +print "host=".getDolGlobalString('LDAP_SERVER_HOST')."\n"; |
|
| 96 | +print "port=".getDolGlobalString('LDAP_SERVER_PORT')."\n"; |
|
| 97 | +print "login=".getDolGlobalString('LDAP_ADMIN_DN')."\n"; |
|
| 98 | 98 | print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n"; |
| 99 | -print "DN to extract=" . getDolGlobalString('LDAP_GROUP_DN')."\n"; |
|
| 99 | +print "DN to extract=".getDolGlobalString('LDAP_GROUP_DN')."\n"; |
|
| 100 | 100 | if (getDolGlobalString('LDAP_GROUP_FILTER')) { |
| 101 | - print 'Filter=(' . getDolGlobalString('LDAP_GROUP_FILTER').')'."\n"; // Note: filter is defined into function getRecords |
|
| 101 | + print 'Filter=('.getDolGlobalString('LDAP_GROUP_FILTER').')'."\n"; // Note: filter is defined into function getRecords |
|
| 102 | 102 | } else { |
| 103 | - print 'Filter=(' . getDolGlobalString('LDAP_KEY_GROUPS').'=*)'."\n"; |
|
| 103 | + print 'Filter=('.getDolGlobalString('LDAP_KEY_GROUPS').'=*)'."\n"; |
|
| 104 | 104 | } |
| 105 | 105 | print "----- To Dolibarr database:\n"; |
| 106 | 106 | print "type=".$conf->db->type."\n"; |