<?php /* Copyright (c) 2024 Freya Murphy */ function error_page($code, $msg) { $root = $GLOBALS['webroot']; error_reporting(E_ERROR | E_PARSE); http_response_code($code); require($root . '/views/template/error.php'); die(); }