<?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);
$istallation_url="installation/index.php";
$smarty_error->assign('installation_url',$istallation_url);
$smarty_error->display('installation_not_found.tpl');
?>