Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 regels
574 B

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