mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Implement a maintenance mode
Add support for a maintenance mode that disables both the website and the SSH interface and can be enabled easily using a configuration option. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
2164750f1e
commit
a45b5073ca
4 changed files with 27 additions and 0 deletions
15
web/html/503.php
Normal file
15
web/html/503.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||
|
||||
html_header( __("Service Unavailable") );
|
||||
?>
|
||||
|
||||
<div id="error-page" class="box 503">
|
||||
<h2>503 - <?= __("Service Unavailable") ?></h2>
|
||||
<p><?= __("Don't panic! This site is down due to maintenance. We will be back soon.") ?></p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
html_footer(AURWEB_VERSION);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue