Index: securepages.module =================================================================== --- securepages.module (revision 1040) +++ securepages.module (working copy) @@ -27,38 +27,9 @@ return; } - /** - * If this is a cached page we need to do the check here even though we - * have no access to the menu. - */ - $cache_mode = variable_get('cache', CACHE_DISABLED); - // Get the page from the cache. - $cache = $cache_mode == CACHE_DISABLED ? '' : page_get_cache(); - - if ($cache) { - return; - } - if (!isset($_SESSION['securepages_redirect'])) { securepages_redirect(); } -} - -/** - * Implementation of hook_init(). - */ -function securepages_init() { - if (!variable_get('securepages_enable', 0) || basename($_SERVER['PHP_SELF']) != 'index.php') { - return; - } - - /** - * If we have redirected in the hook_boot(). Then don't try to redirect - * again. This will prevent a loop - */ - if (!isset($_SESSION['securepages_redirect'])) { - securepages_redirect(); - } else { unset($_SESSION['securepages_redirect']); } @@ -476,4 +447,4 @@ } return TRUE; -} \ No newline at end of file +}