Файл: test.masteram.us/games/fermer/index.php
Строк: 102
<?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';
only_reg();
$set['title']='Счастливый фермер!';
include_once '../../sys/inc/thead.php';
title();
err();
$dog = mysql_result(mysql_query("select count(*) from `fermer_dog` WHERE `id_user` = '$user[id]' LIMIT 1"),0);
if($dog==0){
mysql_query("INSERT INTO `fermer_dog` (`id_user`,`time`) VALUES ($user[id],NULL) ");
}
$post = mysql_result(mysql_query("select count(*) from `fermer_gr` WHERE `id_user` = '$user[id]' LIMIT 1"),0);
if($post<5){
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['id']."') ");
mysql_query("INSERT INTO `fermer_gr` (`kol`,`semen`, `id_user`) VALUES ( NULL, '0', '".$user['id']."') ");
}
$menu=' <b>»</b> ';
echo "<center><b>Добро пожаловать на Ферму!</b></center>";
#echo '<center><img src="/fermer/img/logo4.jpg" /> </center>'; //логотип
echo "<div class='gmenu'>n";
echo $menu."<img src='img/plants.png' ><a href='my.php'>Моя ферма</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/tomato.png' ><a href='storage.php'>Склад</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/seat.png' ><a href='shop.php'>Магазин семян</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/hydroponics.png' ><a href='shop_udobr.php'>Магазин удобрений</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/animal.png' ><a href='dog.php'>Купить собаку</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/favorite.png' ><a href='fermers.php'>Фермеры</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/money.png' ><a href='obmen.php'>Обмен монет</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/forum.png' ><a href='faq.php'>FAQ и помощь</a><br/>";
echo "</div>n";
echo "<div class='gmenu'>n";
echo $menu."<img src='img/experience.png' ><a href='level.php'>Список уровней</a><br/>";
echo "</div>n";
include_once '../../sys/inc/tfoot.php';
?>