Файл: soc-set/moduls/fermer/index.php
Строк: 44
<?php
require_once('../../core/start.php');
include_once 'inc.php';
check_auth();
head('Веселая ферма');
echo DIV_TITLE . 'Веселая ферма' . CLOSE_DIV;
ini_set('error_reporting', E_ALL);
if(mysql_result(mysql_query("select count(*) from `fermer_dog` WHERE `id_user` = '$user[user_id]' LIMIT 1"),0) == 0) {
mysql_query("INSERT INTO `fermer_dog` (`id_user`,`time`) VALUES ($user[user_id],NULL) ");
mysql_query("UPDATE ".USERS." SET `fermer_doggy`='0' WHERE `id`='".$user[user_id]."'");
}
if(mysql_result(mysql_query("select count(*) from `fermer_gr` WHERE `id_user` = '$user[user_id]' LIMIT 1"),0) < 5){
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['user_id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['user_id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['user_id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['user_id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['user_id']."') ");
}
echo DIV_BLOCK . '<img src="'.HOME.'/moduls/fermer/fermer.gif" />' . CLOSE_DIV;
//include_once "news/news_main.php";
include_once 'my2.php';
echo DIV_BLOCK;
echo "<br/><TABLE BORDER=0>
<CAPTION ALIGN=bottom>
<TH>
<a href='shop/'><img src='".HOME."/moduls/fermer/shop.png'><br/>Магазин</a>
</ TH> <TH>
<a href='".HOME."/fermer/storage/'><img src='".HOME."/moduls/fermer/sklad.png'><br/>Склад</a>
</ TH> <TH>
<a href='fermers.php'><img src='".HOME."/moduls/fermer/sosed.png'><br/>Соседи</a></ TH></TABLE><font color='#DEB887'><hr></font>";
echo "<TABLE BORDER=0>
<CAPTION ALIGN=bottom>
<TH><a href='news'><img src='".HOME."/moduls/fermer/020.png'><br/>Новости</a></ TH> <TH>";
echo "<a href='original_appearance.php'><img src='".HOME."/moduls/fermer/023.png'><br/>Мой вид</a></ TH> <TH>";
echo "<a href='my.php'><img src='".HOME."/moduls/fermer/005.png'><br/>Огород</a></ TH></TABLE><font color='#DEB887'><hr></font>";
echo "<TABLE BORDER=0>
<CAPTION ALIGN=bottom>
<TH><a href='bank.php'><img src='".HOME."/moduls/fermer/bank.png'><br/>Банк</a>
</ TH> <TH>
<a href='area.php'><img src='".HOME."/moduls/fermer/profile.png'><br/>Участок</a>
</ TH> <TH>
<a href='medal.php'><img src='".HOME."/moduls/fermer/rating.png'><br/>Рейтинг</a> <br/></ TH></TABLE><font color='#DEB887'></font>";
echo CLOSE_DIV;
echo DIV_BLOCK . "<a href='chat'>Чат</a> | <a href='opis.php'>Помощь</a>" . CLOSE_DIV;
echo DIV_LI . "<a href='adminka'>Админка игры</a>" . CLOSE_DIV;
require_once('../../core/stop.php');
?>