Location: PHPKode > projects > MembersGear > membersgear/installation_error.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/';







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


if($_GET['status_code']=="1010")
 $msg="Please Remove Installation Folder<br><br><a href='admin/admin_login.php'>Click here to try again</a>";
else if($_GET['status_code']=="1020")
 $msg="Please Install Membersite<br><br><a href='installation/index.php'>Click here to start installation</a>"; 
else if($_GET['status_code']=="1050")  
  $msg="MembersGear installation already done.<br><br><a href='admin/admin_login.php'>Click here to go admin panel</a>"; 
    
$smarty_error->assign('msg',$msg);
$smarty_error->display('installation_error.tpl');
  
?>
Return current item: MembersGear