File size: 3.98Kb
<?
#-----------------------------------------------------#
# ********* WAP-MOTORS WebMod ********* #
#-----------------------------------------------------#
# Original Made by : VANTUZ #
# E-mail : [email protected] #
# Site : http://pizdec.ru #
# WAP-Site : http://visavi.net #
# ICQ : 36-44-66 #
#-----------------------------------------------------#
# WebMod Made by : X-ray (Юрий) #
# E-mail : [email protected] #
# Site : http://city.zugdidi.us #
# WAP-Site : http://zugdidi.us #
#-----------------------------------------------------#
# Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#
require_once"$DOCUMENT_ROOT/template/start.php";
require_once"$DOCUMENT_ROOT/template/regglobals.php";
require_once"$DOCUMENT_ROOT/template/config.php";
require_once"$DOCUMENT_ROOT/template/functions.php";
require_once"$DOCUMENT_ROOT/template/maincore.php";
require_once"$DOCUMENT_ROOT/template/antidos.php";
require_once"$DOCUMENT_ROOT/template/cookies.php";
require_once"$DOCUMENT_ROOT/template/gzip.php";
require_once"$DOCUMENT_ROOT/template/header.php";
require_once"$DOCUMENT_ROOT/template/referer.php";
include_once"$DOCUMENT_ROOT/themes/$config_themes/index.php";
if(eregi("[^a-z0-9_-]",$_GET['action']) || eregi("[^a-z0-9_-]",$_GET['f']) || eregi("[^a-z0-9_-]",$_GET['p'])){
header ("Location: index.php?error&".SID); exit;}
if($config_nikname=="" && file("INSTALL.php")){ header ("Location: INSTALL.php?".SID); exit;}
/////////////////////////////////////////////////////
$text = @file("$DOCUMENT_ROOT/local/profil/$log.prof");
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provlog=trim($udata[0]);
$provpar=trim($udata[1]);
$dostup=trim($udata[7]);
$privat=trim($udata[10]);}
$privs = file("$DOCUMENT_ROOT/local/privat/$log.$config_priv");
$totals = count($privs);
$te = file("$DOCUMENT_ROOT/local/status.dat");
if ($te!=""){
$udat = explode("|",$te[0]);}
////////////////////////////////////////////////////////
require_once"$DOCUMENT_ROOT/template/isset.php";
if (empty($p)){
if (!$_SESSION['log']=="" && !md5($_SESSION['par'])=="" && md5($_SESSION['par'])==$provpar && $_SESSION['log']==$provlog ) {
echo'<font color="#FF0000"><b>'; include_once"$DOCUMENT_ROOT/template/day_time.php"; echo $_SESSION['log'].'</b></font><br>';}
if($config_welcome=="1"){echo'<div align="center"><b>'; include_once"$DOCUMENT_ROOT/local/welcome.dat"; echo'</b></div>';}
if($config_showtime=="1"){echo'<div align="center">'; include_once"$DOCUMENT_ROOT/template/times.php"; echo'</div>';}
if($config_quotes=="1"){include_once"$DOCUMENT_ROOT/template/quotes.php"; }
?>
<div align="center">
<table border="2" cellpadding="0" width="100%" id="table1" height="100%">
<tr>
<td width="15%" align="center" valign="top" height="100%">
<?
include_once"$DOCUMENT_ROOT/main.php";
?>
</td>
<td width="85%" align="left" valign="top" height="100%">
<?
include_once"$DOCUMENT_ROOT/meny.php";
?>
</td></tr> </table></div>
<?
}else{
if(empty($f)){$f='index';}
$sfx = file($DOCUMENT_ROOT.'/'.$p.'/'.$f.'.'.$config_ras);
if (!$sfx){
echo $LANGUAGE['101'];
}else?><div align="center">
<table border="2" cellpadding="0" width="100%" id="table1" height="100%">
<tr>
<td width="15%" align="center" valign="top" height="50"> <?{include_once"$DOCUMENT_ROOT/main.php";?></td>
<td width="85%" align="left" valign="top" height="99">
<?{include_once $DOCUMENT_ROOT.'/'.$p.'/'.$f.'.'.$config_ras;
}}}?></td>
</tr>
</table>
</div><?
include_once"$DOCUMENT_ROOT/themes/$config_themes/foot.php";
?>