1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 12:17:42 +02:00

Merge pull request #156 from bernte/patch-11

Maintenance Improvements
This commit is contained in:
Sergey Romanenko
2013-11-21 10:39:00 -08:00

View File

@@ -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')) {
// Monstra show this page :)
} 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')));
}
}