mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +02:00
@@ -45,6 +45,9 @@ if (file_exists('install.php')) {
|
|||||||
if ((Session::exists('user_role')) and (Session::get('user_role') == 'admin' or Session::get('user_role') == 'editor')) {
|
if ((Session::exists('user_role')) and (Session::get('user_role') == 'admin' or Session::get('user_role') == 'editor')) {
|
||||||
// Monstra show this page :)
|
// Monstra show this page :)
|
||||||
} else {
|
} else {
|
||||||
|
header('HTTP/1.1 503 Service Temporarily Unavailable');
|
||||||
|
header('Status: 503 Service Temporarily Unavailable');
|
||||||
|
header('Retry-After: 600');
|
||||||
die (Text::toHtml(Option::get('maintenance_message')));
|
die (Text::toHtml(Option::get('maintenance_message')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user