Location: PHPKode > projects > MembersGear > membersgear/membersitenotallow.php
<?php
session_start(); 
error_reporting(0);
ini_set('session.gc_maxlifetime', 1800);  
set_time_limit(300);
$currentPath= $_SERVER['SCRIPT_FILENAME'] ;    
$phydir= str_replace('\\','/', $currentPath); 
$currentpathRev=strrev($currentPath);
$phydirrev=strchr($currentpathRev,"/");
$phydirrev= strrev($phydirrev);

require_once($phydirrev.'smarty/libs/Smarty.class.php');

$smarty_error = new Smarty;
$smarty_error->template_dir   = $phydirrev.'templates/';
$smarty_error->compile_dir    = $phydirrev.'templates_c/';
$smarty_error->cache_dir      = $phydirrev.'smarty_cache/';
$smarty_error->debug_dir      = $phydirrev.'debug/';
$smarty_error->config_dir     = $phydirrev.'config/smarty_configs/';

$ERROR_HEADER         =   $smarty_error->fetch('error_header.php');        
$ERROR_FOOTER         =   $smarty_error->fetch('installation_footer.php');  
$smarty_error->assign('ERROR_HEADER',     $ERROR_HEADER);
$smarty_error->assign('ERROR_FOOTER',     $ERROR_FOOTER);       

$msg = 'Your Membersite is not allowed by paygear.com Administrator.'; 
     
$smarty_error->assign('msg',$msg);
$smarty_error->display('membersitenotallow.tpl');

?>
Return current item: MembersGear