@@ -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 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | } |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 201 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 202 | 202 | /** |
| 203 | 203 | * Return tree of Dolistore categories. $this->categories must have been loaded before. |
| 204 | 204 | * |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | public function get_categories($parent = 0) |
| 209 | 209 | { |
| 210 | - // phpcs:enable |
|
| 210 | + // phpcs:enable |
|
| 211 | 211 | if (!isset($this->categories)) { |
| 212 | 212 | die('not possible'); |
| 213 | 213 | } |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | } |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 248 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 249 | 249 | /** |
| 250 | 250 | * Return list of product formatted for output |
| 251 | 251 | * |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | public function get_products() |
| 255 | 255 | { |
| 256 | - // phpcs:enable |
|
| 256 | + // phpcs:enable |
|
| 257 | 257 | global $langs, $conf; |
| 258 | 258 | $html = ""; |
| 259 | 259 | $last_month = time() - (30 * 24 * 60 * 60); |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | return $html; |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 345 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 346 | 346 | /** |
| 347 | 347 | * get previous link |
| 348 | 348 | * |
@@ -351,11 +351,11 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | public function get_previous_link($text = '<<') |
| 353 | 353 | { |
| 354 | - // phpcs:enable |
|
| 354 | + // phpcs:enable |
|
| 355 | 355 | return '<a href="' . $this->get_previous_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>'; |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 358 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 359 | 359 | /** |
| 360 | 360 | * get next link |
| 361 | 361 | * |
@@ -364,11 +364,11 @@ discard block |
||
| 364 | 364 | */ |
| 365 | 365 | public function get_next_link($text = '>>') |
| 366 | 366 | { |
| 367 | - // phpcs:enable |
|
| 367 | + // phpcs:enable |
|
| 368 | 368 | return '<a href="' . $this->get_next_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>'; |
| 369 | 369 | } |
| 370 | 370 | |
| 371 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 371 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 372 | 372 | /** |
| 373 | 373 | * get previous url |
| 374 | 374 | * |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | */ |
| 377 | 377 | public function get_previous_url() |
| 378 | 378 | { |
| 379 | - // phpcs:enable |
|
| 379 | + // phpcs:enable |
|
| 380 | 380 | $param_array = array(); |
| 381 | 381 | if ($this->start < $this->per_page) { |
| 382 | 382 | $sub = 0; |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | return $this->url . "&" . $param; |
| 393 | 393 | } |
| 394 | 394 | |
| 395 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 395 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 396 | 396 | /** |
| 397 | 397 | * get next url |
| 398 | 398 | * |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | */ |
| 401 | 401 | public function get_next_url() |
| 402 | 402 | { |
| 403 | - // phpcs:enable |
|
| 403 | + // phpcs:enable |
|
| 404 | 404 | $param_array = array(); |
| 405 | 405 | if (count($this->products) < $this->per_page) { |
| 406 | 406 | $add = 0; |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | return $this->url . "&" . $param; |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 419 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 420 | 420 | /** |
| 421 | 421 | * version compare |
| 422 | 422 | * |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | */ |
| 427 | 427 | public function version_compare($v1, $v2) |
| 428 | 428 | { |
| 429 | - // phpcs:enable |
|
| 429 | + // phpcs:enable |
|
| 430 | 430 | $v1 = explode('.', $v1); |
| 431 | 431 | $v2 = explode('.', $v2); |
| 432 | 432 | $ret = 0; |
@@ -1657,7 +1657,7 @@ |
||
| 1657 | 1657 | 70 => array('lang' => 'interventions', 'enabled' => isModEnabled("intervention"), 'perm' => $user->hasRight('fichinter', 'creer'), 'label' => 'AddIntervention', 'url' => '/fichinter/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
| 1658 | 1658 | 80 => array('lang' => 'contracts', 'enabled' => isModEnabled("contract"), 'perm' => $user->hasRight('contrat', 'creer'), 'label' => 'AddContract', 'url' => '/contrat/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
| 1659 | 1659 | 90 => array('lang' => 'trips', 'enabled' => isModEnabled("expensereport"), 'perm' => $user->hasRight('expensereport', 'creer'), 'label' => 'AddTrip', 'url' => '/expensereport/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
| 1660 | - 100 => array('lang' => 'donations', 'enabled' => isModEnabled("don"), 'perm' => $user->hasRight('don', 'creer'), 'label' => 'AddDonation', 'url' => '/don/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
|
| 1660 | + 100 => array('lang' => 'donations', 'enabled' => isModEnabled("don"), 'perm' => $user->hasRight('don', 'creer'), 'label' => 'AddDonation', 'url' => '/don/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
|
| 1661 | 1661 | ); |
| 1662 | 1662 | |
| 1663 | 1663 | $params = array('backtopage' => $_SERVER["PHP_SELF"] . '?id=' . $object->id); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | return $texte; |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 209 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 210 | 210 | /** |
| 211 | 211 | * Function to build a document on disk using the generic odt module. |
| 212 | 212 | * |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | */ |
| 221 | 221 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 222 | 222 | { |
| 223 | - // phpcs:enable |
|
| 223 | + // phpcs:enable |
|
| 224 | 224 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 225 | 225 | global $action; |
| 226 | 226 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | |
| 93 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 93 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 94 | 94 | /** |
| 95 | 95 | * This is the main function that returns the array of emails |
| 96 | 96 | * |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function add_to_target($mailing_id) |
| 101 | 101 | { |
| 102 | - // phpcs:enable |
|
| 102 | + // phpcs:enable |
|
| 103 | 103 | $target = array(); |
| 104 | 104 | $j = 0; |
| 105 | 105 | |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | |
| 344 | 344 | |
| 345 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 345 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 346 | 346 | /** |
| 347 | 347 | * Clean sensible object datas |
| 348 | 348 | * |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | protected function _cleanObjectDatas($object) |
| 353 | 353 | { |
| 354 | - // phpcs:enable |
|
| 354 | + // phpcs:enable |
|
| 355 | 355 | $object = parent::_cleanObjectDatas($object); |
| 356 | 356 | |
| 357 | 357 | unset($object->rowid); |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | return $this->LibStatut($this->status, $mode); |
| 980 | 980 | } |
| 981 | 981 | |
| 982 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 982 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 983 | 983 | /** |
| 984 | 984 | * Return the label of a given status |
| 985 | 985 | * |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | */ |
| 990 | 990 | public function LibStatut($status, $mode = 0) |
| 991 | 991 | { |
| 992 | - // phpcs:enable |
|
| 992 | + // phpcs:enable |
|
| 993 | 993 | if (is_null($status)) { |
| 994 | 994 | return ''; |
| 995 | 995 | } |