Файл: fermer/index.php
Строк: 64
<?php
###########################################
### Ферма из DCMS SoC ###
### HaoS ###
###########################################
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();
aut();
$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 "<div class='rowup'>";
echo "<center><img src="fermer.gif"/><br/></center>";
print '';
echo "</div>n";
echo "<div class='menu'>";
echo "<img src='img/direction.png' alt='derevo'/><a href='my.php'>Моя ферма</a><br/>";
echo"<img src='img/house.png' alt='derevo'/><a href='storage.php'>Склад</a><br/>";
echo "<img src='img/ud1.png' alt='derevo'/><a href='shop.php'>Магазин семян</a><br/>";
echo "<img src='img/stol.gif' alt='derevo'/><a href='shop_udobr.php'>Магазин удобрений</a><br/>";
echo "<img src='img/ddog.png' alt='derevo'/><a href='dog.php'>Купить собаку</a><br/>";
echo "<img src='img/fer.gif' alt='derevo'/><a href='fermers.php'>Фермеры</a><br/>";
echo "<img src='img/rur.png' alt='derevo'/><a href='bank.php'>Обмен баллов</a><br/>";
echo "<img src='img/money.png' alt='derevo'/><a href='bankomat.php'>Обмен денег</a><br/>";
echo "</div>n";
//вошла в зборку Dcms SOC
//SOCLIVERU@yandex.ua(помощ в скриптах,лого и аватарки на любой вкус)
include_once '../sys/inc/tfoot.php';
?>