(2013-08-27, 04:00:37)shawn_a Wrote: 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
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: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";
Wow thanks Shawn! I just add the php !is_looged_in inside the my default template file? Before the !defined('IN_GS')
Now anyone who is not logged in cannot see any of the pages? I'm not sure where to implement the hook? I'll check you plugin