'E_ERROR', E_WARNING => 'E_WARNING', E_PARSE => 'E_PARSE', E_NOTICE => 'E_NOTICE', E_CORE_ERROR => 'E_CORE_ERROR', E_CORE_WARNING => 'E_CORE_WARNING', E_COMPILE_ERROR => 'E_COMPILE_ERROR', E_COMPILE_WARNING => 'E_COMPILE_WARNING', E_USER_ERROR => 'E_USER_ERROR', E_USER_WARNING => 'E_USER_WARNING', E_USER_NOTICE => 'E_USER_NOTICE', E_STRICT => 'E_STRICT', E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', E_DEPRECATED => 'E_DEPRECATED', E_USER_DEPRECATED => 'E_USER_DEPRECATED', E_ALL => 'E_ALL' ]; $terrible_exceptions = [ E_ERROR, E_PARSE, E_CORE_ERROR, E_USER_ERROR, E_COMPILE_ERROR, E_RECOVERABLE_ERROR, ]; if (!in_array($error['type'], $terrible_exceptions)) { ob_end_flush(); return; } while (ob_get_level()) ob_end_clean(); $error_type = $exceptions[$error['type']] ?? 'Unknown'; $error['message'] = nl2br(htmlspecialchars($error['message'])); echo << Error

There was an internal error! We'll be right back!

HTML; if (isset($_GET['debug']) || (function_exists('is_dev_mode') && is_dev_mode())) { echo <<

The following is only being displayed because debugging or DEV mode is enabled.

Type
$error_type
File
$error[file]
Line
$error[line]
Message
$error[message]
HTML; } echo << HTML; }); ob_start(); require_once __DIR__.'/src/init/init.php'; require_once __DIR__.'/src/init/init_frontend.php'; // page protection if ($page['protect'] == 1) { if ($_COOKIE['page_'.$page['id']] === $page['e_password']) require_once ThemeHandler::get_template_path('page', $page['template']); else require_once ThemeHandler::get_template_path('page', 'protected'); } // no page protection else require_once ThemeHandler::get_template_path('page', $page['template']); if (function_exists('mysql_close')) @mysql_close();