@@ -54,10 +54,10 @@ discard block |
||
| 54 | 54 | while ($i < $num) { |
| 55 | 55 | $row = $db->fetch_row($resql); |
| 56 | 56 | if ($row[0] == $field) { |
| 57 | - $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " CHARACTER SET utf8"; // We must not sanitize the $row[1] |
|
| 57 | + $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " CHARACTER SET utf8"; // We must not sanitize the $row[1] |
|
| 58 | 58 | $db->query($sql); |
| 59 | 59 | |
| 60 | - $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " COLLATE utf8_unicode_ci"; // We must not sanitize the $row[1] |
|
| 60 | + $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " COLLATE utf8_unicode_ci"; // We must not sanitize the $row[1] |
|
| 61 | 61 | $db->query($sql); |
| 62 | 62 | |
| 63 | 63 | break; |
@@ -75,10 +75,10 @@ discard block |
||
| 75 | 75 | while ($i < $num) { |
| 76 | 76 | $row = $db->fetch_row($resql); |
| 77 | 77 | if ($row[0] == $field) { |
| 78 | - $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " CHARACTER SET utf8mb4"; // We must not sanitize the $row[1] |
|
| 78 | + $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " CHARACTER SET utf8mb4"; // We must not sanitize the $row[1] |
|
| 79 | 79 | $db->query($sql); |
| 80 | 80 | |
| 81 | - $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " COLLATE utf8mb4_unicode_ci"; // We must not sanitize the $row[1] |
|
| 81 | + $sql = "ALTER TABLE " . $db->sanitize($table) . " MODIFY " . $db->sanitize($row[0]) . " " . $row[1] . " COLLATE utf8mb4_unicode_ci"; // We must not sanitize the $row[1] |
|
| 82 | 82 | $db->query($sql); |
| 83 | 83 | |
| 84 | 84 | break; |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | if (GETPOST('target') == 'remote') { |
| 175 | - $xmlarray = getURLContent($xmlremote, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only. Same is used into api_setup.class.php. |
|
| 175 | + $xmlarray = getURLContent($xmlremote, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only. Same is used into api_setup.class.php. |
|
| 176 | 176 | |
| 177 | 177 | // Return array('content'=>response,'curl_error_no'=>errno,'curl_error_msg'=>errmsg...) |
| 178 | 178 | if (!$xmlarray['curl_error_no'] && $xmlarray['http_code'] != '400' && $xmlarray['http_code'] != '404') { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | $action = GETPOST('action', 'aZ09'); |
| 51 | 51 | $value = GETPOST('value', 'alpha'); |
| 52 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 52 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 53 | 53 | |
| 54 | 54 | $label = GETPOST('label', 'alpha'); |
| 55 | 55 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | $value = GETPOST('value', 'alpha'); |
| 55 | 55 | $label = GETPOST('label', 'alpha'); |
| 56 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 56 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 57 | 57 | |
| 58 | 58 | $scandir = GETPOST('scan_dir', 'alpha'); |
| 59 | 59 | $type = 'invoice'; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | // Get Parameters |
| 42 | 42 | $action = GETPOST('action', 'aZ09'); |
| 43 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 43 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | /* |
@@ -453,7 +453,7 @@ |
||
| 453 | 453 | if (!empty($conf->use_javascript_ajax) || (isset($conf->global->MAIN_MAIL_SENDMODE_TICKET) && in_array($conf->global->MAIN_MAIL_SENDMODE_TICKET, array('smtps', 'swiftmailer')))) { |
| 454 | 454 | print '<tr class="oddeven smtp_oauth_service hideifdefault"><td>' . $langs->trans("MAIN_MAIL_SMTPS_OAUTH_SERVICE") . '</td><td>'; |
| 455 | 455 | // SuperAdministrator access only |
| 456 | - if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) { |
|
| 456 | + if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) { |
|
| 457 | 457 | print $form->selectarray('MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET', $oauthservices, $conf->global->MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET); |
| 458 | 458 | } else { |
| 459 | 459 | $text = $oauthservices[getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET')]; |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | |
| 50 | 50 | $parameters = array(); |
| 51 | -$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks |
|
| 51 | +$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks |
|
| 52 | 52 | if ($reshook < 0) { |
| 53 | 53 | setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
| 54 | 54 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $checkread_key = GETPOST('MAILING_EMAIL_UNSUBSCRIBE_KEY', 'alpha'); |
| 55 | 55 | $contactbulkdefault = GETPOSTINT('MAILING_CONTACT_DEFAULT_BULK_STATUS'); |
| 56 | 56 | if (GETPOST('MAILING_DELAY', 'alpha') != '') { |
| 57 | - $mailingdelay = price2num(GETPOST('MAILING_DELAY', 'alpha'), 3); // Not less than 1 millisecond. |
|
| 57 | + $mailingdelay = price2num(GETPOST('MAILING_DELAY', 'alpha'), 3); // Not less than 1 millisecond. |
|
| 58 | 58 | } else { |
| 59 | 59 | $mailingdelay = ''; |
| 60 | 60 | } |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | print '<tr class="oddeven"><td><label for="logo">' . $form->textwithpicto($langs->trans("Logo"), $tooltiplogo) . '</label></td><td>'; |
| 532 | 532 | print '<div class="centpercent nobordernopadding valignmiddle "><div class="inline-block marginrightonly">'; |
| 533 | 533 | if ($maxmin > 0) { |
| 534 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 534 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 535 | 535 | } |
| 536 | 536 | print '<input type="file" class="flat minwidth100 maxwidthinputfileonsmartphone" name="logo" id="logo" accept="image/*">'; |
| 537 | 537 | print '</div>'; |
@@ -573,7 +573,7 @@ discard block |
||
| 573 | 573 | $maxfilesizearray = getMaxFileSizeArray(); |
| 574 | 574 | $maxmin = $maxfilesizearray['maxmin']; |
| 575 | 575 | if ($maxmin > 0) { |
| 576 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 576 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 577 | 577 | } |
| 578 | 578 | print '<input type="file" class="flat minwidth100 maxwidthinputfileonsmartphone" name="logo_squarred" id="logo_squarred" accept="image/*">'; |
| 579 | 579 | print '</div>'; |