@@ -68,7 +68,7 @@ |
||
| 68 | 68 | // Parameters |
| 69 | 69 | $action = GETPOST('action', 'aZ09'); |
| 70 | 70 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 71 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 71 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 72 | 72 | |
| 73 | 73 | $value = GETPOST('value', 'alpha'); |
| 74 | 74 | $label = GETPOST('label', 'alpha'); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | // Parameters |
| 69 | 69 | $action = GETPOST('action', 'aZ09'); |
| 70 | 70 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 71 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 71 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 72 | 72 | |
| 73 | 73 | $value = GETPOST('value', 'alpha'); |
| 74 | 74 | $label = GETPOST('label', 'alpha'); |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | // Security: Delete string ../ or ..\ into $original_file |
| 134 | - $original_file = preg_replace('/\.\.+/', '..', $original_file); // Replace '... or more' with '..' |
|
| 134 | + $original_file = preg_replace('/\.\.+/', '..', $original_file); // Replace '... or more' with '..' |
|
| 135 | 135 | $original_file = str_replace('../', '/', $original_file); |
| 136 | 136 | $original_file = str_replace('..\\', '/', $original_file); |
| 137 | 137 | |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | |
| 146 | 146 | if ($action == 'updatepattern') { |
| 147 | 147 | $pattern = GETPOST("pattern", "alpha"); |
| 148 | - $explodePattern = explode(';', $pattern); // List of ints separated with ';' containing counts |
|
| 148 | + $explodePattern = explode(';', $pattern); // List of ints separated with ';' containing counts |
|
| 149 | 149 | |
| 150 | 150 | $patternInError = false; |
| 151 | 151 | if ((int) $explodePattern[0] < 1 || (int) $explodePattern[4] < 0) { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | $globalkey = empty($provider) ? $label : $label . '-' . $provider; |
| 196 | 196 | |
| 197 | - if (!dolibarr_del_const($db, $globalkey . '_NAME', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_ID', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SECRET', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_URLAUTHORIZE', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SCOPE', $conf->entity)) { |
|
| 197 | + if (!dolibarr_del_const($db, $globalkey . '_NAME', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_ID', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SECRET', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_URLAUTHORIZE', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SCOPE', $conf->entity)) { |
|
| 198 | 198 | setEventMessages($langs->trans("ErrorInEntryDeletion"), null, 'errors'); |
| 199 | 199 | $error++; |
| 200 | 200 | } else { |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | $provider . '_NAME', |
| 271 | 271 | $provider . '_ID', |
| 272 | 272 | $provider . '_SECRET', |
| 273 | - $provider . '_URLAUTHORIZE', // For custom oauth links |
|
| 273 | + $provider . '_URLAUTHORIZE', // For custom oauth links |
|
| 274 | 274 | $provider . '_SCOPE' // For custom oauth links |
| 275 | 275 | ); |
| 276 | 276 | } |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | // $list is defined into oauth.lib.php to the list of supporter OAuth providers. |
| 290 | 290 | foreach ($listinsetup as $key) { |
| 291 | 291 | $supported = 0; |
| 292 | - $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME |
|
| 292 | + $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME |
|
| 293 | 293 | $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array); |
| 294 | 294 | $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array); |
| 295 | 295 | if (preg_match('/^.*-/', $keyforsupportedoauth2array)) { |
@@ -43,13 +43,13 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $value = GETPOST('value', 'alpha'); |
| 45 | 45 | $label = GETPOST('label', 'alpha'); |
| 46 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 46 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 47 | 47 | |
| 48 | 48 | $scandir = GETPOST('scan_dir', 'alpha'); |
| 49 | 49 | $type = 'myobject'; |
| 50 | 50 | |
| 51 | 51 | $arrayofparameters = array( |
| 52 | - 'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea','enabled' => 1, 'css' => ''), |
|
| 52 | + 'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea', 'enabled' => 1, 'css' => ''), |
|
| 53 | 53 | 'EVENTORGANIZATION_CATEG_THIRDPARTY_CONF' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1, 'css' => ''), |
| 54 | 54 | 'EVENTORGANIZATION_CATEG_THIRDPARTY_BOOTH' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1, 'css' => ''), |
| 55 | 55 | 'EVENTORGANIZATION_FILTERATTENDEES_CAT' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1, 'css' => ''), |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | |
| 84 | 84 | if ($cancel) { |
| 85 | - $action = ''; |
|
| 85 | + $action = ''; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | include DOL_DOCUMENT_ROOT . '/core/actions_setmoduleoptions.inc.php'; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | $action = GETPOST('action', 'aZ09'); |
| 42 | 42 | $value = GETPOST('value', 'alpha'); |
| 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 | $label = GETPOST('label', 'alpha'); |
| 46 | 46 | $scandir = GETPOST('scandir', 'alpha'); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | // Parameters |
| 39 | 39 | $action = GETPOST('action', 'aZ09'); |
| 40 | 40 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 41 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 41 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 42 | 42 | |
| 43 | 43 | $value = GETPOST('value', 'alpha'); |
| 44 | 44 | |
@@ -693,7 +693,7 @@ |
||
| 693 | 693 | $maxfilesizearray = getMaxFileSizeArray(); |
| 694 | 694 | $maxmin = $maxfilesizearray['maxmin']; |
| 695 | 695 | if ($maxmin > 0) { |
| 696 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 696 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 697 | 697 | } |
| 698 | 698 | print '<input type="file" class="flat maxwidthinputfileonsmartphone" name="imagebackground" id="imagebackground"' . $disabled . '>'; |
| 699 | 699 | if ($disabled) { |