N°2060 [WIP] Initialisation of the portal application

This commit is contained in:
Molkobain
2019-05-28 12:03:55 +02:00
parent 895abde39c
commit 0867d8a3c4
168 changed files with 6988 additions and 1033 deletions

View File

@@ -28,6 +28,13 @@
* - PortalDispatcher uses the new url "pages/exec.php?exec_module=itop-portal-base&exec_page=index.php&portal_id=itop-portal"
* - Portal xml has a //properties/urlmaker_class tag (or doesn't need to register a UrlMakerClass)
*/
@trigger_error(
sprintf(
'Usage of "%s" is deprecated. You should stop using it and use /itop-portal-base/index.php instead.',
__FILE__
),
E_USER_DEPRECATED
);
if (file_exists(__DIR__ . '/../../approot.inc.php'))
{
@@ -47,7 +54,6 @@ if (!class_exists('UserRequest') && !class_exists('Incident'))
// Defining portal constants
$sDir = basename(__DIR__);
define('PORTAL_MODULE_ID', $sDir);
define('PORTAL_ID', $sDir);
require_once APPROOT . '/env-' . utils::GetCurrentEnvironment() . '/itop-portal-base/index.php';