Redid HTTP error pages.
This commit is contained in:
parent
312be0e7fe
commit
3e14f63bdb
16 changed files with 261 additions and 92 deletions
public
|
@ -22,7 +22,7 @@ else
|
|||
ob_clean();
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
echo file_get_contents(MSZ_TEMPLATES . '/500.html');
|
||||
header('X-Accel-Redirect: /error-500.html');
|
||||
exit;
|
||||
});
|
||||
|
||||
|
@ -35,10 +35,8 @@ ob_start();
|
|||
|
||||
if(is_file(MSZ_ROOT . '/.migrating')) {
|
||||
http_response_code(503);
|
||||
if(!filter_has_var(INPUT_GET, '_check')) {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
echo file_get_contents(MSZ_TEMPLATES . '/503.html');
|
||||
}
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
header('X-Accel-Redirect: /error-503.html');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue