@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | } |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | - if (!$memberfound && GETPOST("morphy") == 'mor' && GETPOSTISSET("societe") ) { |
|
| 252 | + if (!$memberfound && GETPOST("morphy") == 'mor' && GETPOSTISSET("societe")) { |
|
| 253 | 253 | $sql = "SELECT a.rowid as id"; |
| 254 | 254 | $sql .= " FROM ".MAIN_DB_PREFIX."adherent as a"; |
| 255 | 255 | $sql .= " JOIN ".MAIN_DB_PREFIX."societe as s"; |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | $ok = false; |
| 379 | 379 | if (getDolGlobalString('MAIN_SECURITY_ENABLECAPTCHA_MEMBER') && is_object($captchaobj)) { |
| 380 | 380 | if (method_exists($captchaobj, 'validateCodeAfterLoginSubmit')) { |
| 381 | - $ok = $captchaobj->validateCodeAfterLoginSubmit(); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 381 | + $ok = $captchaobj->validateCodeAfterLoginSubmit(); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 382 | 382 | } else { |
| 383 | 383 | print 'Error, the captcha handler '.get_class($captchaobj).' does not have any method validateCodeAfterLoginSubmit()'; |
| 384 | 384 | } |
@@ -419,9 +419,9 @@ discard block |
||
| 419 | 419 | $adh->note_private = GETPOST('note_private'); |
| 420 | 420 | $adh->morphy = getDolGlobalString("MEMBER_NEWFORM_FORCEMORPHY", GETPOST('morphy')); |
| 421 | 421 | $adh->birth = $birthday; |
| 422 | - $adh->phone = GETPOST('phone'); |
|
| 422 | + $adh->phone = GETPOST('phone'); |
|
| 423 | 423 | $adh->phone_perso = GETPOST('phone_perso'); |
| 424 | - $adh->phone_mobile= GETPOST('phone_mobile'); |
|
| 424 | + $adh->phone_mobile = GETPOST('phone_mobile'); |
|
| 425 | 425 | |
| 426 | 426 | $adh->ip = getUserRemoteIP(); |
| 427 | 427 | |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | $to = $adh->makeSubstitution(getDolGlobalString('MAIN_INFO_SOCIETE_MAIL')); |
| 534 | 534 | $from = getDolGlobalString('ADHERENT_MAIL_FROM', $conf->email_from); |
| 535 | 535 | $mailfile = new CMailFile( |
| 536 | - '['.$appli.'] ' . getDolGlobalString('ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT'), |
|
| 536 | + '['.$appli.'] '.getDolGlobalString('ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT'), |
|
| 537 | 537 | $to, |
| 538 | 538 | $from, |
| 539 | 539 | $adh->makeSubstitution(getDolGlobalString('ADHERENT_AUTOREGISTER_NOTIF_MAIL')), |
@@ -723,7 +723,7 @@ discard block |
||
| 723 | 723 | } |
| 724 | 724 | } else { |
| 725 | 725 | $adht->fetch(getDolGlobalInt('MEMBER_NEWFORM_FORCETYPE')); |
| 726 | - print '<input type="hidden" id="typeid" name="typeid" value="' . getDolGlobalString('MEMBER_NEWFORM_FORCETYPE').'">'; |
|
| 726 | + print '<input type="hidden" id="typeid" name="typeid" value="'.getDolGlobalString('MEMBER_NEWFORM_FORCETYPE').'">'; |
|
| 727 | 727 | } |
| 728 | 728 | print '</td></tr>'."\n"; |
| 729 | 729 | |
@@ -733,7 +733,7 @@ discard block |
||
| 733 | 733 | "mor" => $langs->trans("Moral"), |
| 734 | 734 | ]; |
| 735 | 735 | $checkednature = GETPOST("morphy", 'alpha'); |
| 736 | - $listetype_natures = $adht->morphyByType(1); // Load the array of morphy per typeof membership |
|
| 736 | + $listetype_natures = $adht->morphyByType(1); // Load the array of morphy per typeof membership |
|
| 737 | 737 | $listetype_natures_json = json_encode($listetype_natures); |
| 738 | 738 | |
| 739 | 739 | if (!getDolGlobalString('MEMBER_NEWFORM_FORCEMORPHY')) { |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | print '</td></tr>'."\n"; |
| 827 | 827 | } else { |
| 828 | 828 | //print $morphys[$conf->global->MEMBER_NEWFORM_FORCEMORPHY]; |
| 829 | - print '<input type="hidden" id="morphy" name="morphy" value="' . getDolGlobalString('MEMBER_NEWFORM_FORCEMORPHY').'">'; |
|
| 829 | + print '<input type="hidden" id="morphy" name="morphy" value="'.getDolGlobalString('MEMBER_NEWFORM_FORCEMORPHY').'">'; |
|
| 830 | 830 | } |
| 831 | 831 | |
| 832 | 832 | // Company // TODO : optional hide |
@@ -935,7 +935,7 @@ discard block |
||
| 935 | 935 | } |
| 936 | 936 | |
| 937 | 937 | // Other attributes |
| 938 | - $parameters['tpl_context'] = 'public'; // define template context to public |
|
| 938 | + $parameters['tpl_context'] = 'public'; // define template context to public |
|
| 939 | 939 | include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_add.tpl.php'; |
| 940 | 940 | |
| 941 | 941 | // Comments |
@@ -991,14 +991,14 @@ discard block |
||
| 991 | 991 | $adht = new AdherentType($db); |
| 992 | 992 | $adht->fetch($typeid); |
| 993 | 993 | $caneditamount = $adht->caneditamount; |
| 994 | - $amountbytype = $adht->amountByType(1); // Load the array of amount per type |
|
| 994 | + $amountbytype = $adht->amountByType(1); // Load the array of amount per type |
|
| 995 | 995 | foreach ($amountbytype as $k => $v) { |
| 996 | 996 | $amount = max(0, (float) $v, (float) getDolGlobalInt("MEMBER_MIN_AMOUNT")); |
| 997 | 997 | $amountbytype[$k] = $amount; |
| 998 | 998 | } |
| 999 | 999 | |
| 1000 | 1000 | $amountbytype_json = json_encode($amountbytype); |
| 1001 | - $caneditamountbytype = $adht->caneditamountByType(1); // Load the array of caneditamount per type |
|
| 1001 | + $caneditamountbytype = $adht->caneditamountByType(1); // Load the array of caneditamount per type |
|
| 1002 | 1002 | $caneditamountbytype_json = json_encode($caneditamountbytype); |
| 1003 | 1003 | |
| 1004 | 1004 | |
@@ -1022,7 +1022,7 @@ discard block |
||
| 1022 | 1022 | |
| 1023 | 1023 | print '<tr><td>'.$langs->trans("Subscription"); |
| 1024 | 1024 | if (getDolGlobalString('MEMBER_EXT_URL_SUBSCRIPTION_INFO')) { |
| 1025 | - print ' - <a href="' . getDolGlobalString('MEMBER_EXT_URL_SUBSCRIPTION_INFO').'" rel="external" target="_blank" rel="noopener noreferrer">'.$langs->trans("SeeHere").'</a>'; |
|
| 1025 | + print ' - <a href="'.getDolGlobalString('MEMBER_EXT_URL_SUBSCRIPTION_INFO').'" rel="external" target="_blank" rel="noopener noreferrer">'.$langs->trans("SeeHere").'</a>'; |
|
| 1026 | 1026 | } |
| 1027 | 1027 | print '</td><td class="nowrap">'; |
| 1028 | 1028 | |
@@ -1090,7 +1090,7 @@ discard block |
||
| 1090 | 1090 | if (getDolGlobalString('MAIN_SECURITY_ENABLECAPTCHA_MEMBER') && is_object($captchaobj)) { |
| 1091 | 1091 | print '<tr><td><label><span class="fieldrequired">'.$langs->trans("SecurityCode").'</span></label></td><td><br>'; |
| 1092 | 1092 | if (method_exists($captchaobj, 'getCaptchaCodeForForm')) { |
| 1093 | - print $captchaobj->getCaptchaCodeForForm(''); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 1093 | + print $captchaobj->getCaptchaCodeForForm(''); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 1094 | 1094 | } else { |
| 1095 | 1095 | print 'Error, the captcha handler '.get_class($captchaobj).' does not have any method getCaptchaCodeForForm()'; |
| 1096 | 1096 | } |
@@ -1158,10 +1158,10 @@ discard block |
||
| 1158 | 1158 | |
| 1159 | 1159 | $i = 0; |
| 1160 | 1160 | while ($i < $num) { |
| 1161 | - $objp = $db->fetch_object($result); // Load the member type and information on it |
|
| 1161 | + $objp = $db->fetch_object($result); // Load the member type and information on it |
|
| 1162 | 1162 | |
| 1163 | 1163 | $caneditamount = $objp->caneditamount; |
| 1164 | - $amountbytype = $adht->amountByType(1); // Load the array of amount per type |
|
| 1164 | + $amountbytype = $adht->amountByType(1); // Load the array of amount per type |
|
| 1165 | 1165 | |
| 1166 | 1166 | print '<tr class="oddeven">'; |
| 1167 | 1167 | // Label |
@@ -313,11 +313,11 @@ discard block |
||
| 313 | 313 | $fromtype = GETPOST('fromtype', 'alpha'); |
| 314 | 314 | $emailsendersignature = ''; |
| 315 | 315 | if ($fromtype === 'robot') { |
| 316 | - $from = dol_string_nospecial($conf->global->MAIN_MAIL_EMAIL_FROM, ' ', array(",")).' <' . getDolGlobalString('MAIN_MAIL_EMAIL_FROM').'>'; |
|
| 316 | + $from = dol_string_nospecial($conf->global->MAIN_MAIL_EMAIL_FROM, ' ', array(",")).' <'.getDolGlobalString('MAIN_MAIL_EMAIL_FROM').'>'; |
|
| 317 | 317 | } elseif ($fromtype === 'user') { |
| 318 | 318 | $from = dol_string_nospecial($user->getFullName($langs), ' ', array(",")).' <'.$user->email.'>'; |
| 319 | 319 | } elseif ($fromtype === 'company') { |
| 320 | - $from = dol_string_nospecial($conf->global->MAIN_INFO_SOCIETE_NOM, ' ', array(",")).' <' . getDolGlobalString('MAIN_INFO_SOCIETE_MAIL').'>'; |
|
| 320 | + $from = dol_string_nospecial($conf->global->MAIN_INFO_SOCIETE_NOM, ' ', array(",")).' <'.getDolGlobalString('MAIN_INFO_SOCIETE_MAIL').'>'; |
|
| 321 | 321 | } elseif (preg_match('/user_aliases_(\d+)/', $fromtype, $reg)) { |
| 322 | 322 | $tmp = explode(',', $user->email_aliases); |
| 323 | 323 | $from = trim($tmp[((int) $reg[1] - 1)]); |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | // Autocomplete the $sendtobcc |
| 361 | 361 | // $autocopy can be MAIN_MAIL_AUTOCOPY_PROPOSAL_TO, MAIN_MAIL_AUTOCOPY_ORDER_TO, MAIN_MAIL_AUTOCOPY_INVOICE_TO, MAIN_MAIL_AUTOCOPY_SUPPLIER_PROPOSAL_TO... |
| 362 | 362 | if (!empty($autocopy)) { |
| 363 | - $sendtobcc .= (getDolGlobalString($autocopy) ? (($sendtobcc ? ", " : "") . getDolGlobalString($autocopy)) : ''); |
|
| 363 | + $sendtobcc .= (getDolGlobalString($autocopy) ? (($sendtobcc ? ", " : "").getDolGlobalString($autocopy)) : ''); |
|
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | $deliveryreceipt = GETPOSTINT('deliveryreceipt') ? 1 : 0; |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | $object->actionmsg = $message; // Long text |
| 432 | 432 | $object->actionmsg2 = $actionmsg2; // Short text ($langs->transnoentities('MailSentByTo')...); |
| 433 | 433 | if (getDolGlobalString('MAIN_MAIL_REPLACE_EVENT_TITLE_BY_EMAIL_SUBJECT')) { |
| 434 | - $object->actionmsg2 = $subject; // Short text |
|
| 434 | + $object->actionmsg2 = $subject; // Short text |
|
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | $object->trackid = $trackid; |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | } |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | - $result = $object->call_trigger($triggersendname, $user); // @phan-suppress-current-line PhanPossiblyUndeclaredGlobalVariable |
|
| 467 | + $result = $object->call_trigger($triggersendname, $user); // @phan-suppress-current-line PhanPossiblyUndeclaredGlobalVariable |
|
| 468 | 468 | if ($result < 0) { |
| 469 | 469 | $error++; |
| 470 | 470 | } |