2013-08-27, 04:00:37
Do you want a solution real quick ill write one up
You can stick this in your template or ,using my component hook plugin, in a component named
If you want to get fancy , for exmaple on a live site, you can do stuff like
you can also replace that with a temporary redirect to wherever also.
You can stick this in your template or ,using my component hook plugin, in a component named
Code:
hook_index-pretemplate
PHP Code:
<?php
if(!is_logged_in()) die('Site is undergoing maintenance');
?>
If you want to get fancy , for exmaple on a live site, you can do stuff like
PHP Code:
<?php
if(!is_logged_in()){
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 7200'); // in seconds
print "This page is temporarily unavailable";
die();
}
?>
you can also replace that with a temporary redirect to wherever also.