Файл: mdmxduel/index.php
Строк: 64
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once H.'sys/inc/settings.php';
include_once H.'sys/inc/db_connect.php';
include_once H.'sys/inc/ipua.php';
include_once H.'sys/inc/fnc.php';
include_once H.'sys/inc/user.php';
$set['title']='Фотодуэли!';
include_once H.'sys/inc/thead.php';
include_once H.'mdmxduel/#inc/mfnc.md';
title();
aut();
##########################################################
if(isset($_SESSION['err']) and $_SESSION['err']!="")
{
echo "<div class='err'>$_SESSION[err]</div>";
$_SESSION['err']="";
}
//
if(isset($_SESSION['msg']) and $_SESSION['msg']!="")
{
echo "<div class='msg'>$_SESSION[msg]</div>";
$_SESSION['msg']="";
}
##########################################################
// Перехват вызова
if($user)
{
if(isset($_GET['accept']))
{
$_GET['a']='accept';
}
// Перехват вызова
if(isset($_GET['challenge']))
{
$challenge=intval(abs($_GET['challenge']));
$_GET['a']='challenge';
}
//
}else{$_GET['a']=NULL;}
if(isset($_GET['a']))
{
$l=htmlentities($_GET['a'],ENT_QUOTES,"UTF-8");
//
if(file_exists(H."mdmxduel/#inc/".$l.".php") and is_file(H."mdmxduel/#inc/".$l.".php"))
{
include_once H."mdmxduel/#inc/".$l.".php";
}else{include_once H."mdmxduel/#inc/main.php";}
//
}else{include_once H."mdmxduel/#inc/main.php";}
//
include_once H.'sys/inc/tfoot.php';
?>