Revert "Apply fixes from StyleCI"

This commit is contained in:
SuperDev
2023-01-19 11:46:03 -06:00
committed by GitHub
parent 3dc11557a0
commit 78f5305c38
16 changed files with 492 additions and 496 deletions

View File

@@ -1,14 +1,14 @@
<?php
$code = $_SERVER['REDIRECT_STATUS'];
$codes = [
$codes = array(
403 => 'Forbidden',
404 => '404 Not Found',
500 => 'Internal Server Error',
];
500 => 'Internal Server Error'
);
$source_url = 'http'.((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 's' : '').'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if (array_key_exists($code, $codes) && is_numeric($code)) {
exit("Error $code: {$codes[$code]}");
die("Error $code: {$codes[$code]}");
} else {
exit('Unknown error');
die('Unknown error');
}
?>