Lamborghini Huracán LP 610-4 t
"; $id=cyr(htmlspecialchars(stripslashes(trim($id)))); $pass=cyr(htmlspecialchars(stripslashes(trim($pass)))); if(!empty($id)) { $q = mysql_query("select cars,guns,money,id,login,pass,band from users where id='".$id."';"); } else { die ($lang['empty_login']."

"); } $data = mysql_fetch_array($q); $id=$data['id']; $login=$data['login']; $band=$data['band']; $cars=$data['cars']; $guns=$data['guns']; $money=$data['money']; if($pass!=$data['pass']) { die ($lang['empty_login']."

"); } else { $band_q=mysql_query("select * from bands where name='".$band."';"); $band_array=mysql_fetch_array($band_q); $name=$band_array['name']; $boss=$band_array['boss']; $members=$band_array['members']; $avtoritet=$band_array['avtoritet']; $bcars=$band_array['cars']; $bguns=$band_array['guns']; $bmoney=$band_array['money']; $band_members = explode(".", $members); $count_members=count($band_members); } $band_level=0; for($i=0;$i<$count_members;$i++) { $level_ar=mysql_fetch_array(mysql_query("select level from users where login='".$band_members[$i]."';")); $band_level=$level_ar['level']+$band_level; } $band_level=ceil($band_level/$count_members); mysql_query("update bands set avtoritet='".$band_level."' where name='".$band."';"); if($count_members<=1) { mysql_query("delete from bands where name='".$band."';"); print $lang['band_haha']."
"; print "---
>".$lang['back']."
"; print ">>".$lang['menu']."
"; mysql_close(); include "./../includes/footer.php"; exit; } mysql_query("update users set last='".time()."',city='0' where id='".$id."';"); switch ($mode) { case "new_member": if($boss==$login) { if(!empty($a)) { if(empty($dbid) && !empty($imya)) { $imya=cyr(htmlspecialchars(stripslashes(trim($imya)))); $db=mysql_fetch_array(mysql_query("select id,band,pass from users where login='".$imya."';")); if(empty($db['id'])) die($lang['bands_such_man_not_exist']."
".$lang['back']."

"); if(in_array($imya, $band_members)) die($lang['bands_already_in_your_band']."
".$lang['back']."

"); if(!empty($db['band'])) die($lang['bands_user_already_have_band']."
".$lang['back']."

"); $dbid=$db['id']; $dbpass=$db['pass']; mysql_query("DELETE FROM messagi WHERE kto='".$dbid."' and komu=".$id." limit 1;"); $messaga="$login ".$lang['bands_accept_you_in']." $band!
[".$lang['ok']."]"; mysql_query("insert into messagi values(0,'$id','$dbid','$messaga');"); mysql_query("update bands set members='$members.$imya' where name='".$band."';"); mysql_query("update users set band='".$band."' where id='".$db['id']."';"); print "$imya ".$lang['bands_accepted_in_band']."
"; } else { $dbid=cyr(htmlspecialchars(stripslashes(trim($_GET[dbid])))); $db=mysql_fetch_array(mysql_query("select login,band,pass from users where id='".$dbid."';")); $dblogin=$db['login']; $dbpass=$db['pass']; $dbband=$db['band']; if(empty($dblogin)) die($lang['bands_such_man_not_exist']."
".$lang['back']."

"); if(!empty($dbband)) die($lang['bands_user_already_have_band']."
".$lang['back']."

"); if(in_array($dblogin, $band_members)) die($lang['bands_already_in_your_band']."
".$lang['back']."

