File size: 2.55Kb
<?php
// mod by Golem http://veplog.ru
require_once"template/start.php";
require_once"template/regglobals.php";
require_once"template/config.php";
require_once"template/functions.php";
require_once"template/antidos.php";
require_once"template/cookies.php";
require_once"template/gzip.php";
require_once"template/header.php";
require_once"template/referer.php";
include_once"themes/$config_themes/index.php";
include_once"template/isset.php";
if(isset($_GET['f']) && eregi("[^a-z0-9_-]",$_GET['f']) || isset($_GET['p']) && eregi("[^a-z0-9_-]",$_GET['p'])){header ("Location: index.php?isset=404&".SID); exit;}
//-----------------------------------------------------------//
echo '<div class="tp" align="left">'.$config_logos.'</div>';
if($config_welcome==1){
$welcome_file=file_get_contents(BASEDIR."local/welcome.dat");
echo'<div class="tpanel" align="center">'.$welcome_file.'</div>';
}
if($config_rekhead==1){
echo'<div class="ad">';
include"template/reklama_head.php";
include"template/reklama_head2.php";
include"template/reklama_head3.php";
include"template/reklama_head4.php";
echo'</div>';
}
include_once"template/info.php";
if (empty($_GET['p'])){
if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!=""){
echo'<div class=forum>';
echo'<div class=r0><img src="../images/img/act.gif" alt="."> <a href="../office/?'.SID.'">Кабинет</a> | <a href="../input.php?action=exit">Выход</a></div></div>';
if ($dostup==101 || $dostup==102)
{echo'<div class=forum><div class=r0><img src="../images/img/act.gif" alt="."> <a href="'.$config_mpanel.'/?'.SID.'">Управление</a></div></div>';}
if ($dostup==103 || $dostup==105)
{echo'<div class=forum><div class=r0><img src="../images/img/act.gif" alt="."> <a href="'.$config_mpanel.'/?'.SID.'">Управление</a></div></div>';}
} else {
//
//
echo'<div class=forum>';
echo'<div class=r0><img src="../images/img/act.gif" alt="."> <a href="pages/vhod.php?'.SID.'">Вход</a></div>';
echo'<div class=r0><img src="../images/img/act.gif" alt="."> <a href="pages/registration.php?'.SID.'">Регистрация</a></div></div>';
}
include_once("local/datamain/index.dat");
}else{
if($_GET['f']==""){$_GET['f']='index';}
if (file_exists($_GET['p'].'/'.$_GET['f'].'.'.$config_ras)){
include_once $_GET['p'].'/'.$_GET['f'].'.'.$config_ras;
}else{
echo 'Ошибка, Файл с данными параметрами не найден!<br>';
}
}
include_once"themes/$config_themes/foot_main.php";
?>