Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianka Martinovic committed Jul 2, 2014
1 parent 3c9b6d5 commit 3378916
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions upload/framework/CAT/Page.php
Expand Up @@ -140,6 +140,14 @@ public function show()

$this->log()->LogDebug(sprintf('showing page with ID [%s]',$page_id));

// send appropriate header
if(CAT_Helper_Page::isMaintenance() || CAT_Registry::get('MAINTENANCE_PAGE') == $page_id)
{
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 7200'); // in seconds
}

// template engine
global $parser;

Expand Down

0 comments on commit 3378916

Please sign in to comment.