3 * @file mod/maintenance.php
6 use Friendica\Core\Config;
7 use Friendica\Core\L10n;
8 use Friendica\Core\Renderer;
9 use Friendica\Util\Strings;
11 function maintenance_content(App $a)
13 $reason = Config::get('system', 'maintenance_reason');
15 if (substr(Strings::normaliseLink($reason), 0, 7) == 'http://') {
16 header("HTTP/1.1 307 Temporary Redirect");
17 header("Location:".$reason);
21 header('HTTP/1.1 503 Service Temporarily Unavailable');
22 header('Status: 503 Service Temporarily Unavailable');
23 header('Retry-After: 600');
25 return Renderer::replaceMacros(Renderer::getMarkupTemplate('maintenance.tpl'), [
26 '$sysdown' => L10n::t('System down for maintenance'),