"); mysql_query("update bands set members='$members.$dblogin' where name='".$band."';"); mysql_query("update users set band='".$band."' where id='".$dbid."';"); mysql_query("DELETE FROM messagi WHERE kto='".$dbid."' and komu=".$id." limit 1;"); $messaga="$login ".$lang['bands_accept_you_in']." $band!
[".$lang['ok']."]"; mysql_query("insert into messagi values(0,'$id','$dbid','$messaga');"); print "".$dblogin." ".$lang['bands_accepted_in_band']."
"; } } else { print $lang['bands_enter_nickname_man']."
"; print "
"; print "".$lang['ok']."
"; } } print ">".$lang['game_your_band']."
"; break; case "del_member": if($boss==$login) { if(!empty($a)) { $imya=cyr(htmlspecialchars(stripslashes(trim($imya)))); $db=mysql_fetch_array(mysql_query("select id from users where login='".$imya."';")); if(empty($db['id'])) die($lang['bands_such_man_not_exist']."
".$lang['back']."

"); if(!in_array($imya, $band_members)) die($lang['bands_such_man_not_exist']."
".$lang['back']."

"); mysql_query("update users set band='' where id='".$db['id']."';"); if($count_members<=1) { $members=str_replace("$imya","","$members"); mysql_query("update bands set members='$members' where name='".$band."';"); } elseif($count_members>1 && $band_members[0]!=$imya) { $members=str_replace(".$imya","","$members"); mysql_query("update bands set members='$members' where name='".$band."';"); } elseif($count_members>1 && $band_members[0]==$imya) { $members=str_replace("$imya.","","$members"); mysql_query("update bands set members='$members' where name='".$band."';"); } print "$imya ".$lang['bands_removed_from_band']."
"; } else { print $lang['bands_enter_nickname_man']."
"; print "
"; print "".$lang['ok']."
"; } } print ">".$lang['game_your_band']."
"; break; case "exit_band": if(empty($r)) { print $lang['bands_your_accept_it']."
"; print "[".$lang['bands_exit_user']."/"; print "".$lang['bands_remain_user']."]
"; print ">".$lang['game_your_band']."
"; } else { mysql_query("update users set band='' where id='".$id."';"); if($count_members<=1) { $members=str_replace("$login","","$members"); mysql_query("update bands set members='$members' where name='".$band."';"); } elseif($count_members>1 && $band_members[0]!=$login) { $members=str_replace(".$login","","$members"); mysql_query("update bands set members='$members' where name='".$band."';"); } elseif($count_members>1 && $band_members[0]==$login) { $members=str_replace("$login.","","$members"); mysql_query("update bands set members='$members' where name='".$band."';"); } print $lang['bands_you_exit_from']." $band!
"; } break; case "common_cars": if($a=="v") { if(empty($tachka)) { if(!empty($bcars)) { $cars_count = explode(".", $bcars); $count_cars=count($cars_count); print $lang['uv_cars']." ($count_cars):

"; print "
".$lang['bands_take']."
"; } else { print $lang['bands_no_common_cars']."
"; } } else { $cars_count = explode(".", $bcars); $count_cars=count($cars_count); if(!in_array($tachka,$cars_count)) die($lang['fa_car_false']."
".$lang['back']."

"); if(empty($cars)) mysql_query("update users set cars='$tachka' where id='".$id."';"); else mysql_query("update users set cars='$cars.$tachka' where id='".$id."';"); $cars_count = explode(".", $bcars); $count_cars=count($cars_count); if($count_cars<=1) { $bcars=str_replace("$tachka","","$bcars"); mysql_query("update bands set cars='$bcars' where name='".$band."';"); } elseif($count_cars>1 && $cars_count[0]!=$tachka) { $bcars=str_replace(".$tachka","","$bcars"); mysql_query("update bands set cars='$bcars' where name='".$band."';"); } elseif($count_cars>1 && $cars_count[0]==$tachka) { $bcars=str_replace("$tachka.","","$bcars"); mysql_query("update bands set cars='$bcars' where name='".$band."';"); } print "$tachka ".$lang['bands_car_now_at_you']."
"; } } elseif($a=="d") { if(empty($tachka)) { if(!empty($cars)) { $cars_count = explode(".", $cars); $count_cars=count($cars_count); print $lang['uv_cars']." ($count_cars):
"; print "
".$lang['bands_add']."
"; } else { print $lang['bands_user_without_cars']."
"; } } else { $cars_count = explode(".", $cars); if(!in_array($tachka,$cars_count)) die($lang['fa_car_false']."
".$lang['back']."

