The page cannot be displayed
Because of:
• page not found
• restricted access
• hacking attempt
or ...
Click to go Home');
$module = 'home';
}
$tplMain = @empty($tplMain) ? NULL : $tplMain;
$tplModule = @empty($tplModule) ? NULL : $tplModule;
// set language & direction
if(array_key_exists(@$qs[6], $config['language'])) {
$lang = $qs[6];
$direction = $config['language'][$lang][0];
} else {
$lang = 'fa';
$direction = 'rtl';
}
// set message cookie
$smarty->assign('message', @$_COOKIE['message']);
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
$path = explode('/', $_SERVER['SCRIPT_NAME']);
$prefix = strpos($path[1], '.') ? '/' . $path[1] . '' : '';
} else {
$prefix = '';
}
// include module file
if(file_exists($section . '/' . $module . '.php')) {
require($section . '/' . $module . '.php');
}
// add extra modules to master page
include("#news.php");
//include("#ads.php");
// smarty
$smarty->assign("jalali_date", $jalali->date("complete"));
$smarty->assign("year", date("Y"));
$smarty->assign("prefix", $prefix);
$smarty->assign("lang", $lang);
$smarty->assign("direction", $direction);
$smarty->assign("section", $section);
$smarty->assign("module", $module);
$smarty->assign("tplModule", $tplModule);
$smarty->display($tplMain);
?>