@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | print "<strong>PHP session.use_strict_mode</strong> = ".(ini_get('session.use_strict_mode') ? img_picto('', 'tick').' ' : img_warning().' ').(ini_get('session.use_strict_mode') ? ini_get('session.use_strict_mode') : yn(0)).' <span class="opacitymedium">('.$langs->trans("RecommendedValueIs", '1').")</span><br>\n"; |
| 109 | 109 | print "<strong>PHP session.use_only_cookies</strong> = ".(ini_get('session.use_only_cookies') ? img_picto('', 'tick').' ' : img_warning().' ').(ini_get('session.use_only_cookies') ? ini_get('session.use_only_cookies') : yn(0)).' <span class="opacitymedium">('.$langs->trans("RecommendedValueIs", '1').")</span><br>\n"; |
| 110 | 110 | print "<strong>PHP session.cookie_httponly</strong> = ".(ini_get('session.cookie_httponly') ? img_picto('', 'tick').' ' : img_warning().' ').(ini_get('session.cookie_httponly') ? ini_get('session.cookie_httponly') : '').' <span class="opacitymedium">('.$langs->trans("RecommendedValueIs", '1').")</span><br>\n"; |
| 111 | -print "<strong>PHP session.cookie_samesite</strong> = ".(ini_get('session.cookie_samesite') ? img_picto('', 'tick').' ' .ini_get('session.cookie_samesite') : 'None'); |
|
| 111 | +print "<strong>PHP session.cookie_samesite</strong> = ".(ini_get('session.cookie_samesite') ? img_picto('', 'tick').' '.ini_get('session.cookie_samesite') : 'None'); |
|
| 112 | 112 | if (!ini_get('session.cookie_samesite') || ini_get('session.cookie_samesite') == 'Lax') { |
| 113 | 113 | print ' <span class="opacitymedium">('.$langs->trans("RecommendedValueIs", 'Lax').")</span>"; |
| 114 | 114 | } elseif (ini_get('session.cookie_samesite') == 'Strict') { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | $todisabletext = ''; |
| 150 | 150 | $i = 0; |
| 151 | 151 | foreach ($arrayoffunctionstodisable as $functiontodisable) { |
| 152 | - if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 152 | + if (!in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 153 | 153 | if ($i > 0) { |
| 154 | 154 | $todisabletext .= ', '; |
| 155 | 155 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $todisabletext = ''; |
| 165 | 165 | $i = 0; |
| 166 | 166 | foreach ($arrayoffunctionstodisable2 as $functiontodisable) { |
| 167 | - if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 167 | + if (!in_array($functiontodisable, $arrayoffunctionsdisabled)) { |
|
| 168 | 168 | if ($i > 0) { |
| 169 | 169 | $todisabletext .= ', '; |
| 170 | 170 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | |
| 191 | 191 | // JSON |
| 192 | 192 | print '<strong>JSON</strong>: '; |
| 193 | -$loadedExtensions = array_map('strtolower', get_loaded_extensions(false)); |
|
| 193 | +$loadedExtensions = array_map('strtolower', get_loaded_extensions(false)); |
|
| 194 | 194 | $test = !in_array('json', $loadedExtensions); |
| 195 | 195 | if ($test || function_exists('dol_json_decode')) { |
| 196 | 196 | print img_picto('', 'error').' '.$langs->trans("NotInstalled").' - '.$langs->trans("VulnerableToRCEAttack"); |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | print '<br>'; |
| 252 | 252 | print '<br>'; |
| 253 | 253 | |
| 254 | -print '<strong>'.$langs->trans("PermissionsOnFile", $conffile).'</strong>: '; // $conffile is defined into filefunc.inc.php |
|
| 254 | +print '<strong>'.$langs->trans("PermissionsOnFile", $conffile).'</strong>: '; // $conffile is defined into filefunc.inc.php |
|
| 255 | 255 | $perms = fileperms($dolibarr_main_document_root.'/'.$conffile); |
| 256 | 256 | if ($perms) { |
| 257 | 257 | if (($perms & 0x0004) || ($perms & 0x0002)) { |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | if (!getDolGlobalString('MAIN_ANTIVIRUS_COMMAND')) { |
| 486 | 486 | print ' - <span class="opacitymedium">'.$langs->trans("Recommended").': '.$langs->trans("DefinedAPathForAntivirusCommandIntoSetup", $langs->transnoentitiesnoconv("Home")." - ".$langs->transnoentitiesnoconv("Setup")." - ".$langs->transnoentitiesnoconv("Security")).'</span>'; |
| 487 | 487 | } else { |
| 488 | - print ' - ' . getDolGlobalString('MAIN_ANTIVIRUS_COMMAND'); |
|
| 488 | + print ' - '.getDolGlobalString('MAIN_ANTIVIRUS_COMMAND'); |
|
| 489 | 489 | if (defined('MAIN_ANTIVIRUS_COMMAND') && !defined('MAIN_ANTIVIRUS_BYPASS_COMMAND_AND_PARAM')) { |
| 490 | 490 | print ' - <span class="opacitymedium">'.$langs->trans("ValueIsForcedBySystem").'</span>'; |
| 491 | 491 | } |
@@ -496,11 +496,11 @@ discard block |
||
| 496 | 496 | $umask = getDolGlobalString('MAIN_UMASK'); |
| 497 | 497 | |
| 498 | 498 | print '<strong>'.$langs->trans("UMask").'</strong>: '; |
| 499 | -if (! in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 499 | +if (!in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 500 | 500 | print img_warning().' '; |
| 501 | 501 | } |
| 502 | 502 | print $umask; |
| 503 | -if (! in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 503 | +if (!in_array($umask, array('600', '660', '0600', '0660'))) { |
|
| 504 | 504 | print ' <span class="opacitymedium">('.$langs->trans("Recommended").': 0600 | 0660)</span>'; |
| 505 | 505 | } |
| 506 | 506 | print '<br>'; |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | $conf->global->MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES = 0; |
| 719 | 719 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML = 1; |
| 720 | 720 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = 0; |
| 721 | -$result=dol_htmlwithnojs('<img onerror<=alert(document.domain)> src=>0xbeefed'); |
|
| 721 | +$result = dol_htmlwithnojs('<img onerror<=alert(document.domain)> src=>0xbeefed'); |
|
| 722 | 722 | $conf->global->MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES = $savMAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES; |
| 723 | 723 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML = $savMAIN_RESTRICTHTML_ONLY_VALID_HTML; |
| 724 | 724 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = $savMAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY; |
@@ -742,7 +742,7 @@ discard block |
||
| 742 | 742 | $conf->global->MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES = 0; |
| 743 | 743 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML = 0; |
| 744 | 744 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = 1; |
| 745 | - $result=dol_htmlwithnojs('<img onerror<=alert(document.domain)> src=>0xbeefed'); |
|
| 745 | + $result = dol_htmlwithnojs('<img onerror<=alert(document.domain)> src=>0xbeefed'); |
|
| 746 | 746 | $conf->global->MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES = $savMAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES; |
| 747 | 747 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML = $savMAIN_RESTRICTHTML_ONLY_VALID_HTML; |
| 748 | 748 | $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = $savMAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY; |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | if ($sql) { |
| 332 | 332 | // Test if the SQL is allowed SQL |
| 333 | 333 | if ($onlysqltoimportwebsite) { |
| 334 | - $newsql = str_replace(array("\'"), '__BACKSLASHQUOTE__', $sql); // Replace the \' char |
|
| 334 | + $newsql = str_replace(array("\'"), '__BACKSLASHQUOTE__', $sql); // Replace the \' char |
|
| 335 | 335 | |
| 336 | 336 | // Remove all strings contents including the ' so we can analyse SQL instruction only later |
| 337 | 337 | $l = strlen($newsql); |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | $extractphpold = ''; |
| 380 | 380 | |
| 381 | 381 | // Security analysis |
| 382 | - $errorphpcheck = checkPHPCode($extractphpold, $extractphp); // Contains the setEventMessages |
|
| 382 | + $errorphpcheck = checkPHPCode($extractphpold, $extractphp); // Contains the setEventMessages |
|
| 383 | 383 | if ($errorphpcheck) { |
| 384 | 384 | $error++; |
| 385 | 385 | //print 'Request '.($i + 1)." contains non allowed instructions.<br>\n"; |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | dol_print_error(null, 'Error call dolibar_del_const with parameter name empty'); |
| 587 | 587 | return -1; |
| 588 | 588 | } |
| 589 | - if (! is_object($hookmanager)) { |
|
| 589 | + if (!is_object($hookmanager)) { |
|
| 590 | 590 | require_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'; |
| 591 | 591 | $hookmanager = new HookManager($db); |
| 592 | 592 | } |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | dol_print_error($db, "Error: Call to function dolibarr_set_const with wrong parameters"); |
| 681 | 681 | exit; |
| 682 | 682 | } |
| 683 | - if (! is_object($hookmanager)) { |
|
| 683 | + if (!is_object($hookmanager)) { |
|
| 684 | 684 | require_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'; |
| 685 | 685 | $hookmanager = new HookManager($db); |
| 686 | 686 | } |
@@ -1121,7 +1121,7 @@ discard block |
||
| 1121 | 1121 | |
| 1122 | 1122 | if (preg_match('/dol_login/i', $sessValues) && // limit to dolibarr session |
| 1123 | 1123 | preg_match('/dol_entity\|s:([0-9]+):"('.$conf->entity.')"/i', $sessValues) && // limit to current entity |
| 1124 | - preg_match('/dol_company\|s:([0-9]+):"(' . getDolGlobalString('MAIN_INFO_SOCIETE_NOM').')"/i', $sessValues)) { // limit to company name |
|
| 1124 | + preg_match('/dol_company\|s:([0-9]+):"('.getDolGlobalString('MAIN_INFO_SOCIETE_NOM').')"/i', $sessValues)) { // limit to company name |
|
| 1125 | 1125 | $tmp = explode('_', $file); |
| 1126 | 1126 | $idsess = $tmp[1]; |
| 1127 | 1127 | // We remove session if it's not ourself |
@@ -1938,7 +1938,7 @@ discard block |
||
| 1938 | 1938 | global $conf, $langs; |
| 1939 | 1939 | |
| 1940 | 1940 | $text = $langs->trans("OnlyFollowingModulesAreOpenedToExternalUsers"); |
| 1941 | - $listofmodules = explode(',', getDolGlobalString('MAIN_MODULES_FOR_EXTERNAL')); // List of modules qualified for external user management |
|
| 1941 | + $listofmodules = explode(',', getDolGlobalString('MAIN_MODULES_FOR_EXTERNAL')); // List of modules qualified for external user management |
|
| 1942 | 1942 | |
| 1943 | 1943 | $i = 0; |
| 1944 | 1944 | if (!empty($modules)) { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | // General $Variables |
| 84 | -$id = (GETPOSTINT('id') ? GETPOSTINT('id') : GETPOSTINT('facid')); // For backward compatibility |
|
| 84 | +$id = (GETPOSTINT('id') ? GETPOSTINT('id') : GETPOSTINT('facid')); // For backward compatibility |
|
| 85 | 85 | $ref = GETPOST('ref', 'alpha'); |
| 86 | 86 | $socid = GETPOSTINT('socid'); |
| 87 | 87 | $action = GETPOST('action', 'aZ09'); |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | setEventMessages('', $warningMsgLineList, 'warnings'); |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | - header("Location: " . $_SERVER['PHP_SELF'] . '?facid=' . $result); |
|
| 249 | + header("Location: ".$_SERVER['PHP_SELF'].'?facid='.$result); |
|
| 250 | 250 | exit(); |
| 251 | 251 | } else { |
| 252 | 252 | $langs->load("errors"); |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | // Validation |
| 338 | 338 | $object->fetch($id); |
| 339 | 339 | |
| 340 | - if ((preg_match('/^[\(]?PROV/i', $object->ref) || empty($object->ref)) && // empty should not happened, but when it occurs, the test save life |
|
| 340 | + if ((preg_match('/^[\(]?PROV/i', $object->ref) || empty($object->ref)) && // empty should not happened, but when it occurs, the test save life |
|
| 341 | 341 | getDolGlobalString('FAC_FORCE_DATE_VALIDATION') // If option enabled, we force invoice date |
| 342 | 342 | ) { |
| 343 | 343 | $object->date = dol_now(); |
@@ -1049,7 +1049,7 @@ discard block |
||
| 1049 | 1049 | $error++; |
| 1050 | 1050 | } |
| 1051 | 1051 | |
| 1052 | - $dateinvoice = dol_mktime(0, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'), 'tzserver'); // If we enter the 02 january, we need to save the 02 january for server |
|
| 1052 | + $dateinvoice = dol_mktime(0, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'), 'tzserver'); // If we enter the 02 january, we need to save the 02 january for server |
|
| 1053 | 1053 | $date_pointoftax = dol_mktime(0, 0, 0, GETPOSTINT('date_pointoftaxmonth'), GETPOSTINT('date_pointoftaxday'), GETPOSTINT('date_pointoftaxyear'), 'tzserver'); |
| 1054 | 1054 | |
| 1055 | 1055 | // Replacement invoice |
@@ -1081,7 +1081,7 @@ discard block |
||
| 1081 | 1081 | $object->note_private = trim(GETPOST('note_private', 'restricthtml')); |
| 1082 | 1082 | $object->ref_client = GETPOST('ref_client', 'alphanohtml'); |
| 1083 | 1083 | $object->ref_customer = GETPOST('ref_client', 'alphanohtml'); |
| 1084 | - $object->model_pdf = GETPOST('model', 'alphanohtml'); |
|
| 1084 | + $object->model_pdf = GETPOST('model', 'alphanohtml'); |
|
| 1085 | 1085 | $object->fk_project = GETPOSTINT('projectid'); |
| 1086 | 1086 | $object->cond_reglement_id = GETPOSTINT('cond_reglement_id'); |
| 1087 | 1087 | $object->mode_reglement_id = GETPOSTINT('mode_reglement_id'); |
@@ -1142,9 +1142,9 @@ discard block |
||
| 1142 | 1142 | $object->note_private = trim(GETPOST('note_private', 'restricthtml')); |
| 1143 | 1143 | $object->ref_client = GETPOST('ref_client', 'alphanohtml'); |
| 1144 | 1144 | $object->ref_customer = GETPOST('ref_client', 'alphanohtml'); |
| 1145 | - $object->model_pdf = GETPOST('model'); |
|
| 1145 | + $object->model_pdf = GETPOST('model'); |
|
| 1146 | 1146 | $object->fk_project = GETPOSTINT('projectid'); |
| 1147 | - $object->cond_reglement_id = 0; // No payment term for a credit note |
|
| 1147 | + $object->cond_reglement_id = 0; // No payment term for a credit note |
|
| 1148 | 1148 | $object->mode_reglement_id = GETPOSTINT('mode_reglement_id'); |
| 1149 | 1149 | $object->fk_account = GETPOSTINT('fk_account'); |
| 1150 | 1150 | //$object->remise_absolue = price2num(GETPOST('remise_absolue'), 'MU'); |
@@ -1466,7 +1466,7 @@ discard block |
||
| 1466 | 1466 | $object->note_public = trim(GETPOST('note_public', 'restricthtml')); |
| 1467 | 1467 | $object->note_private = trim(GETPOST('note_private', 'restricthtml')); |
| 1468 | 1468 | $object->ref_client = GETPOST('ref_client'); |
| 1469 | - $object->ref_customer = GETPOST('ref_client'); |
|
| 1469 | + $object->ref_customer = GETPOST('ref_client'); |
|
| 1470 | 1470 | $object->model_pdf = GETPOST('model'); |
| 1471 | 1471 | $object->fk_project = GETPOSTINT('projectid'); |
| 1472 | 1472 | $object->cond_reglement_id = (GETPOSTINT('type') == 3 ? 1 : GETPOST('cond_reglement_id')); |
@@ -1530,7 +1530,7 @@ discard block |
||
| 1530 | 1530 | $element = $subelement = 'expedition'; |
| 1531 | 1531 | } |
| 1532 | 1532 | |
| 1533 | - $object->origin = $origin; // deprecated |
|
| 1533 | + $object->origin = $origin; // deprecated |
|
| 1534 | 1534 | $object->origin_type = $origin; |
| 1535 | 1535 | $object->origin_id = $originid; |
| 1536 | 1536 | |
@@ -1963,7 +1963,7 @@ discard block |
||
| 1963 | 1963 | if (!empty($origin) && !empty($originid)) { |
| 1964 | 1964 | include_once DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php'; |
| 1965 | 1965 | |
| 1966 | - $object->origin = $origin; // deprecated |
|
| 1966 | + $object->origin = $origin; // deprecated |
|
| 1967 | 1967 | $object->origin_type = $origin; |
| 1968 | 1968 | $object->origin_id = $originid; |
| 1969 | 1969 | |
@@ -1989,7 +1989,7 @@ discard block |
||
| 1989 | 1989 | $line->fk_prev_id = $line->id; |
| 1990 | 1990 | $line->fetch_optionals(); |
| 1991 | 1991 | if (getDolGlobalInt('INVOICE_USE_SITUATION') == 2) { |
| 1992 | - $line->situation_percent = $line->get_allprev_progress($object->id);; // get good progress including credit note |
|
| 1992 | + $line->situation_percent = $line->get_allprev_progress($object->id); ; // get good progress including credit note |
|
| 1993 | 1993 | } else { |
| 1994 | 1994 | $line->situation_percent = $line->get_prev_progress($object->id); // get good progress including credit note |
| 1995 | 1995 | } |
@@ -2099,7 +2099,7 @@ discard block |
||
| 2099 | 2099 | } else { |
| 2100 | 2100 | $db->rollback(); |
| 2101 | 2101 | $action = 'create'; |
| 2102 | - $_GET["origin"] = $_POST["origin"]; // Keep GET and POST here ? |
|
| 2102 | + $_GET["origin"] = $_POST["origin"]; // Keep GET and POST here ? |
|
| 2103 | 2103 | $_GET["originid"] = $_POST["originid"]; // Keep GET and POST here ? |
| 2104 | 2104 | setEventMessages($object->error, $object->errors, 'errors'); |
| 2105 | 2105 | } |
@@ -2126,7 +2126,7 @@ discard block |
||
| 2126 | 2126 | $remise_percent = (GETPOST('remiseforalllines') ? GETPOST('remiseforalllines') : 0); |
| 2127 | 2127 | $remise_percent = str_replace('*', '', $remise_percent); |
| 2128 | 2128 | foreach ($object->lines as $line) { |
| 2129 | - $tvatx= $line->tva_tx; |
|
| 2129 | + $tvatx = $line->tva_tx; |
|
| 2130 | 2130 | if (!empty($line->vat_src_code)) { |
| 2131 | 2131 | $tvatx .= ' ('.$line->vat_src_code.')'; |
| 2132 | 2132 | } |
@@ -2646,7 +2646,7 @@ discard block |
||
| 2646 | 2646 | // Define special_code for special lines |
| 2647 | 2647 | $special_code = GETPOSTINT('special_code'); |
| 2648 | 2648 | if ($special_code == 3) { |
| 2649 | - $special_code = 0; // Options should not exists on invoices |
|
| 2649 | + $special_code = 0; // Options should not exists on invoices |
|
| 2650 | 2650 | } |
| 2651 | 2651 | |
| 2652 | 2652 | $line = new FactureLigne($db); |
@@ -3209,7 +3209,7 @@ discard block |
||
| 3209 | 3209 | $subelement = $regs[2]; |
| 3210 | 3210 | } |
| 3211 | 3211 | |
| 3212 | - $dateinvoice = dol_mktime(0, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'), 'tzserver'); // If we enter the 02 january, we need to save the 02 january for server |
|
| 3212 | + $dateinvoice = dol_mktime(0, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'), 'tzserver'); // If we enter the 02 january, we need to save the 02 january for server |
|
| 3213 | 3213 | $date_pointoftax = dol_mktime(0, 0, 0, GETPOSTINT('date_pointoftaxmonth'), GETPOSTINT('date_pointoftaxday'), GETPOSTINT('date_pointoftaxyear'), 'tzserver'); |
| 3214 | 3214 | |
| 3215 | 3215 | if ($element == 'project') { |
@@ -3280,8 +3280,8 @@ discard block |
||
| 3280 | 3280 | $fk_account = (!empty($expesrc->fk_account) ? $expesrc->fk_account : (!empty($soc->fk_account) ? $soc->fk_account : 0)); |
| 3281 | 3281 | |
| 3282 | 3282 | if (isModEnabled('multicurrency')) { |
| 3283 | - $currency_code = (!empty($expesrc->multicurrency_code) ? $expesrc->multicurrency_code : (!empty($soc->multicurrency_code) ? $soc->multicurrency_code : $objectsrc->multicurrency_code)); |
|
| 3284 | - $currency_tx = (!empty($expesrc->multicurrency_tx) ? $expesrc->multicurrency_tx : (!empty($soc->multicurrency_tx) ? $soc->multicurrency_tx : $objectsrc->multicurrency_tx)); |
|
| 3283 | + $currency_code = (!empty($expesrc->multicurrency_code) ? $expesrc->multicurrency_code : (!empty($soc->multicurrency_code) ? $soc->multicurrency_code : $objectsrc->multicurrency_code)); |
|
| 3284 | + $currency_tx = (!empty($expesrc->multicurrency_tx) ? $expesrc->multicurrency_tx : (!empty($soc->multicurrency_tx) ? $soc->multicurrency_tx : $objectsrc->multicurrency_tx)); |
|
| 3285 | 3285 | } |
| 3286 | 3286 | |
| 3287 | 3287 | //Replicate extrafields |
@@ -3374,7 +3374,7 @@ discard block |
||
| 3374 | 3374 | print '<form name="add" action="'.$_SERVER["PHP_SELF"].'" method="POST" id="formtocreate" name="formtocreate">'; |
| 3375 | 3375 | print '<input type="hidden" name="token" value="'.newToken().'">'; |
| 3376 | 3376 | print '<input type="hidden" name="action" id="formtocreateaction" value="add">'; |
| 3377 | - print '<input type="hidden" name="changecompany" value="0">'; // will be set to 1 by javascript so we know post is done after a company change |
|
| 3377 | + print '<input type="hidden" name="changecompany" value="0">'; // will be set to 1 by javascript so we know post is done after a company change |
|
| 3378 | 3378 | if ($soc->id > 0) { |
| 3379 | 3379 | print '<input type="hidden" name="socid" value="'.$soc->id.'">'."\n"; |
| 3380 | 3380 | } |
@@ -3895,8 +3895,8 @@ discard block |
||
| 3895 | 3895 | if ($socid > 0) { |
| 3896 | 3896 | print '<tr><td>'.$langs->trans('DiscountStillRemaining').'</td><td colspan="2">'; |
| 3897 | 3897 | |
| 3898 | - $thirdparty = $soc; // used by object_discounts.tpl.php |
|
| 3899 | - $discount_type = 0; // used by object_discounts.tpl.php |
|
| 3898 | + $thirdparty = $soc; // used by object_discounts.tpl.php |
|
| 3899 | + $discount_type = 0; // used by object_discounts.tpl.php |
|
| 3900 | 3900 | $backtopage = $_SERVER["PHP_SELF"].'?socid='.$thirdparty->id.'&action='.$action.'&origin='.urlencode((string) (GETPOST('origin'))).'&originid='.urlencode((string) (GETPOSTINT('originid'))); |
| 3901 | 3901 | include DOL_DOCUMENT_ROOT.'/core/tpl/object_discounts.tpl.php'; |
| 3902 | 3902 | |
@@ -4418,7 +4418,7 @@ discard block |
||
| 4418 | 4418 | $nbMandated = 0; |
| 4419 | 4419 | foreach ($object->lines as $line) { |
| 4420 | 4420 | $res = $line->fetch_product(); |
| 4421 | - if ($res > 0) { |
|
| 4421 | + if ($res > 0) { |
|
| 4422 | 4422 | if ($line->product->isService() && $line->product->isMandatoryPeriod() && (empty($line->date_start) || empty($line->date_end))) { |
| 4423 | 4423 | $nbMandated++; |
| 4424 | 4424 | break; |
@@ -4627,7 +4627,7 @@ discard block |
||
| 4627 | 4627 | } |
| 4628 | 4628 | // Ref customer |
| 4629 | 4629 | $morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_customer, $object, $usercancreate, 'string', '', 0, 1); |
| 4630 | - $morehtmlref .= $form->editfieldval("RefCustomer", 'ref_client', $object->ref_customer, $object, $usercancreate, 'string'.(getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') ? ':' . getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1); |
|
| 4630 | + $morehtmlref .= $form->editfieldval("RefCustomer", 'ref_client', $object->ref_customer, $object, $usercancreate, 'string'.(getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') ? ':'.getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1); |
|
| 4631 | 4631 | // Thirdparty |
| 4632 | 4632 | $morehtmlref .= '<br>'.$object->thirdparty->getNomUrl(1, 'customer'); |
| 4633 | 4633 | if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { |
@@ -5058,45 +5058,45 @@ discard block |
||
| 5058 | 5058 | } |
| 5059 | 5059 | print '<tr>'; |
| 5060 | 5060 | // Amount HT |
| 5061 | - print '<td class="titlefieldmiddle">' . $langs->trans('AmountHT') . '</td>'; |
|
| 5062 | - print '<td class="nowrap amountcard right">' . price($sign * $object->total_ht, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 5061 | + print '<td class="titlefieldmiddle">'.$langs->trans('AmountHT').'</td>'; |
|
| 5062 | + print '<td class="nowrap amountcard right">'.price($sign * $object->total_ht, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 5063 | 5063 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 5064 | 5064 | // Multicurrency Amount HT |
| 5065 | - print '<td class="nowrap amountcard right">' . price($sign * $object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 5065 | + print '<td class="nowrap amountcard right">'.price($sign * $object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 5066 | 5066 | } |
| 5067 | 5067 | print '</tr>'; |
| 5068 | 5068 | |
| 5069 | 5069 | print '<tr>'; |
| 5070 | 5070 | // Amount VAT |
| 5071 | - print '<td class="titlefieldmiddle">' . $langs->trans('AmountVAT') . '</td>'; |
|
| 5072 | - print '<td class="nowrap amountcard right">' . price($sign * $object->total_tva, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 5071 | + print '<td class="titlefieldmiddle">'.$langs->trans('AmountVAT').'</td>'; |
|
| 5072 | + print '<td class="nowrap amountcard right">'.price($sign * $object->total_tva, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 5073 | 5073 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 5074 | 5074 | // Multicurrency Amount VAT |
| 5075 | - print '<td class="nowrap amountcard right">' . price($sign * $object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 5075 | + print '<td class="nowrap amountcard right">'.price($sign * $object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 5076 | 5076 | } |
| 5077 | 5077 | print '</tr>'; |
| 5078 | 5078 | |
| 5079 | 5079 | // Amount Local Taxes |
| 5080 | 5080 | if (($mysoc->localtax1_assuj == "1" && $mysoc->useLocalTax(1)) || $object->total_localtax1 != 0) { |
| 5081 | 5081 | print '<tr>'; |
| 5082 | - print '<td class="titlefieldmiddle">' . $langs->transcountry("AmountLT1", $mysoc->country_code) . '</td>'; |
|
| 5083 | - print '<td class="nowrap amountcard right">' . price($sign * $object->total_localtax1, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 5082 | + print '<td class="titlefieldmiddle">'.$langs->transcountry("AmountLT1", $mysoc->country_code).'</td>'; |
|
| 5083 | + print '<td class="nowrap amountcard right">'.price($sign * $object->total_localtax1, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 5084 | 5084 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 5085 | 5085 | $object->multicurrency_total_localtax1 = (float) price2num($object->total_localtax1 * $object->multicurrency_tx, 'MT'); |
| 5086 | 5086 | |
| 5087 | - print '<td class="nowrap amountcard right">' . price($sign * $object->multicurrency_total_localtax1, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 5087 | + print '<td class="nowrap amountcard right">'.price($sign * $object->multicurrency_total_localtax1, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 5088 | 5088 | } |
| 5089 | 5089 | print '</tr>'; |
| 5090 | 5090 | } |
| 5091 | 5091 | |
| 5092 | 5092 | if (($mysoc->localtax2_assuj == "1" && $mysoc->useLocalTax(2)) || $object->total_localtax2 != 0) { |
| 5093 | 5093 | print '<tr>'; |
| 5094 | - print '<td>' . $langs->transcountry("AmountLT2", $mysoc->country_code) . '</td>'; |
|
| 5095 | - print '<td class="nowrap amountcard right">' . price($sign * $object->total_localtax2, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 5094 | + print '<td>'.$langs->transcountry("AmountLT2", $mysoc->country_code).'</td>'; |
|
| 5095 | + print '<td class="nowrap amountcard right">'.price($sign * $object->total_localtax2, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 5096 | 5096 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 5097 | 5097 | $object->multicurrency_total_localtax2 = (float) price2num($object->total_localtax2 * $object->multicurrency_tx, 'MT'); |
| 5098 | 5098 | |
| 5099 | - print '<td class="nowrap amountcard right">' . price($sign * $object->multicurrency_total_localtax2, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 5099 | + print '<td class="nowrap amountcard right">'.price($sign * $object->multicurrency_total_localtax2, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 5100 | 5100 | } |
| 5101 | 5101 | print '</tr>'; |
| 5102 | 5102 | } |
@@ -5156,11 +5156,11 @@ discard block |
||
| 5156 | 5156 | |
| 5157 | 5157 | print '<tr>'; |
| 5158 | 5158 | // Amount TTC |
| 5159 | - print '<td>' . $langs->trans('AmountTTC') . '</td>'; |
|
| 5160 | - print '<td class="nowrap amountcard right">' . price($sign * $object->total_ttc, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 5159 | + print '<td>'.$langs->trans('AmountTTC').'</td>'; |
|
| 5160 | + print '<td class="nowrap amountcard right">'.price($sign * $object->total_ttc, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 5161 | 5161 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 5162 | 5162 | // Multicurrency Amount TTC |
| 5163 | - print '<td class="nowrap amountcard right">' . price($sign * $object->multicurrency_total_ttc, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 5163 | + print '<td class="nowrap amountcard right">'.price($sign * $object->multicurrency_total_ttc, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 5164 | 5164 | } |
| 5165 | 5165 | print '</tr>'; |
| 5166 | 5166 | |
@@ -5819,7 +5819,7 @@ discard block |
||
| 5819 | 5819 | $langs->load("contracts"); |
| 5820 | 5820 | |
| 5821 | 5821 | if ($usercancreatecontract) { |
| 5822 | - print '<a class="butAction" href="' . DOL_URL_ROOT . '/contrat/card.php?action=create&origin=' . $object->element . '&originid=' . $object->id . '&socid=' . $object->socid . '">' . $langs->trans('AddContract') . '</a>'; |
|
| 5822 | + print '<a class="butAction" href="'.DOL_URL_ROOT.'/contrat/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid.'">'.$langs->trans('AddContract').'</a>'; |
|
| 5823 | 5823 | } |
| 5824 | 5824 | } |
| 5825 | 5825 | } |
@@ -6043,7 +6043,7 @@ discard block |
||
| 6043 | 6043 | if ($usercandelete || ($usercancreate && $isErasable == 1)) { // isErasable = 1 means draft with temporary ref (draft can always be deleted with no need of permissions) |
| 6044 | 6044 | $enableDelete = false; |
| 6045 | 6045 | $deleteHref = '#'; |
| 6046 | - if ($isErasable > 0 && ! $objectidnext) { |
|
| 6046 | + if ($isErasable > 0 && !$objectidnext) { |
|
| 6047 | 6047 | $deleteHref = $_SERVER["PHP_SELF"].'?facid='.$object->id.'&action=delete&token='.newToken(); |
| 6048 | 6048 | $enableDelete = true; |
| 6049 | 6049 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $result = $object->fetch($id, $ref); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | -$permissiontoadd = $user->hasRight('contrat', 'creer'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
| 96 | +$permissiontoadd = $user->hasRight('contrat', 'creer'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
| 97 | 97 | |
| 98 | 98 | $result = restrictedArea($user, 'contrat', $object->id); |
| 99 | 99 | |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | } |
| 431 | 431 | } |
| 432 | 432 | if (empty($nbemail)) { |
| 433 | - $nbemail .= ' '.img_warning($langs->trans('ToAddRecipientsChooseHere'));//.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>'; |
|
| 433 | + $nbemail .= ' '.img_warning($langs->trans('ToAddRecipientsChooseHere')); //.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>'; |
|
| 434 | 434 | } |
| 435 | 435 | if ($text) { |
| 436 | 436 | // @phan-suppress-next-line PhanPluginSuspiciousParamPosition |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | } |
| 515 | 515 | print '</div>'; |
| 516 | 516 | print '<div class="tagtd"> </div>'; |
| 517 | - print '</div>'; // End tr |
|
| 517 | + print '</div>'; // End tr |
|
| 518 | 518 | |
| 519 | 519 | clearstatcache(); |
| 520 | 520 | |
@@ -585,12 +585,12 @@ discard block |
||
| 585 | 585 | } |
| 586 | 586 | print img_object($langs->trans("EmailingTargetSelector").': '.get_class($obj), $obj->picto, 'class="valignmiddle width25 size15x"'); |
| 587 | 587 | print '</div>'; |
| 588 | - print '<div class="tagtd valignmiddle">'; // style="height: 4em" |
|
| 588 | + print '<div class="tagtd valignmiddle">'; // style="height: 4em" |
|
| 589 | 589 | print $obj->getDesc(); |
| 590 | 590 | print '</div>'; |
| 591 | 591 | |
| 592 | 592 | try { |
| 593 | - $obj->evenunsubscribe = $object->evenunsubscribe; // Set flag to include/exclude email that has opt-out. |
|
| 593 | + $obj->evenunsubscribe = $object->evenunsubscribe; // Set flag to include/exclude email that has opt-out. |
|
| 594 | 594 | |
| 595 | 595 | $nbofrecipient = $obj->getNbOfRecipients(''); |
| 596 | 596 | } catch (Exception $e) { |
@@ -643,7 +643,7 @@ discard block |
||
| 643 | 643 | $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook |
| 644 | 644 | print $hookmanager->resPrint; |
| 645 | 645 | |
| 646 | - print '</div>'; // End table |
|
| 646 | + print '</div>'; // End table |
|
| 647 | 647 | print '</div>'; |
| 648 | 648 | |
| 649 | 649 | print '<br>'; |
@@ -750,7 +750,7 @@ discard block |
||
| 750 | 750 | $arrayofmassactions['reset_target'] = img_picto('', 'refresh', 'class="pictofixedwidth"').$langs->trans("ResetMailingTargetMassaction"); |
| 751 | 751 | } |
| 752 | 752 | $massactionbutton = $form->selectMassAction('', $arrayofmassactions); |
| 753 | - $morehtmlcenter .= $massactionbutton .'<br>'; |
|
| 753 | + $morehtmlcenter .= $massactionbutton.'<br>'; |
|
| 754 | 754 | |
| 755 | 755 | if ($object->status == $object::STATUS_DRAFT) { |
| 756 | 756 | $morehtmlcenter = '<span class="opacitymedium hideonsmartphone">'.$langs->trans("ToClearAllRecipientsClickHere").'</span> <a href="'.$_SERVER["PHP_SELF"].'?clearlist=1&id='.$object->id.'" class="button reposition smallpaddingimp">'.$langs->trans("TargetsReset").'</a>'; |
@@ -952,7 +952,7 @@ discard block |
||
| 952 | 952 | print '<td class="center nowraponall">'; |
| 953 | 953 | if ($obj->status != $object::STATUS_DRAFT) { // If status of target line is not draft |
| 954 | 954 | // Date sent |
| 955 | - print $obj->date_envoi; // @TODO Must store date in date format |
|
| 955 | + print $obj->date_envoi; // @TODO Must store date in date format |
|
| 956 | 956 | } |
| 957 | 957 | print '</td>'; |
| 958 | 958 | |
@@ -579,7 +579,7 @@ discard block |
||
| 579 | 579 | $maxfilesizearray = getMaxFileSizeArray(); |
| 580 | 580 | $maxmin = $maxfilesizearray['maxmin']; |
| 581 | 581 | if ($maxmin > 0) { |
| 582 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 582 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 583 | 583 | } |
| 584 | 584 | print '<input type="file" name="userfile" size="20" maxlength="80"> '; |
| 585 | 585 | $out = (!getDolGlobalString('MAIN_UPLOAD_DOC') ? ' disabled' : ''); |
@@ -692,17 +692,17 @@ discard block |
||
| 692 | 692 | $limit = getDolGlobalString('PRODUIT_LIMIT_SIZE'); |
| 693 | 693 | } |
| 694 | 694 | print img_picto($langs->trans("Product"), 'product', 'class="paddingright"'); |
| 695 | -print $form->select_produits((isset($id_product)?$id_product:0), 'productid', $filtertype, $limit, 0, -1, 2, '', 1, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1, '', null, 1); |
|
| 695 | +print $form->select_produits((isset($id_product) ? $id_product : 0), 'productid', $filtertype, $limit, 0, -1, 2, '', 1, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1, '', null, 1); |
|
| 696 | 696 | print '</td>'; |
| 697 | 697 | // Batch number |
| 698 | 698 | if (isModEnabled('productbatch')) { |
| 699 | 699 | print '<td class="nowraponall">'; |
| 700 | 700 | print img_picto($langs->trans("LotSerial"), 'lot', 'class="paddingright"'); |
| 701 | - print '<input type="text" name="batch" class="flat maxwidth75" value="'.dol_escape_htmltag((isset($batch)?$batch:'')).'">'; |
|
| 701 | + print '<input type="text" name="batch" class="flat maxwidth75" value="'.dol_escape_htmltag((isset($batch) ? $batch : '')).'">'; |
|
| 702 | 702 | print '</td>'; |
| 703 | 703 | } |
| 704 | 704 | // Qty |
| 705 | -print '<td class="right"><input type="text" class="flat maxwidth50 right" name="qty" value="'.price2num((float) (isset($qty)?$qty:0), 'MS').'"></td>'; |
|
| 705 | +print '<td class="right"><input type="text" class="flat maxwidth50 right" name="qty" value="'.price2num((float) (isset($qty) ? $qty : 0), 'MS').'"></td>'; |
|
| 706 | 706 | // Button to add line |
| 707 | 707 | print '<td class="right"><input type="submit" class="button" name="addline" value="'.dol_escape_htmltag($titletoadd).'"></td>'; |
| 708 | 708 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | if ($user->socid) { |
| 48 | 48 | $socid = $user->socid; |
| 49 | 49 | } |
| 50 | -$hookmanager->initHooks(array('invoicesuppliercardcontact','invoicesuppliercontactcard', 'globalcard')); |
|
| 50 | +$hookmanager->initHooks(array('invoicesuppliercardcontact', 'invoicesuppliercontactcard', 'globalcard')); |
|
| 51 | 51 | $result = restrictedArea($user, 'fournisseur', $id, 'facture_fourn', 'facture'); |
| 52 | 52 | |
| 53 | 53 | $object = new FactureFournisseur($db); |
@@ -85,8 +85,8 @@ |
||
| 85 | 85 | accessforbidden(); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | -$usercancreate = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer")); |
|
| 89 | -$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php |
|
| 88 | +$usercancreate = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer")); |
|
| 89 | +$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php |
|
| 90 | 90 | |
| 91 | 91 | |
| 92 | 92 | /* |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | $usercanedit = $user->hasRight('website', 'write'); |
| 359 | -$permissiontoadd = $user->hasRight('website', 'write'); // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles |
|
| 359 | +$permissiontoadd = $user->hasRight('website', 'write'); // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles |
|
| 360 | 360 | $permissiontodelete = $user->hasRight('website', 'delete'); |
| 361 | 361 | |
| 362 | 362 | |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | if ($sortorder) { |
| 424 | 424 | $backtopage .= '&sortorder='.urlencode($sortorder); |
| 425 | 425 | } |
| 426 | -include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; // This manage 'sendit', 'confirm_deletefile', 'renamefile' action when submitting new file. |
|
| 426 | +include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; // This manage 'sendit', 'confirm_deletefile', 'renamefile' action when submitting new file. |
|
| 427 | 427 | |
| 428 | 428 | $backtopage = $savbacktopage; |
| 429 | 429 | //var_dump($backtopage); |
@@ -1152,7 +1152,7 @@ discard block |
||
| 1152 | 1152 | $objectpage->image = GETPOST('WEBSITE_IMAGE', 'alpha'); |
| 1153 | 1153 | $objectpage->keywords = str_replace(array('<', '>'), '', GETPOST('WEBSITE_KEYWORDS', 'alphanohtml')); |
| 1154 | 1154 | $objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09'); |
| 1155 | - $objectpage->htmlheader = GETPOST('htmlheader', 'none'); // Must accept tags like '<script>' and '<link>' |
|
| 1155 | + $objectpage->htmlheader = GETPOST('htmlheader', 'none'); // Must accept tags like '<script>' and '<link>' |
|
| 1156 | 1156 | $objectpage->author_alias = GETPOST('WEBSITE_AUTHORALIAS', 'alphanohtml'); |
| 1157 | 1157 | $objectpage->object_type = GETPOST('WEBSITE_OBJECTCLASS'); |
| 1158 | 1158 | $objectpage->fk_object = GETPOST('WEBSITE_OBJECTID'); |
@@ -1185,7 +1185,7 @@ discard block |
||
| 1185 | 1185 | $content = ''; |
| 1186 | 1186 | if (GETPOSTISSET('content')) { |
| 1187 | 1187 | //$content = GETPOST('content', 'restricthtmlallowunvalid'); // @TODO Use a restricthtmlallowunvalidwithphp |
| 1188 | - $content = GETPOST('content', 'none'); // @TODO Use a restricthtmlallowunvalidwithphp |
|
| 1188 | + $content = GETPOST('content', 'none'); // @TODO Use a restricthtmlallowunvalidwithphp |
|
| 1189 | 1189 | |
| 1190 | 1190 | $objectpage->content = make_substitutions($content, $substitutionarray); |
| 1191 | 1191 | } else { |
@@ -1558,7 +1558,7 @@ discard block |
||
| 1558 | 1558 | $error++; |
| 1559 | 1559 | setEventMessages($langs->trans('ErrorFaviconMustBeASquaredImage'), array(), 'errors'); |
| 1560 | 1560 | } |
| 1561 | - if (! $error && ($filesize[0] != 16 && $filesize[0] != 32 && $filesize[0] != 64)) { |
|
| 1561 | + if (!$error && ($filesize[0] != 16 && $filesize[0] != 32 && $filesize[0] != 64)) { |
|
| 1562 | 1562 | $error++; |
| 1563 | 1563 | setEventMessages($langs->trans('ErrorFaviconSize'), array(), 'errors'); |
| 1564 | 1564 | } |
@@ -1570,7 +1570,7 @@ discard block |
||
| 1570 | 1570 | if (!GETPOSTISSET('updateandstay')) { // If we click on "Save And Stay", we don not make the redirect |
| 1571 | 1571 | $action = 'preview'; |
| 1572 | 1572 | if ($backtopage) { |
| 1573 | - $backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url |
|
| 1573 | + $backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url |
|
| 1574 | 1574 | header("Location: ".$backtopage); |
| 1575 | 1575 | exit; |
| 1576 | 1576 | } |
@@ -1594,7 +1594,7 @@ discard block |
||
| 1594 | 1594 | } |
| 1595 | 1595 | |
| 1596 | 1596 | |
| 1597 | - $dataposted = trim(GETPOST('WEBSITE_HTML_HEADER', 'restricthtmlallowlinkscript')); // Must accept tags like '<script>' and '<link>' |
|
| 1597 | + $dataposted = trim(GETPOST('WEBSITE_HTML_HEADER', 'restricthtmlallowlinkscript')); // Must accept tags like '<script>' and '<link>' |
|
| 1598 | 1598 | $dataposted = preg_replace(array('/<html>\n*/ims', '/<\/html>\n*/ims'), array('', ''), $dataposted); |
| 1599 | 1599 | $dataposted = str_replace('<?=', '<?php', $dataposted); |
| 1600 | 1600 | |
@@ -1603,7 +1603,7 @@ discard block |
||
| 1603 | 1603 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1604 | 1604 | |
| 1605 | 1605 | // Security analysis |
| 1606 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1606 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1607 | 1607 | |
| 1608 | 1608 | if (!$errorphpcheck) { |
| 1609 | 1609 | $htmlheadercontent = ''; |
@@ -1641,7 +1641,7 @@ discard block |
||
| 1641 | 1641 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1642 | 1642 | |
| 1643 | 1643 | // Security analysis |
| 1644 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1644 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1645 | 1645 | |
| 1646 | 1646 | if (!$errorphpcheck) { |
| 1647 | 1647 | $csscontent = ''; |
@@ -1684,7 +1684,7 @@ discard block |
||
| 1684 | 1684 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1685 | 1685 | |
| 1686 | 1686 | // Security analysis |
| 1687 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1687 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1688 | 1688 | |
| 1689 | 1689 | if (!$errorphpcheck) { |
| 1690 | 1690 | $jscontent = ''; |
@@ -1722,7 +1722,7 @@ discard block |
||
| 1722 | 1722 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1723 | 1723 | |
| 1724 | 1724 | // Security analysis |
| 1725 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1725 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1726 | 1726 | |
| 1727 | 1727 | if (!$errorphpcheck) { |
| 1728 | 1728 | $robotcontent = ''; |
@@ -1760,7 +1760,7 @@ discard block |
||
| 1760 | 1760 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1761 | 1761 | |
| 1762 | 1762 | // Security analysis |
| 1763 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1763 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1764 | 1764 | |
| 1765 | 1765 | if (!$errorphpcheck) { |
| 1766 | 1766 | $htaccesscontent = ''; |
@@ -1784,7 +1784,7 @@ discard block |
||
| 1784 | 1784 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1785 | 1785 | |
| 1786 | 1786 | // Security analysis |
| 1787 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1787 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1788 | 1788 | |
| 1789 | 1789 | if (!$errorphpcheck) { |
| 1790 | 1790 | $manifestjsoncontent = ''; |
@@ -1823,7 +1823,7 @@ discard block |
||
| 1823 | 1823 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1824 | 1824 | |
| 1825 | 1825 | // Security analysis |
| 1826 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1826 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1827 | 1827 | |
| 1828 | 1828 | if (!$errorphpcheck) { |
| 1829 | 1829 | $readmecontent = ''; |
@@ -1862,7 +1862,7 @@ discard block |
||
| 1862 | 1862 | $phpfullcodestring = dolKeepOnlyPhpCode($dataposted); |
| 1863 | 1863 | |
| 1864 | 1864 | // Security analysis |
| 1865 | - $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1865 | + $errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages |
|
| 1866 | 1866 | |
| 1867 | 1867 | if (!$errorphpcheck) { |
| 1868 | 1868 | $licensecontent = ''; |
@@ -1904,7 +1904,7 @@ discard block |
||
| 1904 | 1904 | if (!GETPOSTISSET('updateandstay')) { // If we click on "Save And Stay", we don not make the redirect |
| 1905 | 1905 | $action = 'preview'; |
| 1906 | 1906 | if ($backtopage) { |
| 1907 | - $backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url |
|
| 1907 | + $backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url |
|
| 1908 | 1908 | header("Location: ".$backtopage); |
| 1909 | 1909 | exit; |
| 1910 | 1910 | } |
@@ -1923,7 +1923,7 @@ discard block |
||
| 1923 | 1923 | |
| 1924 | 1924 | $object->fk_default_home = $pageid; |
| 1925 | 1925 | $res = $object->update($user); |
| 1926 | - if (! ($res > 0)) { |
|
| 1926 | + if (!($res > 0)) { |
|
| 1927 | 1927 | $error++; |
| 1928 | 1928 | setEventMessages($object->error, $object->errors, 'errors'); |
| 1929 | 1929 | } |
@@ -2038,7 +2038,7 @@ discard block |
||
| 2038 | 2038 | $objectpage->image = GETPOST('WEBSITE_IMAGE', 'alpha'); |
| 2039 | 2039 | $objectpage->keywords = str_replace(array('<', '>'), '', GETPOST('WEBSITE_KEYWORDS', 'alphanohtml')); |
| 2040 | 2040 | $objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09'); |
| 2041 | - $objectpage->htmlheader = trim(GETPOST('htmlheader', 'none')); // Must accept tags like '<script>' and '<link>' |
|
| 2041 | + $objectpage->htmlheader = trim(GETPOST('htmlheader', 'none')); // Must accept tags like '<script>' and '<link>' |
|
| 2042 | 2042 | $objectpage->fk_page = (GETPOSTINT('pageidfortranslation') > 0 ? GETPOSTINT('pageidfortranslation') : 0); |
| 2043 | 2043 | $objectpage->author_alias = trim(GETPOST('WEBSITE_AUTHORALIAS', 'alphanohtml')); |
| 2044 | 2044 | $objectpage->object_type = GETPOST('WEBSITE_OBJECTCLASS', 'alpha'); |
@@ -2314,7 +2314,7 @@ discard block |
||
| 2314 | 2314 | |
| 2315 | 2315 | $phpfullcodestringold = dolKeepOnlyPhpCode($objectpage->content); |
| 2316 | 2316 | |
| 2317 | - $objectpage->content = GETPOST('PAGE_CONTENT', 'none'); // any HTML content allowed |
|
| 2317 | + $objectpage->content = GETPOST('PAGE_CONTENT', 'none'); // any HTML content allowed |
|
| 2318 | 2318 | |
| 2319 | 2319 | $phpfullcodestring = dolKeepOnlyPhpCode($objectpage->content); |
| 2320 | 2320 | |
@@ -2535,7 +2535,7 @@ discard block |
||
| 2535 | 2535 | $fileofzip = ''; |
| 2536 | 2536 | if (GETPOSTISSET('templateuserfile')) { |
| 2537 | 2537 | // Case we selected one template |
| 2538 | - $fileofzip = DOL_DATA_ROOT.'/doctemplates/websites/'.GETPOST('templateuserfile', 'alpha'); // $fileofzip will be sanitized later into the importWebSite() |
|
| 2538 | + $fileofzip = DOL_DATA_ROOT.'/doctemplates/websites/'.GETPOST('templateuserfile', 'alpha'); // $fileofzip will be sanitized later into the importWebSite() |
|
| 2539 | 2539 | } elseif (!empty($_FILES) && is_array($_FILES['userfile'])) { |
| 2540 | 2540 | // Case we upload a new template |
| 2541 | 2541 | if (is_array($_FILES['userfile']['tmp_name'])) { |
@@ -2617,7 +2617,7 @@ discard block |
||
| 2617 | 2617 | if ($website->virtualhost) { |
| 2618 | 2618 | $domainname = $website->virtualhost; |
| 2619 | 2619 | } |
| 2620 | - if (! preg_match('/^http/i', $domainname)) { |
|
| 2620 | + if (!preg_match('/^http/i', $domainname)) { |
|
| 2621 | 2621 | $domainname = 'https://'.$domainname; |
| 2622 | 2622 | } |
| 2623 | 2623 | |
@@ -2683,7 +2683,7 @@ discard block |
||
| 2683 | 2683 | $url->appendChild($lastmod); |
| 2684 | 2684 | // Add suggested frequency for refresh |
| 2685 | 2685 | if (getDolGlobalString('WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ')) { |
| 2686 | - $changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values |
|
| 2686 | + $changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values |
|
| 2687 | 2687 | $url->appendChild($changefreq); |
| 2688 | 2688 | } |
| 2689 | 2689 | // Add higher priority for home page |
@@ -2788,7 +2788,7 @@ discard block |
||
| 2788 | 2788 | $url->appendChild($lastmod); |
| 2789 | 2789 | // Add suggested frequency for refresh |
| 2790 | 2790 | if (getDolGlobalString('WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ')) { |
| 2791 | - $changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values |
|
| 2791 | + $changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values |
|
| 2792 | 2792 | $url->appendChild($changefreq); |
| 2793 | 2793 | } |
| 2794 | 2794 | |
@@ -3076,11 +3076,11 @@ discard block |
||
| 3076 | 3076 | |
| 3077 | 3077 | // // Export web site |
| 3078 | 3078 | $extraCssClass = getDolGlobalString('WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE') ? 'hideobject' : ''; |
| 3079 | - print '<input type="submit" class="button bordertransp ' . $extraCssClass . '" ' . $disabledexport . ' value="' . dol_escape_htmltag($exportlabel) . '" name="exportsite">'; |
|
| 3079 | + print '<input type="submit" class="button bordertransp '.$extraCssClass.'" '.$disabledexport.' value="'.dol_escape_htmltag($exportlabel).'" name="exportsite">'; |
|
| 3080 | 3080 | |
| 3081 | 3081 | if (getDolGlobalString('WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE')) { |
| 3082 | 3082 | // Overwrite template in sources |
| 3083 | - $overwriteGitUrl = $_SERVER["PHP_SELF"] . '?action=overwritesite&website=' . urlencode($website->ref); |
|
| 3083 | + $overwriteGitUrl = $_SERVER["PHP_SELF"].'?action=overwritesite&website='.urlencode($website->ref); |
|
| 3084 | 3084 | print dolButtonToOpenExportDialog('exportpopup', $langs->trans('ExportOptions'), $langs->trans('ExportSite'), 'exportsite', $overwriteGitUrl, $website); |
| 3085 | 3085 | //print '<a href="'.$_SERVER["PHP_SELF"].'?action=overwritesite&website='.urlencode($website->ref).'" class="button bordertransp hideobject" title="'.dol_escape_htmltag($langs->trans("ExportIntoGIT").". Directory ".getDolGlobalString('WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE')).'">'.dol_escape_htmltag($langs->trans("ExportIntoGIT")).'</a>'; |
| 3086 | 3086 | } |
@@ -3438,7 +3438,7 @@ discard block |
||
| 3438 | 3438 | print '<!-- button EditInLine and ShowSubcontainers -->'."\n"; |
| 3439 | 3439 | print '<div class="websiteselectionsection inline-block">'; |
| 3440 | 3440 | |
| 3441 | - print '<div class="inline-block marginrightonly">'; // Button includes dynamic content |
|
| 3441 | + print '<div class="inline-block marginrightonly">'; // Button includes dynamic content |
|
| 3442 | 3442 | print $langs->trans("ShowSubcontainers"); |
| 3443 | 3443 | if (!getDolGlobalString('WEBSITE_SUBCONTAINERSINLINE')) { |
| 3444 | 3444 | print '<a class="nobordertransp nohoverborder marginleftonlyshort valignmiddle"'.$disabled.' href="'.$_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$websitepage->id.'&action=setshowsubcontainers&token='.newToken().'">'.img_picto($langs->trans("ShowSubContainersOnOff", $langs->transnoentitiesnoconv("Off")), 'switch_off', '', false, 0, 0, '', 'nomarginleft').'</a>'; |
@@ -3447,7 +3447,7 @@ discard block |
||
| 3447 | 3447 | } |
| 3448 | 3448 | print '</div>'; |
| 3449 | 3449 | |
| 3450 | - print '<div class="inline-block marginrightonly">'; // Button edit inline |
|
| 3450 | + print '<div class="inline-block marginrightonly">'; // Button edit inline |
|
| 3451 | 3451 | |
| 3452 | 3452 | print '<span id="switchckeditorinline">'."\n"; |
| 3453 | 3453 | // Enable CKEditor inline with js on section and div with conteneditable=true |
@@ -3539,15 +3539,15 @@ discard block |
||
| 3539 | 3539 | // Sending data via AJAX |
| 3540 | 3540 | $.ajax({ |
| 3541 | 3541 | type: \'POST\', |
| 3542 | - url: \'' . DOL_URL_ROOT . '/core/ajax/editinline.php\', |
|
| 3542 | + url: \'' . DOL_URL_ROOT.'/core/ajax/editinline.php\', |
|
| 3543 | 3543 | data: { |
| 3544 | 3544 | website_ref: \''.$website->ref.'\', |
| 3545 | - page_id: \'' . $websitepage->id . '\', |
|
| 3545 | + page_id: \'' . $websitepage->id.'\', |
|
| 3546 | 3546 | content: content, |
| 3547 | 3547 | element_id: elementId, |
| 3548 | 3548 | element_type: elementType, |
| 3549 | 3549 | action: \'updatedElementContent\', |
| 3550 | - token: \'' . newToken() . '\' |
|
| 3550 | + token: \'' . newToken().'\' |
|
| 3551 | 3551 | }, |
| 3552 | 3552 | success: function(response) { |
| 3553 | 3553 | console.log(response); |
@@ -3633,7 +3633,7 @@ discard block |
||
| 3633 | 3633 | } else { |
| 3634 | 3634 | $disabled = ''; |
| 3635 | 3635 | $title = ''; |
| 3636 | - $url = $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&pageid='.((int) $websitepage->id).'&website='.urlencode($website->ref); // action=delete for webpage, deletesite for website |
|
| 3636 | + $url = $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&pageid='.((int) $websitepage->id).'&website='.urlencode($website->ref); // action=delete for webpage, deletesite for website |
|
| 3637 | 3637 | } |
| 3638 | 3638 | print '<a href="'.$url.'" class="button buttonDelete bordertransp'.($disabled ? ' disabled' : '').'"'.$disabled.' title="'.dol_escape_htmltag($title).'">'.img_picto('', 'delete', 'class=""').'<span class="hideonsmartphone paddingleft">'.$langs->trans("Delete").'</span></a>'; |
| 3639 | 3639 | print '</span>'; |
@@ -3822,7 +3822,7 @@ discard block |
||
| 3822 | 3822 | // Clean the php htmlheader file to remove php code and get only html part |
| 3823 | 3823 | $htmlheadercontent = preg_replace('/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims', '', $htmlheadercontent); |
| 3824 | 3824 | } else { |
| 3825 | - $htmlheadercontent = GETPOST('WEBSITE_HTML_HEADER', 'none'); // Must accept tags like '<script>' and '<link>' |
|
| 3825 | + $htmlheadercontent = GETPOST('WEBSITE_HTML_HEADER', 'none'); // Must accept tags like '<script>' and '<link>' |
|
| 3826 | 3826 | } |
| 3827 | 3827 | if (!trim($htmlheadercontent)) { |
| 3828 | 3828 | $htmlheadercontent = "<html>\n"; |
@@ -3853,7 +3853,7 @@ discard block |
||
| 3853 | 3853 | // Clean the php htaccesscontent file to remove php code and get only html part |
| 3854 | 3854 | $htaccesscontent = preg_replace('/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims', '', $htaccesscontent); |
| 3855 | 3855 | } else { |
| 3856 | - $htaccesscontent = GETPOST('WEBSITE_HTACCESS', 'nohtml'); // We must use 'nohtml' and not 'alphanohtml' because we must accept " |
|
| 3856 | + $htaccesscontent = GETPOST('WEBSITE_HTACCESS', 'nohtml'); // We must use 'nohtml' and not 'alphanohtml' because we must accept " |
|
| 3857 | 3857 | } |
| 3858 | 3858 | if (!trim($htaccesscontent)) { |
| 3859 | 3859 | $htaccesscontent .= "# Order allow,deny\n"; |
@@ -3954,7 +3954,7 @@ discard block |
||
| 3954 | 3954 | $maxfilesizearray = getMaxFileSizeArray(); |
| 3955 | 3955 | $maxmin = $maxfilesizearray['maxmin']; |
| 3956 | 3956 | if ($maxmin > 0) { |
| 3957 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 3957 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 3958 | 3958 | } |
| 3959 | 3959 | print '<input type="file" class="flat minwidth300" name="addedfile" id="addedfile"/>'; |
| 3960 | 3960 | |
@@ -4211,7 +4211,7 @@ discard block |
||
| 4211 | 4211 | $maxfilesizearray = getMaxFileSizeArray(); |
| 4212 | 4212 | $maxmin = $maxfilesizearray['maxmin']; |
| 4213 | 4213 | if ($maxmin > 0) { |
| 4214 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 4214 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 4215 | 4215 | } |
| 4216 | 4216 | print '<input class="flat minwidth400" type="file" name="userfile[]" accept=".zip">'; |
| 4217 | 4217 | print '<input type="submit" class="button small" name="buttonsubmitimportfile" value="'.dol_escape_htmltag($langs->trans("Upload")).'">'; |
@@ -4867,7 +4867,7 @@ discard block |
||
| 4867 | 4867 | |
| 4868 | 4868 | |
| 4869 | 4869 | $module = 'medias'; |
| 4870 | - $formalreadyopen = 2; // So the form to submit a new file will not be open another time inside the core/tpl/filemanager.tpl.php |
|
| 4870 | + $formalreadyopen = 2; // So the form to submit a new file will not be open another time inside the core/tpl/filemanager.tpl.php |
|
| 4871 | 4871 | if (empty($url)) { |
| 4872 | 4872 | $url = DOL_URL_ROOT.'/website/index.php'; // Must be an url without param |
| 4873 | 4873 | } |
@@ -5102,8 +5102,8 @@ discard block |
||
| 5102 | 5102 | print getTitleFieldOfList("Categories", 0, $_SERVER['PHP_SELF'], '', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; |
| 5103 | 5103 | print getTitleFieldOfList("", 0, $_SERVER['PHP_SELF']); |
| 5104 | 5104 | print getTitleFieldOfList("UserCreation", 0, $_SERVER['PHP_SELF'], 'fk_user_creat', '', $param, '', $sortfield, $sortorder, '')."\n"; |
| 5105 | - print getTitleFieldOfList("DateCreation", 0, $_SERVER['PHP_SELF'], 'date_creation', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; // Date creation |
|
| 5106 | - print getTitleFieldOfList("DateLastModification", 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; // Date last modif |
|
| 5105 | + print getTitleFieldOfList("DateCreation", 0, $_SERVER['PHP_SELF'], 'date_creation', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; // Date creation |
|
| 5106 | + print getTitleFieldOfList("DateLastModification", 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; // Date last modif |
|
| 5107 | 5107 | print getTitleFieldOfList("", 0, $_SERVER['PHP_SELF']); |
| 5108 | 5108 | // Action column |
| 5109 | 5109 | if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { |