Hello, I created a mod that dosen't lets you access to the web site at least you are logged whit the exception of "account-signup.php", "account-recover.php", "faq.php" and "rules.php." It is much easier than the one i've seen on the forum I hope you enjoit!.
In Header.php of you theme
After
In Header.php of you theme
After
$GLOBALS['tstart'] = array_sum(explode(" ", microtime()));
Insert
if (!$CURUSER)
{
$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;
require_once('aplicacion_top.php');
}
Create aplicacion_top.php
And insert
<?php
$url = $_SERVER['PHP_SELF'];
switch ($url)
{
case '/account-login.php':
break;
case '/account-recover.php';
break;
case '/account-signup.php';
break;
case '/faq.php';
break;
case '/rules.php';
break;
default:
header('Location: account-login.php');
break;
}
?>