mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix warning
This commit is contained in:
parent
b6ca71ce9a
commit
29927b1660
|
|
@ -211,7 +211,7 @@ function sendEmailTo($mode, $oldemail, $message, $total, $userlang, $oldtarget,
|
|||
$title = $newlangs->transnoentities("ListOfServicesToExpire");
|
||||
}
|
||||
|
||||
$subject = (!getDolGlobalString('SCRIPT_EMAIL_EXPIRE_SERVICES_SALESREPRESENTATIVES_SUBJECT') ? $title : $conf->global->SCRIPT_EMAIL_EXPIRE_SERVICES_SALESREPRESENTATIVES_SUBJECT);
|
||||
$subject = getDolGlobalString('SCRIPT_EMAIL_EXPIRE_SERVICES_SALESREPRESENTATIVES_SUBJECT', $title);
|
||||
$sendto = $oldemail;
|
||||
$from = getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
|
||||
$errorsto = getDolGlobalString('MAIN_MAIL_ERRORS_TO');
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ if (!isModEnabled('cron')) {
|
|||
}
|
||||
|
||||
// Check security key
|
||||
if ($key != $conf->global->CRON_KEY) {
|
||||
if ($key != getDolGlobalString('CRON_KEY')) {
|
||||
print "Error: securitykey is wrong\n";
|
||||
exit(-1);
|
||||
}
|
||||
|
|
@ -142,7 +142,7 @@ if ($result < 0) {
|
|||
}
|
||||
|
||||
// Reload langs
|
||||
$langcode = (!getDolGlobalString('MAIN_LANG_DEFAULT') ? 'auto' : $conf->global->MAIN_LANG_DEFAULT);
|
||||
$langcode = getDolGlobalString('MAIN_LANG_DEFAULT', 'auto');
|
||||
if (!empty($user->conf->MAIN_LANG_DEFAULT)) {
|
||||
$langcode = $user->conf->MAIN_LANG_DEFAULT;
|
||||
}
|
||||
|
|
@ -224,7 +224,7 @@ if (is_array($object->lines) && (count($object->lines) > 0)) {
|
|||
}
|
||||
|
||||
// Reload langs
|
||||
$langcode = (!getDolGlobalString('MAIN_LANG_DEFAULT') ? 'auto' : $conf->global->MAIN_LANG_DEFAULT);
|
||||
$langcode = getDolGlobalString('MAIN_LANG_DEFAULT', 'auto');
|
||||
if (!empty($user->conf->MAIN_LANG_DEFAULT)) {
|
||||
$langcode = $user->conf->MAIN_LANG_DEFAULT;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@ if (!isModEnabled('mailing')) {
|
|||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." *****\n";
|
||||
|
||||
if (getDolGlobalString('MAILING_DELAY')) {
|
||||
print 'A delay of '.((float) $conf->global->MAILING_DELAY).' seconds has been set between each email'."\n";
|
||||
if (getDolGlobalInt('MAILING_DELAY')) {
|
||||
print 'A delay of '.((float) getDolGlobalInt('MAILING_DELAY')).' seconds has been set between each email'."\n";
|
||||
}
|
||||
|
||||
if (getDolGlobalString('MAILING_LIMIT_SENDBYCLI') == '-1') {
|
||||
|
|
@ -153,7 +153,7 @@ if ($resql) {
|
|||
if (getDolGlobalInt('MAILING_LIMIT_SENDBYCLI') > 0 && empty($max)) {
|
||||
$sql2 .= " LIMIT " . getDolGlobalString('MAILING_LIMIT_SENDBYCLI');
|
||||
} elseif (getDolGlobalInt('MAILING_LIMIT_SENDBYCLI') > 0 && $max > 0) {
|
||||
$sql2 .= " LIMIT ".min($conf->global->MAILING_LIMIT_SENDBYCLI, $max);
|
||||
$sql2 .= " LIMIT ".min(getDolGlobalInt('MAILING_LIMIT_SENDBYCLI'), $max);
|
||||
} elseif ($max > 0) {
|
||||
$sql2 .= " LIMIT ".((int) $max);
|
||||
}
|
||||
|
|
@ -383,8 +383,8 @@ if ($resql) {
|
|||
}
|
||||
}
|
||||
|
||||
if (getDolGlobalString('MAILING_DELAY')) {
|
||||
usleep((float) $conf->global->MAILING_DELAY * 1000000);
|
||||
if (getDolGlobalInt('MAILING_DELAY')) {
|
||||
usleep((float) getDolGlobalInt('MAILING_DELAY') * 1000000);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -250,14 +250,14 @@ function envoi_mail($mode, $oldemail, $message, $total, $userlang, $oldtarget)
|
|||
}
|
||||
|
||||
$newlangs = new Translate('', $conf);
|
||||
$newlangs->setDefaultLang(empty($userlang) ? (!getDolGlobalString('MAIN_LANG_DEFAULT') ? 'auto' : $conf->global->MAIN_LANG_DEFAULT) : $userlang);
|
||||
$newlangs->setDefaultLang(empty($userlang) ? getDolGlobalString('MAIN_LANG_DEFAULT', 'auto') : $userlang);
|
||||
$newlangs->load("main");
|
||||
$newlangs->load("bills");
|
||||
|
||||
$subject = (!getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_SUBJECT') ? $newlangs->trans("ListOfYourUnpaidInvoices") : $conf->global->SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_SUBJECT);
|
||||
$subject = getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_SUBJECT', $newlangs->trans("ListOfYourUnpaidInvoices"));
|
||||
$sendto = $oldemail;
|
||||
$from = !getDolGlobalString('MAIN_MAIL_EMAIL_FROM') ? '' : $conf->global->MAIN_MAIL_EMAIL_FROM;
|
||||
$errorsto = !getDolGlobalString('MAIN_MAIL_ERRORS_TO') ? '' : $conf->global->MAIN_MAIL_ERRORS_TO;
|
||||
$from = getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
|
||||
$errorsto = getDolGlobalString('MAIN_MAIL_ERRORS_TO');
|
||||
$msgishtml = -1;
|
||||
|
||||
print "- Send email to '".$oldtarget."' (".$oldemail."), total: ".$total."\n";
|
||||
|
|
@ -282,8 +282,8 @@ function envoi_mail($mode, $oldemail, $message, $total, $userlang, $oldtarget)
|
|||
$allmessage .= $message.($usehtml ? "<br>\n" : "\n");
|
||||
$allmessage .= $langs->trans("Total")." = ".price($total, 0, $userlang, 0, 0, -1, $conf->currency).($usehtml ? "<br>\n" : "\n");
|
||||
if (getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_FOOTER')) {
|
||||
$allmessage .= $conf->global->SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_FOOTER;
|
||||
if (dol_textishtml($conf->global->SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_FOOTER)) {
|
||||
$allmessage .= getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_FOOTER');
|
||||
if (dol_textishtml(getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_CUSTOMERS_FOOTER'))) {
|
||||
$usehtml += 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -206,14 +206,14 @@ function envoi_mail($mode, $oldemail, $message, $total, $userlang, $oldtarget)
|
|||
}
|
||||
|
||||
$newlangs = new Translate('', $conf);
|
||||
$newlangs->setDefaultLang(empty($userlang) ? (!getDolGlobalString('MAIN_LANG_DEFAULT') ? 'auto' : $conf->global->MAIN_LANG_DEFAULT) : $userlang);
|
||||
$newlangs->setDefaultLang(empty($userlang) ? getDolGlobalString('MAIN_LANG_DEFAULT', 'auto') : $userlang);
|
||||
$newlangs->load("main");
|
||||
$newlangs->load("bills");
|
||||
|
||||
$subject = (!getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_SUBJECT') ? $newlangs->trans("ListOfYourUnpaidInvoices") : $conf->global->SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_SUBJECT);
|
||||
$subject = getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_SUBJECT', $newlangs->trans("ListOfYourUnpaidInvoices"));
|
||||
$sendto = $oldemail;
|
||||
$from = !getDolGlobalString('MAIN_MAIL_EMAIL_FROM') ? '' : $conf->global->MAIN_MAIL_EMAIL_FROM;
|
||||
$errorsto = !getDolGlobalString('MAIN_MAIL_ERRORS_TO') ? '' : $conf->global->MAIN_MAIL_ERRORS_TO;
|
||||
$from = getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
|
||||
$errorsto = getDolGlobalString('MAIN_MAIL_ERRORS_TO');
|
||||
$msgishtml = -1;
|
||||
|
||||
print "- Send email for ".$oldtarget." (".$oldemail."), total: ".$total."\n";
|
||||
|
|
@ -237,8 +237,8 @@ function envoi_mail($mode, $oldemail, $message, $total, $userlang, $oldtarget)
|
|||
$allmessage .= $message.($usehtml ? "<br>\n" : "\n");
|
||||
$allmessage .= $langs->trans("Total")." = ".price($total, 0, $newlangs, 0, 0, -1, $conf->currency).($usehtml ? "<br>\n" : "\n");
|
||||
if (getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_FOOTER')) {
|
||||
$allmessage .= $conf->global->SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_FOOTER;
|
||||
if (dol_textishtml($conf->global->SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_FOOTER)) {
|
||||
$allmessage .= getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_FOOTER');
|
||||
if (dol_textishtml(getDolGlobalString('SCRIPT_EMAIL_UNPAID_INVOICES_SALESREPRESENTATIVES_FOOTER'))) {
|
||||
$usehtml += 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ print "----- To LDAP database:\n";
|
|||
print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n";
|
||||
print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n";
|
||||
print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n";
|
||||
print "pass=".preg_replace('/./i', '*', $conf->global->LDAP_ADMIN_PASS)."\n";
|
||||
print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n";
|
||||
print "DN target=" . getDolGlobalString('LDAP_MEMBER_DN')."\n";
|
||||
print "\n";
|
||||
|
||||
|
|
@ -104,8 +104,7 @@ if (!$confirmed) {
|
|||
}
|
||||
|
||||
/*
|
||||
* if (! $conf->global->LDAP_MEMBER_ACTIVE)
|
||||
* {
|
||||
* if (getDolGlobalString('LDAP_MEMBER_ACTIVE') {
|
||||
* print $langs->trans("LDAPSynchronizationNotSetupInDolibarr");
|
||||
* exit(-1);
|
||||
* }
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ print "----- Synchronize all records from LDAP database:\n";
|
|||
print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n";
|
||||
print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n";
|
||||
print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n";
|
||||
print "pass=".preg_replace('/./i', '*', $conf->global->LDAP_ADMIN_PASS)."\n";
|
||||
print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n";
|
||||
print "DN to extract=" . getDolGlobalString('LDAP_MEMBER_DN')."\n";
|
||||
if (getDolGlobalString('LDAP_MEMBER_FILTER')) {
|
||||
print 'Filter=(' . getDolGlobalString('LDAP_MEMBER_FILTER').')'."\n"; // Note: filter is defined into function getRecords
|
||||
|
|
@ -192,7 +192,7 @@ if ($result >= 0) {
|
|||
// We disable synchro Dolibarr-LDAP
|
||||
$conf->global->LDAP_MEMBER_ACTIVE = 0;
|
||||
|
||||
$ldaprecords = $ldap->getRecords('*', $conf->global->LDAP_MEMBER_DN, $conf->global->LDAP_KEY_MEMBERS, $required_fields, 'member'); // Fiter on 'member' filter param
|
||||
$ldaprecords = $ldap->getRecords('*', getDolGlobalString('LDAP_MEMBER_DN'), getDolGlobalString('LDAP_KEY_MEMBERS'), $required_fields, 'member'); // Fiter on 'member' filter param
|
||||
if (is_array($ldaprecords)) {
|
||||
$db->begin();
|
||||
|
||||
|
|
|
|||
|
|
@ -63,8 +63,7 @@ print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." *****\n";
|
|||
dol_syslog($script_file." launched with arg ".join(',', $argv));
|
||||
|
||||
/*
|
||||
* if (! $conf->global->LDAP_SYNCHRO_ACTIVE)
|
||||
* {
|
||||
* if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE')) {
|
||||
* print $langs->trans("LDAPSynchronizationNotSetupInDolibarr");
|
||||
* exit(-1);
|
||||
* }
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ print "----- Synchronize all records from LDAP database:\n";
|
|||
print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n";
|
||||
print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n";
|
||||
print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n";
|
||||
print "pass=".preg_replace('/./i', '*', $conf->global->LDAP_ADMIN_PASS)."\n";
|
||||
print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n";
|
||||
print "DN to extract=" . getDolGlobalString('LDAP_MEMBER_TYPE_DN')."\n";
|
||||
print 'Filter=(' . getDolGlobalString('LDAP_KEY_MEMBERS_TYPES').'=*)'."\n";
|
||||
print "----- To Dolibarr database:\n";
|
||||
|
|
@ -132,7 +132,7 @@ if ($result >= 0) {
|
|||
// We disable synchro Dolibarr-LDAP
|
||||
$conf->global->LDAP_MEMBER_TYPE_ACTIVE = 0;
|
||||
|
||||
$ldaprecords = $ldap->getRecords('*', $conf->global->LDAP_MEMBER_TYPE_DN, $conf->global->LDAP_KEY_MEMBERS_TYPES, $required_fields, 0, array($conf->global->LDAP_MEMBER_TYPE_FIELD_GROUPMEMBERS));
|
||||
$ldaprecords = $ldap->getRecords('*', getDolGlobalString('LDAP_MEMBER_TYPE_DN'), getDolGlobalString('LDAP_KEY_MEMBERS_TYPES'), $required_fields, 0, array($conf->global->LDAP_MEMBER_TYPE_FIELD_GROUPMEMBERS));
|
||||
if (is_array($ldaprecords)) {
|
||||
$db->begin();
|
||||
|
||||
|
|
|
|||
|
|
@ -61,8 +61,7 @@ print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." *****\n";
|
|||
dol_syslog($script_file." launched with arg ".join(',', $argv));
|
||||
|
||||
/*
|
||||
* if (! $conf->global->LDAP_SYNCHRO_ACTIVE)
|
||||
* {
|
||||
* if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE')) {
|
||||
* print $langs->trans("LDAPSynchronizationNotSetupInDolibarr");
|
||||
* exit(-1);
|
||||
* }
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." *****\n";
|
|||
dol_syslog($script_file." launched with arg ".join(',', $argv));
|
||||
|
||||
// List of fields to get from LDAP
|
||||
$required_fields = array($conf->global->LDAP_KEY_GROUPS, $conf->global->LDAP_GROUP_FIELD_FULLNAME, $conf->global->LDAP_GROUP_FIELD_DESCRIPTION, $conf->global->LDAP_GROUP_FIELD_GROUPMEMBERS);
|
||||
$required_fields = array(getDolGlobalString('LDAP_KEY_GROUPS'), getDolGlobalString('LDAP_GROUP_FIELD_FULLNAME'), getDolGlobalString('LDAP_GROUP_FIELD_DESCRIPTION'), getDolGlobalString('LDAP_GROUP_FIELD_GROUPMEMBERS'));
|
||||
|
||||
// Remove from required_fields all entries not configured in LDAP (empty) and duplicated
|
||||
$required_fields = array_unique(array_values(array_filter($required_fields, "dolValidElement")));
|
||||
|
|
@ -95,7 +95,7 @@ print "----- Synchronize all records from LDAP database:\n";
|
|||
print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n";
|
||||
print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n";
|
||||
print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n";
|
||||
print "pass=".preg_replace('/./i', '*', $conf->global->LDAP_ADMIN_PASS)."\n";
|
||||
print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n";
|
||||
print "DN to extract=" . getDolGlobalString('LDAP_GROUP_DN')."\n";
|
||||
if (getDolGlobalString('LDAP_GROUP_FILTER')) {
|
||||
print 'Filter=(' . getDolGlobalString('LDAP_GROUP_FILTER').')'."\n"; // Note: filter is defined into function getRecords
|
||||
|
|
|
|||
|
|
@ -61,8 +61,7 @@ print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." *****\n";
|
|||
dol_syslog($script_file." launched with arg ".join(',', $argv));
|
||||
|
||||
/*
|
||||
* if (! $conf->global->LDAP_SYNCHRO_ACTIVE)
|
||||
* {
|
||||
* if (! getDolGlobalString('LDAP_SYNCHRO_ACTIVE')) {
|
||||
* print $langs->trans("LDAPSynchronizationNotSetupInDolibarr");
|
||||
* exit(-1);
|
||||
* }
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ print "----- Synchronize all records from LDAP database:\n";
|
|||
print "host=" . getDolGlobalString('LDAP_SERVER_HOST')."\n";
|
||||
print "port=" . getDolGlobalString('LDAP_SERVER_PORT')."\n";
|
||||
print "login=" . getDolGlobalString('LDAP_ADMIN_DN')."\n";
|
||||
print "pass=".preg_replace('/./i', '*', $conf->global->LDAP_ADMIN_PASS)."\n";
|
||||
print "pass=".preg_replace('/./i', '*', getDolGlobalString('LDAP_ADMIN_PASS'))."\n";
|
||||
print "DN to extract=" . getDolGlobalString('LDAP_USER_DN')."\n";
|
||||
if (getDolGlobalString('LDAP_FILTER_CONNECTION')) {
|
||||
print 'Filter=(' . getDolGlobalString('LDAP_FILTER_CONNECTION').')'."\n"; // Note: filter is defined into function getRecords
|
||||
|
|
@ -177,7 +177,7 @@ if ($result >= 0) {
|
|||
// We disable synchro Dolibarr-LDAP
|
||||
$conf->global->LDAP_SYNCHRO_ACTIVE = 0;
|
||||
|
||||
$ldaprecords = $ldap->getRecords('*', $conf->global->LDAP_USER_DN, $conf->global->LDAP_KEY_USERS, $required_fields, 'user'); // Fiter on 'user' filter param
|
||||
$ldaprecords = $ldap->getRecords('*', getDolGlobalString('LDAP_USER_DN'), getDolGlobalString('LDAP_KEY_USERS'), $required_fields, 'user'); // Fiter on 'user' filter param
|
||||
if (is_array($ldaprecords)) {
|
||||
$db->begin();
|
||||
|
||||
|
|
@ -191,9 +191,9 @@ if ($result >= 0) {
|
|||
|
||||
$fuser = new User($db);
|
||||
|
||||
if ($conf->global->LDAP_KEY_USERS == $conf->global->LDAP_FIELD_SID) {
|
||||
if (getDolGlobalString('LDAP_KEY_USERS') == getDolGlobalString('LDAP_FIELD_SID')) {
|
||||
$fuser->fetch('', '', $ldapuser[getDolGlobalString('LDAP_KEY_USERS')]); // Chargement du user concerné par le SID
|
||||
} elseif ($conf->global->LDAP_KEY_USERS == $conf->global->LDAP_FIELD_LOGIN) {
|
||||
} elseif (getDolGlobalString('LDAP_KEY_USERS') == getDolGlobalString('LDAP_FIELD_LOGIN')) {
|
||||
$fuser->fetch('', $ldapuser[getDolGlobalString('LDAP_KEY_USERS')]); // Chargement du user concerné par le login
|
||||
}
|
||||
|
||||
|
|
@ -206,10 +206,10 @@ if ($result >= 0) {
|
|||
|
||||
// $user->societe;
|
||||
/*
|
||||
* $fuser->address=$ldapuser[$conf->global->LDAP_FIELD_ADDRESS];
|
||||
* $fuser->zip=$ldapuser[$conf->global->LDAP_FIELD_ZIP];
|
||||
* $fuser->town=$ldapuser[$conf->global->LDAP_FIELD_TOWN];
|
||||
* $fuser->country=$ldapuser[$conf->global->LDAP_FIELD_COUNTRY];
|
||||
* $fuser->address=$ldapuser[getDolGlobalString('LDAP_FIELD_ADDRESS')];
|
||||
* $fuser->zip=$ldapuser[getDolGlobalString('LDAP_FIELD_ZIP')];
|
||||
* $fuser->town=$ldapuser[getDolGlobalString('LDAP_FIELD_TOWN')];
|
||||
* $fuser->country=$ldapuser[getDolGlobalString('LDAP_FIELD_COUNTRY')];
|
||||
* $fuser->country_id=$countries[$hashlib2rowid[strtolower($fuser->country)]]['rowid'];
|
||||
* $fuser->country_code=$countries[$hashlib2rowid[strtolower($fuser->country)]]['code'];
|
||||
*/
|
||||
|
|
@ -230,8 +230,7 @@ if ($result >= 0) {
|
|||
$fuser->statut = 1;
|
||||
// TODO : revoir la gestion du status
|
||||
/*
|
||||
* if (isset($ldapuser[$conf->global->LDAP_FIELD_MEMBER_STATUS]))
|
||||
* {
|
||||
* if (isset($ldapuser[getDolGlobalString('LDAP_FIELD_MEMBER_STATUS')])) {
|
||||
* $fuser->datec=dol_stringtotime($ldapuser[$conf->global->LDAP_FIELD_MEMBER_FIRSTSUBSCRIPTION_DATE]);
|
||||
* $fuser->datevalid=dol_stringtotime($ldapuser[$conf->global->LDAP_FIELD_MEMBER_FIRSTSUBSCRIPTION_DATE]);
|
||||
* $fuser->statut=$ldapuser[$conf->global->LDAP_FIELD_MEMBER_STATUS];
|
||||
|
|
@ -269,7 +268,7 @@ if ($result >= 0) {
|
|||
// TODO : revoir la gestion des groupes (ou script de sync groupes)
|
||||
/*
|
||||
* if(!$error) {
|
||||
* foreach ($ldapuser[$conf->global->LDAP_FIELD_USERGROUPS] as $groupdn) {
|
||||
* foreach ($ldapuser[getDolGlobalString('LDAP_FIELD_USERGROUPS') as $groupdn) {
|
||||
* $groupdn;
|
||||
* }
|
||||
* }
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user