Файл: golden_birds/dost_sklad_sql.php
Строк: 1
<?
mysql_query("UPDATE `user` SET `birds_progress_sklad` = '".($user['birds_progress_sklad']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
if ($user['birds_progress_sklad']==50) {
mysql_query("UPDATE `user` SET `birds_progress_sklad50` = '".($user['birds_progress_sklad50']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+5;
mysql_query("UPDATE `user` SET `birds_progress_sklad_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
if ($user['birds_progress_sklad']==150) {
mysql_query("UPDATE `user` SET `birds_progress_sklad150` = '".($user['birds_progress_sklad150']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+5;
mysql_query("UPDATE `user` SET `birds_progress_sklad_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
if ($user['birds_progress_sklad']==350) {
mysql_query("UPDATE `user` SET `birds_progress_sklad350` = '".($user['birds_progress_sklad350']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+5;
mysql_query("UPDATE `user` SET `birds_progress_sklad_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
if ($user['birds_progress_sklad']==1000) {
mysql_query("UPDATE `user` SET `birds_progress_sklad1000` = '".($user['birds_progress_sklad1000']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+5;
mysql_query("UPDATE `user` SET `birds_progress_sklad_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
?>