<?php

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 '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';


$set['title']='Мафия'; // заголовок страницы

include_once '../sys/inc/thead.php';
title();
err();
aut();

if(!isset($user)){
echo "Вы не зарегистрированы!";
include_once '../sys/inc/tfoot.php';
break;
}
$prov=mysql_result(mysql_query("SELECT * FROM mafia_us WHERE id_us='$user[id]'"), 0);
if($prov>0){

}
else
{
$usid=$user['id'];
$usn=$user['nick'];
mysql_query("INSERT INTO mafia_us(id_us, nick, win, cred, pm, ps, acti) VALUES('$usid', '$usn',  '0', '0', '0', '0', '0');");
}
include_once 'func.php';

?>