@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | $boxid = GETPOSTINT('boxid'); |
| 47 | 47 | $boxorder = GETPOST('boxorder'); |
| 48 | -$zone = GETPOST('zone'); // Can be '0' or '1' or 'pagename'... |
|
| 48 | +$zone = GETPOST('zone'); // Can be '0' or '1' or 'pagename'... |
|
| 49 | 49 | $userid = GETPOSTINT('userid'); |
| 50 | 50 | |
| 51 | 51 | // Security check |
@@ -93,9 +93,9 @@ |
||
| 93 | 93 | $vartmp = (empty($InfoFieldList[3]) ? '' : $InfoFieldList[3]); |
| 94 | 94 | $reg = array(); |
| 95 | 95 | if (preg_match('/^.*:(\w*)$/', $vartmp, $reg)) { |
| 96 | - $InfoFieldList[4] = $reg[1]; // take the sort field |
|
| 96 | + $InfoFieldList[4] = $reg[1]; // take the sort field |
|
| 97 | 97 | } |
| 98 | - $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field |
|
| 98 | + $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field |
|
| 99 | 99 | |
| 100 | 100 | $classname = $InfoFieldList[0]; |
| 101 | 101 | $classpath = $InfoFieldList[1]; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | // Security check |
| 48 | 48 | if (!isModEnabled('incoterm')) { |
| 49 | - httponly_accessforbidden("Module incoterm not enabled"); // This includes the exit. |
|
| 49 | + httponly_accessforbidden("Module incoterm not enabled"); // This includes the exit. |
|
| 50 | 50 | } |
| 51 | 51 | // There is no other permission on this component. Everybody connected can read content of the incoterm table |
| 52 | 52 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | // Load object according to $id and $element |
| 55 | 55 | $object = fetchObjectByElement($id, $element); |
| 56 | 56 | if (!is_object($object)) { |
| 57 | - httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found."); // This includes the exit. |
|
| 57 | + httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found."); // This includes the exit. |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | $object->fields[$field] = array('type' => $format, 'enabled' => 1); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | if (!empty($user->socid)) { |
| 73 | 73 | $socid = $user->socid; |
| 74 | 74 | if (!empty($object->socid) && $socid != $object->socid) { |
| 75 | - httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit. |
|
| 75 | + httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit. |
|
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } elseif ($element == 'product' && in_array($field, array('tosell', 'tobuy', 'tobatch'))) { // Special case for products |
| 84 | 84 | restrictedArea($user, 'produit|service', $object, 'product&product', '', '', 'rowid'); |
| 85 | 85 | } else { |
| 86 | - httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported."); // This includes the exit. |
|
| 86 | + httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported."); // This includes the exit. |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public $name = 'Muguet'; |
| 59 | 59 | |
| 60 | - public $prefix = 'PO'; // PO for "Purchase Order" |
|
| 60 | + public $prefix = 'PO'; // PO for "Purchase Order" |
|
| 61 | 61 | |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | $maxfilesizearray = getMaxFileSizeArray(); |
| 175 | 175 | $maxmin = $maxfilesizearray['maxmin']; |
| 176 | 176 | if ($maxmin > 0) { |
| 177 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 177 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 178 | 178 | } |
| 179 | 179 | $texte .= ' <input type="file" name="uploadfile">'; |
| 180 | 180 | $texte .= '<input type="hidden" value="CONTRACT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | $maxfilesizearray = getMaxFileSizeArray(); |
| 165 | 165 | $maxmin = $maxfilesizearray['maxmin']; |
| 166 | 166 | if ($maxmin > 0) { |
| 167 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 167 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 168 | 168 | } |
| 169 | 169 | $texte .= ' <input type="file" name="uploadfile">'; |
| 170 | 170 | $texte .= '<input type="hidden" value="TICKET_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -199,7 +199,7 @@ |
||
| 199 | 199 | $maxfilesizearray = getMaxFileSizeArray(); |
| 200 | 200 | $maxmin = $maxfilesizearray['maxmin']; |
| 201 | 201 | if ($maxmin > 0) { |
| 202 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 202 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 203 | 203 | } |
| 204 | 204 | $texte .= ' <input type="file" name="uploadfile">'; |
| 205 | 205 | $texte .= '<input type="hidden" value="USERGROUP_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | $maxfilesizearray = getMaxFileSizeArray(); |
| 172 | 172 | $maxmin = $maxfilesizearray['maxmin']; |
| 173 | 173 | if ($maxmin > 0) { |
| 174 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 174 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 175 | 175 | } |
| 176 | 176 | $texte .= ' <input type="file" name="uploadfile">'; |
| 177 | 177 | $texte .= '<input type="hidden" value="PRODUCT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |