1 2 3 4 5 6 7 8 9 10 11 12
<?phprequire_once( realpath(dirname(__FILE__)) . '/function_is_login.php');if (is_login()){ // This user logged in, allow continue}else{ // This user do not log in, redirect to log in header("Location: index.php"); exit;}