--- C:/Users/EPALAU/Downloads/require_login/require_login.module Mon Apr 19 22:56:28 2010 +++ C:/xampp/htdocs/FE/sites/all/modules/require_login/require_login.module Tue Dec 13 13:50:12 2011 @@ -5,11 +5,14 @@ * Implementation of hook_init(). */ function require_login_init() { + //Check if site offline is activated just to apply or not + if(variable_get('site_offline', 0) == 0){ global $user, $base_path; if (!isset($_SESSION['openid']['service']['uri']) && !isset($_SESSION['openid']['claimed_id'])) { if (request_uri() != $base_path .'cron.php' && !$user->uid && !(arg(0) == 'user' && (!arg(1) || arg(1) == 'password' || arg(1) == 'register'))) { drupal_set_message(t('You must login to use this site.')); drupal_goto('user', 'destination='. rawurlencode($_GET['q'])); } + } } }