public static function minimalinit() { if (!defined('ROOT_URL')) { if (p_strlen(ROOT_PATH) > p_strlen($_SERVER['DOCUMENT_ROOT'])) { define('ROOT_URL', p_substr(ROOT_PATH, p_strlen($_SERVER['DOCUMENT_ROOT']))); } else { define('ROOT_URL', '/'); } } define('INCLUDE_URL', ROOT_URL . 'Script/'); define('IMAGES_URL', ROOT_URL . 'Images/'); define('ADDONS_URL', ROOT_URL . 'addons/'); define('TEMPLATE_URL', ROOT_URL . 'tpl/'); define('CACHE_URL', ROOT_URL . 'cache/'); define('BTN_URL', CACHE_URL . 'btn-'); DataEngine::conf_cache('perms'); DataEngine::conf_cache('config'); // Fix multiple installations/conflit avec forum ou autre soft utilisant les sessions session_set_cookie_params(0, ROOT_URL); if (!NO_SESSIONS) { session_start() or trigger_error('Erreur de session', E_USER_ERROR); } return self::$initialized = true; }