session_regenerate_id(); } session_start(); // Start the session } include_once ENVIRONMENT_PATH . '/classes/Env.class.php'; include_once ENVIRONMENT_PATH . '/constants.php'; include_once ENVIRONMENT_PATH . '/functions/utf.php'; include_once ENVIRONMENT_PATH . '/functions/general.php'; include_once ENVIRONMENT_PATH . '/functions/files.php'; // Remove slashes is magic quotes gpc is on from $_GET, $_POST and $_COOKIE fix_input_quotes(); // Debug if (Env::isDebugging()) { include_once ENVIRONMENT_PATH . '/classes/debug/BenchmarkTimer.class.php'; benchmark_timer_start(); benchmark_timer_set_marker('Init environment'); } // if // Include autoloader... include ENVIRONMENT_PATH . '/classes/AutoLoader.class.php'; include ENVIRONMENT_PATH . '/classes/template/template.php'; include ENVIRONMENT_PATH . '/classes/flash/flash.php'; include ENVIRONMENT_PATH . '/classes/localization/localization.php'; include ENVIRONMENT_PATH . '/classes/logger/Logger_Entry.class.php'; include ENVIRONMENT_PATH . '/classes/logger/Logger_Session.class.php'; include ENVIRONMENT_PATH . '/classes/logger/Logger_Backend.class.php'; include ENVIRONMENT_PATH . '/classes/logger/Logger.class.php'; include ENVIRONMENT_PATH . '/classes/logger/backend/Logger_Backend_File.class.php'; // Init libraries Env::useLibrary('database');
$error_message = '<div style="text-align: left; background: white; color: red; padding: 7px 15px; border: 1px solid red; font: 12px Verdana; font-weight: normal;">'; $error_message .= '<p>Fatal error: activeCollab has failed to executed your request (reason: ' . clean(get_class($error)) . '). Information about this error has been logged and sent to administrator.</p>'; if (is_valid_url(ROOT_URL)) { $error_message .= '<p><a href="' . ROOT_URL . '">« Back to homepage</a></p>'; } // if $error_message .= '</div>'; print $error_message; die; } // handle_fatal_error } // if $application =& application(); $application->prepare(array('initialize_resources' => true, 'connect_to_database' => true, 'initialize_smarty' => true, 'init_modules' => defined('INIT_MODULES') && INIT_MODULES, 'authenticate' => true, 'init_locale' => true, 'load_hooks' => true)); if (defined('INIT_APPLICATION') && INIT_APPLICATION) { if (DEBUG >= DEBUG_DEVELOPMENT) { benchmark_timer_set_marker('Init application'); } // if $application->init(); } // if if (defined('HANDLE_REQUEST') && HANDLE_REQUEST) { if (DEBUG >= DEBUG_DEVELOPMENT) { benchmark_timer_set_marker('Handle request'); } // if $application->handleHttpRequest(); } // if