4 use Friendica\Core\Config;
6 function maintenance_content(App $a) {
8 $reason = Config::get('system', 'maintenance_reason');
10 if (substr(normalise_link($reason), 0, 7) == 'http://') {
11 header("HTTP/1.1 307 Temporary Redirect");
12 header("Location:".$reason);
16 header('HTTP/1.1 503 Service Temporarily Unavailable');
17 header('Status: 503 Service Temporarily Unavailable');
18 header('Retry-After: 600');
20 return replace_macros(get_markup_template('maintenance.tpl'), array(
21 '$sysdown' => t('System down for maintenance'),