@@ -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'); |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * \file htdocs/webportal/controllers/default.controller.class.php |
|
| 23 | - * \ingroup webportal |
|
| 24 | - * \brief This file is a controller for default |
|
| 25 | - */ |
|
| 21 | + /** |
|
| 22 | + * \file htdocs/webportal/controllers/default.controller.class.php |
|
| 23 | + * \ingroup webportal |
|
| 24 | + * \brief This file is a controller for default |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Class for DefaultController |
@@ -18,14 +18,14 @@ |
||
| 18 | 18 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * \file htdocs/webportal/controllers/login.controller.class.php |
|
| 23 | - * \ingroup webportal |
|
| 24 | - * \brief This file is a controller for login |
|
| 25 | - */ |
|
| 21 | + /** |
|
| 22 | + * \file htdocs/webportal/controllers/login.controller.class.php |
|
| 23 | + * \ingroup webportal |
|
| 24 | + * \brief This file is a controller for login |
|
| 25 | + */ |
|
| 26 | 26 | /** |
| 27 | - * Class for LoginController |
|
| 28 | - */ |
|
| 27 | + * Class for LoginController |
|
| 28 | + */ |
|
| 29 | 29 | class LoginController extends Controller |
| 30 | 30 | { |
| 31 | 31 | /** |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * \file htdocs/webportal/controllers/document.controller.class.php |
|
| 23 | - * \ingroup webportal |
|
| 24 | - * \brief This file is a controller for documents |
|
| 25 | - */ |
|
| 21 | + /** |
|
| 22 | + * \file htdocs/webportal/controllers/document.controller.class.php |
|
| 23 | + * \ingroup webportal |
|
| 24 | + * \brief This file is a controller for documents |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/files.lib.php'; |
| 28 | 28 | |
@@ -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'); |