Upgrade code - step 1

This commit is contained in:
Fernando Ontiveros
2025-03-27 12:06:06 +00:00
parent fbd92c5964
commit 7f3ee186de
47635 changed files with 5941896 additions and 1779 deletions

View File

@@ -460,7 +460,7 @@ if (Bootstrap::virtualURI($_SERVER['REQUEST_URI'], $virtualURITable, $realPath))
die();
break;
case 'errorFile':
header('Status: 404');
ob_start();
header("location: /errors/error404.php?url=" . urlencode($_SERVER['REQUEST_URI']));
if (DEBUG_TIME_LOG) {
Bootstrap::logTimeByPage();
@@ -486,7 +486,6 @@ $arrayFriendlyUri['cases/opencase'] = '/^[\w\-]{32}$/';
Bootstrap::parseURI(getenv('REQUEST_URI'), $arrayFriendlyUri);
if (SYS_TARGET === false) {
header('Status: 404');
header('Location: /errors/error404.php?url=' . urlencode($_SERVER['REQUEST_URI']));
exit(0);
}
@@ -558,7 +557,6 @@ if (!defined('PATH_DATA') || !file_exists(PATH_DATA)) {
$installer->call($controllerAction);
} else {
$_SESSION['phpFileNotFound'] = $_SERVER['REQUEST_URI'];
header('Status: 404');
header("location: /errors/error404.php?url=" . urlencode($_SERVER['REQUEST_URI']));
}
die();
@@ -612,7 +610,6 @@ if (defined('SYS_TEMP') && SYS_TEMP != '') {
Bootstrap::SendTemporalMessage('ID_NOT_WORKSPACE', "error");
Bootstrap::header('location: /sys/' . SYS_LANG . '/' . SYS_SKIN . '/main/sysLogin?errno=2');
} else {
header('Status: 404');
header('location: /errors/error404.php?url=' . urlencode($_SERVER['REQUEST_URI']));
}
die();
@@ -904,7 +901,6 @@ if (substr(SYS_COLLECTION, 0, 8) === 'gulliver') {
if (!$isControllerCall && !file_exists($phpFile)) {
$_SESSION['phpFileNotFound'] = $_SERVER['REQUEST_URI'];
header('Status: 404');
header("location: /errors/error404.php?url=" . urlencode($_SERVER['REQUEST_URI']));
die();
}