@@ -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'); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | $action = GETPOST('action', 'aZ09'); |
| 46 | 46 | $value = GETPOST('value', 'alpha'); |
| 47 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 47 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 48 | 48 | |
| 49 | 49 | $type = 'group'; |
| 50 | 50 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $todisabletext = ''; |
| 152 | 152 | $i = 0; |
| 153 | 153 | foreach ($arrayoffunctionstodisable as $functiontodisable) { |
| 154 | - if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 154 | + if (!in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 155 | 155 | if ($i > 0) { |
| 156 | 156 | $todisabletext .= ', '; |
| 157 | 157 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | $todisabletext = ''; |
| 167 | 167 | $i = 0; |
| 168 | 168 | foreach ($arrayoffunctionstodisable2 as $functiontodisable) { |
| 169 | - if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 169 | + if (!in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 170 | 170 | if ($i > 0) { |
| 171 | 171 | $todisabletext .= ', '; |
| 172 | 172 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | |
| 191 | 191 | // JSON |
| 192 | 192 | print '<strong>JSON</strong>: '; |
| 193 | -$loadedExtensions = array_map('strtolower', get_loaded_extensions(false)); |
|
| 193 | +$loadedExtensions = array_map('strtolower', get_loaded_extensions(false)); |
|
| 194 | 194 | $test = !in_array('json', $loadedExtensions); |
| 195 | 195 | if ($test) { |
| 196 | 196 | print img_picto('', 'error') . ' ' . $langs->trans("NotInstalled") . ' - ' . $langs->trans("VulnerableToRCEAttack"); |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | print '<br>'; |
| 252 | 252 | print '<br>'; |
| 253 | 253 | |
| 254 | -print '<strong>' . $langs->trans("PermissionsOnFile", $conffile) . '</strong>: '; // $conffile is defined into filefunc.inc.php |
|
| 254 | +print '<strong>' . $langs->trans("PermissionsOnFile", $conffile) . '</strong>: '; // $conffile is defined into filefunc.inc.php |
|
| 255 | 255 | $perms = fileperms($dolibarr_main_document_root . '/' . $conffile); |
| 256 | 256 | if ($perms) { |
| 257 | 257 | if (($perms & 0x0004) || ($perms & 0x0002)) { |
@@ -496,11 +496,11 @@ discard block |
||
| 496 | 496 | $umask = getDolGlobalString('MAIN_UMASK'); |
| 497 | 497 | |
| 498 | 498 | print '<strong>' . $langs->trans("UMask") . '</strong>: '; |
| 499 | -if (! in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 499 | +if (!in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 500 | 500 | print img_warning() . ' '; |
| 501 | 501 | } |
| 502 | 502 | print $umask; |
| 503 | -if (! in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 503 | +if (!in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 504 | 504 | print ' <span class="opacitymedium">(' . $langs->trans("Recommended") . ': 0600 | 0660)</span>'; |
| 505 | 505 | } |
| 506 | 506 | print '<br>'; |
@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | * \brief Page with information on database tables. Add also some maintenance action to convert tables. |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | -if (! defined('CSRFCHECK_WITH_TOKEN')) { |
|
| 29 | - define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET |
|
| 28 | +if (!defined('CSRFCHECK_WITH_TOKEN')) { |
|
| 29 | + define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | // Load Dolibarr environment |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | //print $shortsqlfilename.' '; |
| 116 | 116 | $shortsqlfilename = preg_replace('/\-[a-z]+\./', '.', $value['name']); |
| 117 | 117 | $arrayoffiles[$value['name']] = $shortsqlfilename; |
| 118 | - if ($value['name'] == $shortsqlfilename && ! preg_match('/\.key\.sql$/', $value['name'])) { |
|
| 118 | + if ($value['name'] == $shortsqlfilename && !preg_match('/\.key\.sql$/', $value['name'])) { |
|
| 119 | 119 | // This is a sql file automatically created |
| 120 | 120 | $arrayoftablesautocreated[$value['name']] = $shortsqlfilename; |
| 121 | 121 | } |
@@ -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 | /* |