|
@@ -27,6 +27,16 @@ else
|
|
}
|
|
}
|
|
require_once APPROOT . '/application/startup.inc.php';
|
|
require_once APPROOT . '/application/startup.inc.php';
|
|
|
|
|
|
|
|
+if (!class_exists('UserRequest') && !class_exists('Incident'))
|
|
|
|
+{
|
|
|
|
+ die('iTop has neither been installed with User Request nor Incident tickets. Please contact your administrator.');
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+if (UserRights::GetContactId() == 0)
|
|
|
|
+{
|
|
|
|
+ die(Dict::S('Portal:ErrorNoContactForThisUser'));
|
|
|
|
+}
|
|
|
|
+
|
|
$sDir = basename(__DIR__);
|
|
$sDir = basename(__DIR__);
|
|
define('PORTAL_MODULE_ID', $sDir);
|
|
define('PORTAL_MODULE_ID', $sDir);
|
|
define('PORTAL_ID', $sDir);
|
|
define('PORTAL_ID', $sDir);
|