Location: PHPKode > projects > MembersGear > membersgear/user_invalid_access.php
<?php
require_once "config/config.php";
 //**********************************************Begin Page code**********************************************     
require_once INCLUDE_DIR."/users_class.php";
 require_once  INCLUDE_DIR."/phpmailer/Functions.php"; 
$users=new users_class();
 

if(isset($_SESSION[SESSION_PREFIX.'valid_user']))
{  

   
        $url=$_GET['url'];

        $smarty->assign('msg',     MESSAGE_USER_NOT_LOGEDIN);
        if((string)$users_config->UserID == '0')  
         {
            $smarty->assign('login',     'yes');
            $url="user_login.php?url=".urlencode($_GET['url']);
            $smarty->assign('url',     $url);
           unset($_SESSION[SESSION_PREFIX.'valid_user']);
         }   
          
       $INVALIDACCESSPAGE          = $smarty->fetch('user_invalid_access.tpl');  
    //**********************************************End Page code**********************************************
    //Common Line
    $smarty->assign('USER_CONTENT',     $INVALIDACCESSPAGE); 
    $smarty->display('user_page_main.tpl');
}    
else
 {
  Redirect("user_login.php");
 }
?>
Return current item: MembersGear