10 lines
232 B
PHP
10 lines
232 B
PHP
|
<?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();
|
||
|
}
|