@@ -81,7 +81,9 @@ |
||
81 | 81 | $search_year = ''; |
82 | 82 | } |
83 | 83 | |
84 | -if (!$user->hasRight('produit', 'lire')) accessforbidden(); |
|
84 | +if (!$user->hasRight('produit', 'lire')) { |
|
85 | + accessforbidden(); |
|
86 | +} |
|
85 | 87 | |
86 | 88 | |
87 | 89 | /* |
@@ -672,8 +672,12 @@ discard block |
||
672 | 672 | if ($limit > 0 && $limit != $conf->liste_limit) { |
673 | 673 | $filters .= '&limit='.((int) $limit); |
674 | 674 | } |
675 | -if (!empty($includeproductswithoutdesiredqty)) $filters .= '&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty); |
|
676 | -if (!empty($salert)) $filters .= '&salert='.urlencode($salert); |
|
675 | +if (!empty($includeproductswithoutdesiredqty)) { |
|
676 | + $filters .= '&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty); |
|
677 | +} |
|
678 | +if (!empty($salert)) { |
|
679 | + $filters .= '&salert='.urlencode($salert); |
|
680 | +} |
|
677 | 681 | |
678 | 682 | $param = (isset($type) ? '&type='.urlencode($type) : ''); |
679 | 683 | $param .= '&fourn_id='.urlencode($fourn_id).'&search_label='.urlencode($search_label).'&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty).'&salert='.urlencode($salert).'&draftorder='.urlencode($draftorder); |
@@ -681,8 +685,12 @@ discard block |
||
681 | 685 | $param .= '&mode='.urlencode($mode); |
682 | 686 | $param .= '&fk_supplier='.urlencode($fk_supplier); |
683 | 687 | $param .= '&fk_entrepot='.urlencode($fk_entrepot); |
684 | -if (!empty($includeproductswithoutdesiredqty)) $param .= '&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty); |
|
685 | -if (!empty($salert)) $param .= '&salert='.urlencode($salert); |
|
688 | +if (!empty($includeproductswithoutdesiredqty)) { |
|
689 | + $param .= '&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty); |
|
690 | +} |
|
691 | +if (!empty($salert)) { |
|
692 | + $param .= '&salert='.urlencode($salert); |
|
693 | +} |
|
686 | 694 | |
687 | 695 | $stocklabel = $langs->trans('Stock'); |
688 | 696 | $stocklabelbis = $langs->trans('Stock'); |
@@ -36,7 +36,9 @@ |
||
36 | 36 | <?php |
37 | 37 | |
38 | 38 | // Other attributes |
39 | -if (!isset($parameters)) $parameters = array(); |
|
39 | +if (!isset($parameters)) { |
|
40 | + $parameters = array(); |
|
41 | +} |
|
40 | 42 | |
41 | 43 | $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook |
42 | 44 | print $hookmanager->resPrint; |
@@ -49,8 +49,9 @@ |
||
49 | 49 | |
50 | 50 | // Security check |
51 | 51 | $socid=0; |
52 | -if ($user->socid > 0) |
|
52 | +if ($user->socid > 0) { |
|
53 | 53 | $socid=$user->socid; |
54 | +} |
|
54 | 55 | |
55 | 56 | $result=restrictedArea($user, 'contrat', $id); |
56 | 57 |
@@ -1,4 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page80.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page80.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page80.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page80.tpl.php'; |
|
8 | +} |
@@ -1,6 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to link to the master file - DO NOT MODIFY - It is just an include |
3 | 3 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
4 | - if (! defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
4 | + if (! defined('USEEXTERNALSERVER')) { |
|
5 | + define('USEEXTERNALSERVER', 1); |
|
6 | + } |
|
5 | 7 | require_once '/var/www/html/dolibarr_dev/htdocs/master.inc.php'; |
6 | 8 | } |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
2 | +$websitekey=basename(__DIR__); if (empty($websitepagefile)) { |
|
3 | + $websitepagefile=__FILE__; |
|
4 | +} |
|
3 | 5 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
4 | 6 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 7 | require_once $pathdepth ? str_repeat('../', $pathdepth) : './'.'master.inc.php'; |
@@ -26,7 +28,10 @@ discard block |
||
26 | 28 | <!-- Include link to JS file --> |
27 | 29 | <script async src="/javascript.js.php"></script> |
28 | 30 | <!-- Include HTML header from common file --> |
29 | -<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?> |
|
31 | +<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) { |
|
32 | + include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; |
|
33 | +} |
|
34 | +?> |
|
30 | 35 | <!-- Include HTML header from page header block --> |
31 | 36 | <head> |
32 | 37 | <meta charset="UTF-8" /> |
@@ -1,5 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page249.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page249.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page249.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page249.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |
@@ -1,5 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page252.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page252.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page252.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page252.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |