Вход Регистрация
Файл: vfermu.ru/sys/fnc/start.php
Строк: 368
<?php
$time
=time();
$system mysql_fetch_assoc(mysql_query('SELECT * FROM `farm_admin_system` WHERE `id`="1"'));
$key=$system['key_admin'];
$cop=''.$system['cop'].'';
$t=$system['time_online'];
$ruby_reg=$system['ruby_reg'];
$money_reg=$system['money_reg'];
$max_farm=$system['max_farm'];
$max_pet=$system['max_pet'];
$online="".mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `date_last` > '".(time()-$t)."'"), 0)."";
$reg="".mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user`"), 0)."";
////////////////Вихід х юзера
$mpd=md5($ku['password']);
////$cash_autologin=;
$sec=md5($ku['password']);
mysql_query('UPDATE `farm_user` SET `date_last` = "'.$time.'",`autologin` = "'.$sec.'",`mdp` = "'.$mpd.'" WHERE `id`="'.$ku['id'].'" LIMIT 1');
if(isset(
$_GET['outlogin']) && $_GET['outlogin']==$ku['mdp']){
unset(
$_SESSION['id_user']);
unset(
$_SESSION['log_id']);


setcookie("autologin",'',time()-10);
header("Location: http://$_SERVER[HTTP_HOST]");
exit;
}
///////////////
$month_arr = array( => 'янв'=> 'февр'=> 'мар'=> 'апр'=> 'мая'=> 'июня'=> 'июля'=> 'авг'=> 'сент'10 => 'окт'11 => 'ноябр'12 => 'дек' );
$day   date'j' );
$month $month_arrdate'n' ) ];
$year  date'Y' );
$true_date "$day $month ".date("H:i:s")."";
//$dexp=3;
$activ=time()-$ku['date_last'];
if(
$activ 240)
{
$newactiv=$ku['time']+$activ;
mysql_query("UPDATE `farm_user` SET `time` ='$newactiv' WHERE `id` = '$ku[id]' LIMIT 1");
}
$set['p_str']=10;
mysql_query("DELETE FROM `farm_mail` WHERE `time` < '".($time-(3600*24*30))."'");

mysql_query("DELETE FROM `farm_rating_mouser` WHERE `time_rating` < '".($time-(3600*24*7))."'");


if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_ground` WHERE `id_user` = '$ku[id]'"),0)==0)
{
mysql_query("INSERT INTO `farm_ground` SET `id_user` = '$ku[id]', `cultivator` = '1'");
mysql_query("INSERT INTO `farm_ground` SET `id_user` = '$ku[id]', `cultivator` = '1'");
mysql_query("INSERT INTO `farm_ground` SET `id_user` = '$ku[id]', `cultivator` = '1'");
mysql_query("INSERT INTO `farm_ground` SET `id_user` = '$ku[id]', `cultivator` = '1'");
mysql_query("INSERT INTO `farm_ground` SET `id_user` = '$ku[id]', `cultivator` = '1'");
header("Location:/myfarm/".passgen());
exit;
}
if(
$ku['level']==30 && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_pool` WHERE `id_user` = '$ku[id]'"),0)<1)
{
mysql_query("INSERT INTO `farm_pool` SET `id_user` = '$ku[id]'");
}
if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_collections` WHERE `id_user` = '$ku[id]'"),0)==0)
{
mysql_query("INSERT INTO `farm_collections` SET `id_user` = '$ku[id]'");
}
if(
$ku['time_start']==|| $ku['time_start']==NULL)mysql_query("UPDATE `farm_user` SET `time_start` = '$time' WHERE `id` = '$ku[id]'");

$act=mysql_query("SELECT * FROM `farm_warehouse_act` WHERE `id_user` = '$ku[id]'");
while(
$posta=mysql_fetch_array($act))
{
if(
$posta['time']<=$time)
{
mysql_query("UPDATE `farm_user` SET `umoney` = '".($ku['umoney']+$posta['cena'])."',`money`='".($ku['money']+$posta['cena'])."' WHERE `id` = '$ku[id]'");
$kuller=$posta['cena'];
if(isset(
$mc) && $mc['nalog']>0)
{
$nmoney=floor(($kuller/100)*$mc['nalog']);
mysql_query("UPDATE `farm_user` SET `money` = '".($ku['money']-$nmoney)."' WHERE `id` = '$ku[id]'");
mysql_query("UPDATE `farm_collective` SET `money` = '".($mc['money']+$nmoney)."' WHERE `id` = '$mc[id]'");
mysql_query("UPDATE `farm_collective_user` SET `money` = '".($mcu['money']+$nmoney)."' WHERE `id_user` = '$ku[id]'");
}
$act=mysql_query("SELECT * FROM `farm_warehouse_act` WHERE `id_user` = '$ku[id]'");
while(
$posta=mysql_fetch_array($act))
{
if(
$posta[time]<=$time)
{
mysql_query("UPDATE `farm_user` SET `umoney` = '$posta[cena]',`money`='".($ku['money']+$posta['cena'])."' WHERE `id` = '$ku[id]'");
mysql_query("DELETE FROM `farm_warehouse_act` WHERE `id_user` = '$ku[id]' AND `id`='$posta[id]'");
}
}
}
}
if(
$ku['expdouble']=='null')
{
$rand=rand(1,7);
if(
$rand==1)$day='Mon';elseif($rand==2)$day='Tue';elseif($rand==3)$day='Wed';elseif($rand==4)$day='Thu';elseif($rand==5)$day='Fri';elseif($rand==6)$day='Sat';else $day='Sun';
mysql_query("UPDATE `farm_user` SET `expdouble` = '$day' WHERE `id` = '$ku[id]'");
$ku['expdouble']=$day;
}
if(
$ku['expdouble']==date("D"))$dexp=1;
if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_sellar` WHERE `id_user` = '$ku[id]'"),0)<&& $ku['level']>=10)
{
mysql_query("INSERT INTO `farm_sellar` SET `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_sellar` SET `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_sellar` SET `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_sellar` SET `id_user` = '$ku[id]'");}

if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_sellar_tmp` WHERE `id_user` = '$ku[id]'"),0)==0){
mysql_query("INSERT INTO `farm_sellar_tmp` SET `p1` = '1',`pc1` = '5',`p2` = '2',`pc2` = '4',`p3` = '0',`pc3` = '0',`p4` = '0',`pc4` = '0',`p5` = '0',`pc5` = '0',`s1` = '2',`sc1` = '1',`s2` = '0',`sc2` = '0',`s3` = '0',`sc3` = '0',`s4` = '0',`sc4` = '0',`s5` = '0',`sc5` = '0',`time` = '300',`id_user` = '$ku[id]'");}
if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_my_recept` WHERE `id_user` = '$ku[id]'"),0)==0){mysql_query("INSERT INTO `farm_my_recept` SET `id_rec` = '1',`id_user` = '$ku[id]'");}
mysql_query("DELETE FROM `farm_my_speci` WHERE `count` <= '0'");
if(isset(
$_SESSION['pogreb'])){
echo
"<div class='feedback'>";
if(
$_SESSION['pogreb_money']>0){echo"<li> Доход монет: <img width='16' height='16' src='/images/icons/money.png' alt='o'> <span>".floor($_SESSION['pogreb_money'])." монет.</span></li>";}
if(
$_SESSION['pogreb_rubies']>0){echo"<li> Доход рубынов: <img width='16' height='16' src='/images/icons/ruby.png' alt='o'> <span>".floor($_SESSION['pogreb_rubies'])." рубынов.</span></li>";}
if(
$_SESSION['pogreb_rating']>0){echo"<li>Опыт: <img width='16' height='16' src='/images/icons/experience.png' alt='o'><span>".floor($_SESSION['pogreb_rating'])."</span></li>";}
if(
$_SESSION['pogreb_name']==NULL)
{
}
else
{
echo
"<li><span class='title'>Вы узнали подробности рецепта</span> <img width='16' height='16' src='/images/icons/experience.png' alt='o'><span>".($_SESSION['pogreb_name'])."</span></li>";
}
echo
"</div>";
unset(
$_SESSION['pogreb']);
unset(
$_SESSION['pogreb_money']);
unset(
$_SESSION['pogreb_rubies']);
unset(
$_SESSION['pogreb_rating']);
unset(
$_SESSION['pogreb_name']);}
////sellar
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_petground` WHERE `id_user` = '$ku[id]'"),0)<5)
{
mysql_query("INSERT INTO `farm_petground` SET `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_petground` SET `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_petground` SET `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_petground` SET `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_petground` SET `id_user` = '$ku[id]'");
}

////////////////////////КолхоЗ////////////////////////

if(mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_collective_user` WHERE `id_user` = '$ku[id]'"),0)!=0)
{
$mcu=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective_user` WHERE `id_user` = '$ku[id]'"));
$mc=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective` WHERE `id` = '$mcu[id_collective]'"));
mysql_query("UPDATE `farm_collective` SET `date_last` = '$time' WHERE `id` = '$mc[id]' LIMIT 1");
$mc['next_level']=$mc['level']+1;
$mc['flowerbed_max']=$mc['level']*10;
$mc['users_max']=($mc['level']*5)+10+$mc['users_add'];
if(isset(
$_GET['mycollective']) || isset($_GET['collective']) || isset($_GET['shark']))$mc['users']=mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_collective_user` WHERE `id_collective` = '$mc[id]'"),0);
}
if(isset(
$mc))
{
$rating_need=pow(2.71,$mc['level']+1)*1000;
if(
$mc['rating']>=$rating_need)mysql_query("UPDATE `farm_collective` SET `level` = '".($mc['level']+1)."' WHERE `id` = '$mc[id]'");
}

////////////////////////Кінець////////////////////////
mysql_query("UPDATE `farm_user` SET `count_cp` = '0' WHERE `time_cp` < '$time' and `id`='$ku[id]' LIMIT 1");
$tehnikaua=$ku['flowerbed']+$ku['cultivator']+$ku['seeder']+$ku['harvester']+$ku['irregate']+$ku['soiler']+$ku['conveyor']+$ku['fooder']+$ku['cooker']+$ku['shelfstand']+$ku['fishfooder']+$ku['incubator']+$ku['autocrane'];
mysql_query("UPDATE `farm_user` SET `tehnika` = '$tehnikaua' WHERE `id` = '$ku[id]'");
if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_ban` WHERE `id_user` = '$ku[id]' AND (`izg` = '1' AND ((`time`>'$time' OR `time`='0') AND `inlock`IS NULL)) LIMIT 1"),0)!=0){
$readban=mysql_fetch_array(mysql_query("SELECT * FROM `farm_ban` WHERE `id_user` = '$ku[id]' AND (`izg` = '1' AND ((`time`>'$time' OR `time`='0') AND `inlock`IS NULL)) LIMIT 1"));
echo 
'<div class="content block"><span style="color:red">Аккаунт '.$ku['nick'].' заблокирован '.($readban['time']>0?' до '.(vremja($readban['time'])).'':'НАВСЕГДА').' за<br/>нарушение правил Сайта. Любые<br/>действия под данным аккаунтом<br/>запрещены!<br/>Причина: '.$readban['msg'].'</span></li></div>';

exit;
}
if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_ban` WHERE `id_user` = '$ku[id]' AND `time` > '$time' AND `izg` = '0' AND `inlock` IS NULL LIMIT 1"),0)!=0)$molchi=1
$ban=mysql_fetch_array(mysql_query("SELECT * FROM `farm_ban` WHERE `id_user` = '$ku[id]' AND `time` > '$time' AND `izg` = '0' AND `inlock` IS NULL ORDER BY `id` DESC LIMIT 1"));
$us_ban=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '$ban[id_who]'"));
if(
$ku['action_time']>time()){$id_actio mysql_fetch_array(mysql_query("SELECT * FROM `farm_action` "));$id_action $id_actio['id_action'];}
////////
$collections=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collections` WHERE `id` = '$ku[id]'"));
$all_1 =  $collections['butterfly1'] + $collections['butterfly2'] + $collections['butterfly3'] + $collections['butterfly4'] + $collections['butterfly5'] + $collections['butterfly6'] + $collections['butterfly7'] + $collections['butterfly8'] + $collections['butterfly9'] + $collections['butterfly10'];
$all_2 =  $collections['coin1'] + $collections['coin2'] + $collections['coin3'] + $collections['coin4'] + $collections['coin5'] + $collections['coin6'] + $collections['coin7'] + $collections['coin8'] + $collections['coin9'] + $collections['coin10'];
$all_3 =  $collections['herbal1'] + $collections['herbal2'] + $collections['herbal3'] + $collections['herbal4'] + $collections['herbal5'] + $collections['herbal6'] + $collections['herbal7'] + $collections['herbal8'] + $collections['herbal9'] + $collections['herbal10'];
$all_4 =  $collections['wrapper1'] + $collections['wrapper2'] + $collections['wrapper3'] + $collections['wrapper4'] + $collections['wrapper5'] + $collections['wrapper6'] + $collections['wrapper7'] + $collections['wrapper8'] + $collections['wrapper9'] + $collections['wrapper10'];
$all_5 =  $collections['car1'] + $collections['car2'] + $collections['car3'] + $collections['car4'] + $collections['car5'] + $collections['car6'] + $collections['car7'] + $collections['car8'] + $collections['car9'] + $collections['car10'];
$all_6 =  $collections['necke1'] + $collections['necke2'] + $collections['necke3'] + $collections['necke4'] + $collections['necke5'] + $collections['necke6'] + $collections['necke7'] + $collections['necke8'] + $collections['necke9'] + $collections['necke10'];
$all_7 =  $collections['fan1'] + $collections['fan2'] + $collections['fan3'] + $collections['fan4'] + $collections['fan5'] + $collections['fan6'] + $collections['fan7'] + $collections['fan8'] + $collections['fan9'] + $collections['fan10'];
$all $all_1 $all_2 $all_3 $all_4 $all_5 $all_6 +$all_7;
$bon $all 2;
mysql_query("UPDATE `farm_user` SET `bonus` = '$bon' WHERE `id` = '$ku[id]'");

$user_box mysql_query("SELECT * FROM `farm_box` WHERE `time` <= '$time'");
while(
$dell_box mysql_fetch_assoc($user_box)){
mysql_query("DELETE FROM `farm_box` WHERE `id`='$dell_box[id]'");}
$gos=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective_gos` WHERE `active` = '1' ORDER BY `time` DESC LIMIT 1"));
$gos=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective_gos` WHERE `active` = '1' ORDER BY `time` DESC LIMIT 1"));
if(!
$gos)
{
$last_gos=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective_gos` WHERE `active` = '0' ORDER BY `time` DESC LIMIT 1"));
$plant_gos=mysql_fetch_array(mysql_query("SELECT * FROM `farm_plant` WHERE `id` != '$last_gos[id_plant]' AND `id_collective` = '0' ORDER BY rand() LIMIT 1"));
$type='rating';
$rand=rand(1,9);
if(
$rand==|| $rand==|| $rand==9)$type='harvest';
mysql_query("INSERT INTO `farm_collective_gos` SET `time` = '".($time+(3600*24*3+(rand(1,9)*60)))."', `id_plant` = '$plant_gos[id]', `type` = '$type', `active` = '1'");
$gos=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective_gos` WHERE `active` = '1' ORDER BY `time` DESC LIMIT 1"));
}
else
{
if(
$gos['time']<=$time)
{
$q=mysql_query("SELECT * FROM `farm_collective` WHERE (`rating_gos` > '10000000' OR `rating_gos` = '10000000')");
$num=0;
while(
$post=mysql_fetch_array($q))
{
$num++;
if(
$num==1)$prize=2000;elseif($num==2)$prize=1000;else $prize=0;
$oth=floor(($post['rating_gos']-10000000)/1000000);
$other=100+$oth;
if(
$other>500)$other=500;
$rubies=$prize+$other;
mysql_query("UPDATE `farm_collective` SET `rubies` = '".($post['rubies']+$rubies)."', `rating_gos` = '0' WHERE `id` = '$post[id]'");
mysql_query("INSERT INTO `farm_collective_gos_ct` SET `id_collective` = '$post[id]', `id_gos` = '$gos[id]', `count` = '$rubies'");
mysql_query("UPDATE `farm_collective_user` SET `rating_gos` = '0' WHERE `id_collective` = '$post[id]'");
}
mysql_query("UPDATE `farm_collective_gos` SET `active` = '0' WHERE `id` = '$gos[id]'");
mysql_query("DELETE FROM `farm_collective_rating_gos`");
}
}
mysql_query("DELETE FROM `farm_nursery_voller` WHERE `kol` = '0'");

if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_nursery` WHERE `id_user` = '$ku[id]'"),0)==0)
{


mysql_query("INSERT INTO `farm_nursery` SET `id_user` = '$ku[id]', `cultivator` = '1'");

}