"); if(empty($bcars)) mysql_query("update bands set cars='$tachka' where name='".$band."';"); else mysql_query("update bands set cars='$bcars.$tachka' where name='".$band."';"); $count_cars=count($cars_count); if($count_cars<=1) { $cars=str_replace("$tachka","","$cars"); mysql_query("update users set cars='$cars' where id='".$id."';"); } elseif($count_cars>1 && $cars_count[0]!=$tachka) { $cars=str_replace(".$tachka","","$cars"); mysql_query("update users set cars='$cars' where id='".$id."';"); } elseif($count_cars>1 && $cars_count[0]==$tachka) { $cars=str_replace("$tachka.","","$cars"); mysql_query("update users set cars='$cars' where id='".$id."';"); } print "$tachka ".$lang['bands_now_in_common']."
"; } } print "".$lang['bands_take_car_from_common']."
"; print "".$lang['bands_add_car_into_common']."
"; print ">".$lang['game_your_band']."
"; break; case "common_guns": if($a=="v") { if(empty($puwka)) { if(!empty($bguns)) { $guns_count = explode(".", $bguns); $count_guns=count($guns_count); print $lang['bands_guns']." ($count_guns):
"; print "
".$lang['bands_take']."
"; } else { print $lang['bands_no_common_guns']."
"; } } else { $guns_count = explode(".", $bguns); $count_guns=count($guns_count); if(!in_array($puwka,$guns_count)) die($lang['bands_no_common_guns']."
".$lang['back']."

"); if(empty($guns)) mysql_query("update users set guns='$puwka' where id='".$id."';"); else mysql_query("update users set guns='$guns.$puwka' where id='".$id."';"); $guns_count = explode(".", $bguns); $count_guns=count($guns_count); if($count_guns<=1) { $bguns=str_replace("$puwka","","$bguns"); mysql_query("update bands set guns='$bguns' where name='".$band."';"); } elseif($count_guns>1 && $guns_count[0]!=$puwka) { $bguns=str_replace(".$puwka","","$bguns"); mysql_query("update bands set guns='$bguns' where name='".$band."';"); } elseif($count_guns>1 && $guns_count[0]==$puwka) { $bguns=str_replace("$puwka.","","$bguns"); mysql_query("update bands set guns='$bguns' where name='".$band."';"); } print "$puwka ".$lang['bands_gun_now_at_you']."
"; } } elseif($a=="d") { if(empty($puwka)) { if(!empty($guns)) { $guns_count = explode(".", $guns); $count_guns=count($guns_count); print $lang['uv_cars']." ($count_guns):
"; print "
".$lang['bands_add']."
"; } else { print $lang['bands_user_without_guns']."
"; } } else { $guns_count = explode(".", $guns); if(!in_array($puwka,$guns_count)) die($lang['bands_user_without_guns']."
".$lang['back']."