if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_ban` WHERE `id_user` = '$ku[id]' AND `time` > '$time' AND `izg` = '0' AND `inlock` IS NULL LIMIT 1"),0)!=0)$molchi=1
$ban=mysql_fetch_array(mysql_query("SELECT * FROM `farm_ban` WHERE `id_user` = '$ku[id]' AND `time` > '$time' AND `izg` = '0' AND `inlock` IS NULL ORDER BY `id` DESC LIMIT 1"));
$us_ban=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '$ban[id_who]'"));
$sa=rand(4,10);
$sb=rand(4,10);
$sc=rand(4,10);
$sd=rand(4,10);
$sds=rand(4,10);
$kaa=rand(2,3);
$kab=rand(4,6);
$kac=rand(7,8);
$kal=rand(9,10);
if(
$ku['seat_zadanie']==0)
{
mysql_query("DELETE FROM `farm_nursery_zadanie` WHERE `id_user` = '$ku[id]'");
mysql_query("INSERT INTO `farm_nursery_zadanie` SET `id_user` = '$ku[id]', `id_nursery` = '$kaa', `kol` = '$sa'");
mysql_query("INSERT INTO `farm_nursery_zadanie` SET `id_user` = '$ku[id]', `id_nursery` = '$kab', `kol` = '$sb'");
mysql_query("INSERT INTO `farm_nursery_zadanie` SET `id_user` = '$ku[id]', `id_nursery` = '$kac', `kol` = '$sc'");
mysql_query("INSERT INTO `farm_nursery_zadanie` SET `id_user` = '$ku[id]', `id_nursery` = '$kal', `kol` = '$sd'");
mysql_query("UPDATE `farm_user` SET `time_voller` = '0' WHERE`id`='$ku[id]' LIMIT 1");
mysql_query("UPDATE `farm_user` SET `seat_zadanie` = '1' WHERE `id` = '$ku[id]' LIMIT 1");
}
///////////////////////////////////////house
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_house_komnata` WHERE `id_user` = '$ku[id]'"),0)<1)
{
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '1' , `golovna` = '1', `status` = '1'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '2'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '3'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '4'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '5'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '6'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '7'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '8'");
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]',`id_komnata` = '9'");
}
if(
$ku['bust']==0)
{
mysql_query("INSERT INTO `farm_house_komnata` SET `id_user` = '$ku[id]', `id_komnata` = 'gost'");
mysql_query("UPDATE `farm_user` SET `bust` = '1' WHERE `id` = '$ku[id]' LIMIT 1");
}
include 
"sys/house/fnc_house.php";
$bolls=$ku['ur_dom']+1;
if(
$ku['ur_dom']==0){$limit_nail=10;$limit_board=5;$limit_brick=10;$limit_voilok=5;$treba_nail=100;$treba_board=50;$treba_brick=0;$treba_voilok=0;}
if(
$ku['ur_dom']==1){$limit_nail=15;$limit_board=10;$limit_brick=15;$limit_voilok=10;$treba_nail=150;$treba_board=100;$treba_brick=0;$treba_voilok=0;}
if(
$ku['ur_dom']==2){$limit_nail=20;$limit_board=15;$limit_brick=20;$limit_voilok=15;$treba_nail=200;$treba_board=150;$treba_brick=100;$treba_voilok=0;}
if(
$ku['ur_dom']==3){$limit_nail=25;$limit_board=20;$limit_brick=25;$limit_voilok=20;$treba_nail=250;$treba_board=200;$treba_brick=250;$treba_voilok=0;}
if(
$ku['ur_dom']==4){$limit_nail=30;$limit_board=25;$limit_brick=30;$limit_voilok=25;$treba_nail=300;$treba_board=250;$treba_brick=300;$treba_voilok=0;}
if(
$ku['ur_dom']==5){$limit_nail=35;$limit_board=30;$limit_brick=35;$limit_voilok=30;$treba_nail=350;$treba_board=300;$treba_brick=350;$treba_voilok=300;}
if(
$ku['ur_dom']==6){}else
{
if(
$ku['nail']>=$treba_nail){if($ku['board']>=$treba_board){if($ku['brick']>=$treba_brick){if($ku['voilok']>=$treba_voilok){
$drom=1
///mysql_query("UPDATE `farm_user` SET `nail` = `$ku[nail]` - '$treba_nail', `board` = `$ku[board]` - '$treba_board', `brick` = `$ku[brick]` - '$treba_brick', `voilok` = `$ku[voilok]` - '$treba_voilok',  WHERE `id` = '$ku[id]' LIMIT 1");
$a1=$ku['nail']-$treba_nail;
$a2=$ku['board']-$treba_board;
$a3=$ku['brick']-$treba_brick;
$a4=$ku['voilok']-$treba_voilok;
mysql_query("UPDATE `farm_user` SET `nail` = '$a1' WHERE `id` = '$ku[id]' LIMIT 1");
mysql_query("UPDATE `farm_user` SET `board` = '$a2' WHERE `id` = '$ku[id]' LIMIT 1");
mysql_query("UPDATE `farm_user` SET `brick` = '$a3' WHERE `id` = '$ku[id]' LIMIT 1");
mysql_query("UPDATE `farm_user` SET `voilok` = '$a4' WHERE `id` = '$ku[id]' LIMIT 1");

mysql_query("UPDATE `farm_user` SET `ur_dom` = '$bolls' WHERE `id` = '$ku[id]' LIMIT 1");
}}}}

if(
$drom==1)
{
echo 
'<div class="feedback">
<ul class="feedbackPanel">
<li class="feedbackPanelERROR">
Поздоровляэмо , ви успешно построели дом '
.$bolls.' уровня
</li></ul></div>'
;
}
}
$cnf_bonus_doma=$ku['ur_dom']*50;

?>
Онлайн: 4
Реклама