"); if(empty($bguns)) mysql_query("update bands set guns='$puwka' where name='".$band."';"); else mysql_query("update bands set guns='$bguns.$puwka' where name='".$band."';"); $count_guns=count($guns_count); if($count_guns<=1) { $guns=str_replace("$puwka","","$guns"); mysql_query("update users set guns='$guns' where id='".$id."';"); } elseif($count_guns>1 && $guns_count[0]!=$puwka) { $guns=str_replace(".$puwka","","$guns"); mysql_query("update users set guns='$guns' where id='".$id."';"); } elseif($count_guns>1 && $guns_count[0]==$puwka) { $guns=str_replace("$puwka.","","$guns"); mysql_query("update users set guns='$guns' where id='".$id."';"); } print "$puwka ".$lang['bands_now_in_common']."
"; } } print "".$lang['bands_take_gun_from_common']."
"; print "".$lang['bands_add_gun_into_common']."
"; print ">".$lang['game_your_band']."
"; break; case "common_money": if($a=="v") { if(empty($babl)) { if(empty($bmoney) || $bmoney<=0) print $lang['bands_common_no_money']."
"; else { print $lang['bands_in_common']." $bmoney$$."; print $lang['bands_how_much_money_you_want']."
"; print "
"; print "".$lang['ok']."
"; } } else { /*if($babl>50) print $lang['bands_common_limit_50']."
"; else {*/ if(empty($bmoney) || $bmoney<=0) print $lang['bands_common_no_money']."
"; else { $babl=cyr(htmlspecialchars(stripslashes(trim($babl)))); $money=$babl+$money; $babl=$bmoney-$babl; if(empty($babl) || $babl<=0) print $lang['bands_common_no_money']."
"; else { mysql_query("update bands set money='".$babl."' where name='".$band."';"); mysql_query("update users set money='".$money."' where id='".$id."';"); print $lang['bands_you_owned_common_money']." $money$$
"; /*}*/ } } } } elseif($a=="d") { if(empty($babl)) { if(empty($money) || $money<=0) print $lang['bands_user_without_money_for']."
"; else { print $lang['bands_money_at_you']." $money$$."; print $lang['bands_how_much_money_put']."

"; print "
"; print "".$lang['ok']."
"; } } else { if(empty($money) || $money<=0) print $lang['bands_user_without_money_for']."
"; else { $babl=cyr(htmlspecialchars(stripslashes(trim($babl)))); $money=$money-$babl; $bmoney=$bmoney+$babl; if($money<=0) die($lang['bands_user_without_money_for']."
".$lang['back']."

"); mysql_query("update bands set money='".$bmoney."' where name='".$band."';"); mysql_query("update users set money='".$money."' where id='".$id."';"); print $lang['bands_money_in_common_account']." ".$babl."$$
"; } } } print "".$lang['bands_take_money_from_common']."
"; print "".$lang['bands_add_money_into_common']."
"; print ">".$lang['game_your_band']."
"; break; case "mes": if(empty($messaga)) { print $lang['bands_mes_title'].":
"; print "
"; print "".$lang['ok']."
"; } else { $messaga2=htmlspecialchars(stripslashes(trim($messaga))); for($i=0;$i<$count_members;$i++) { $mes_ar=mysql_fetch_array(mysql_query("select id,pass from users where login='".$band_members[$i]."';")); $messaga="$login-".$lang['bands_boss']." $band:
".$messaga2."
[".$lang['mes_reply']."/".$lang['mes_del']."]"; mysql_query("insert into messagi values(0,'$id','".$mes_ar['id']."','$messaga');"); } print $lang['bands_mes_peredan']."
"; } print ">".$lang['game_your_band']."
"; break; default: print "".$lang['bands_bandname'].": $name
"; $db=mysql_fetch_array(mysql_query("select id from users where login='".$boss."';")); $bossid=$db['id']; if(empty($bossid)) { srand((double)microtime() *1000000); $rand_key = array_rand($band_members,2); print $lang['bands_old_b_new_b']."
"; $new_boss=$band_members[$rand_key[0]]; print $new_boss."
"; mysql_query("update bands set boss='".$new_boss."' where name='".$band."';"); } print "".$lang['bands_boss'].": $boss
"; print "".$lang['uv_level'].": $avtoritet
"; print "".$lang['bands_members']."($count_members):
"; for($i=0;$i<$count_members;$i++) { print $band_members[$i].","; } print "
"; if($boss==$login) { print "".$lang['bands_new_member_of_gang']."
".$lang['bands_del_band_member']."
".$lang['bands_mes_to_all']."
"; } print "".$lang['bands_common_cars']."
".$lang['bands_common_guns']."
".$lang['bands_common_money']."
".$lang['bands_exit_band']."
"; break; } print "---
>".$lang['back']."
"; print ">>".$lang['menu']."
"; mysql_close(); include "./../includes/footer.php"; ?>