XtGem Forum catalog
"; $id=cyr(htmlspecialchars(stripslashes(trim($id)))); $pass=cyr(htmlspecialchars(stripslashes(trim($pass)))); $dbid=cyr(htmlspecialchars(stripslashes(trim($_GET[dbid])))); if(!empty($id)) { $q = mysql_query("select band,guns,id,login,pass,status,reg_data,money,level,police,health from users where id='".$id."';"); } else { die ($lang['empty_login']."

"); } if(!empty($dbid)) { $qdb = mysql_query("select * from users where id='".$dbid."';"); } else { die ($lang['select_user_false']."

"); } $data = mysql_fetch_array($q); $id=$data['id']; $login=$data['login']; $status=$data['status']; $reg_data=$data['reg_data']; $money=$data['money']; $level=$data['level']; $police=$data['police']; $health=$data['health']; $guns=$data['guns']; $band=$data['band']; $dbdata = mysql_fetch_array($qdb); $dbid=$dbdata['id']; $dblogin=$dbdata['login']; $dbstatus=$dbdata['status']; $dbreg_data=$dbdata['reg_data']; $dbmoney=$dbdata['money']; $dblevel=$dbdata['level']; $dbpolice=$dbdata['police']; $dblife=$dbdata['life']; $dbhealth=$dbdata['health']; $dbcars=$dbdata['cars']; $dbguns=$dbdata['guns']; $dbstatus=$dbdata['status']; $dbabout=$dbdata['about']; $dbmobile=$dbdata['mobile']; $dbemail=$dbdata['email']; $dbband=$dbdata['band']; $dbreg_data=$dbdata['reg_data']; $reg=explode(":",$dbreg_data); $dbsecur=$dbdata['secur']; if($pass!=$data['pass']) { die ($lang['empty_login']."

"); } include "includes/inc_refs.php"; mysql_query("update users set last='".time()."',city='0' where id='".$id."';"); switch ($mode) { case cars: if(!empty($dbsecur) && $dbsecur!=0) die ($lang['secur_oblom']."
".$lang['back']."

"); if($money>=$dbmoney || $level>=$dblevel) { if(!empty($guns) && empty($gun_ugnal)) { print $lang['uv_which_gun']." $tachki ".$lang['uv_u']." $dblogin?
"; $guns_count = explode(".", $guns); $count_guns=count($guns_count); print "
"; print "".$lang['uv_try_steal']."
"; } elseif(!empty($gun_ugnal)) { $attack_q = mysql_query("select who from attack where userid='$dbid';"); $attack_d=mysql_fetch_array($attack_q); $who=explode(".",$attack_d['who']); if($who[0]==$id) { print $lang['patience']; } else { /* include "includes/func_gun_power.php"; */ $gun_ugnal22=$gun_ugnal; $tachki=cyr($tachki); if($gun_ugnal==$lang['gun1'])$gun_ugnal=1; elseif($gun_ugnal==$lang['gun2'])$gun_ugnal=2; elseif($gun_ugnal==$lang['gun3'])$gun_ugnal=3; elseif($gun_ugnal==$lang['gun4'])$gun_ugnal=4; elseif($gun_ugnal==$lang['gun5'])$gun_ugnal=5; elseif($gun_ugnal==$lang['gun6'])$gun_ugnal=6; elseif($gun_ugnal==$lang['gun7'])$gun_ugnal=7; elseif($gun_ugnal==$lang['gun8'])$gun_ugnal=8; elseif($gun_ugnal==$lang['gun9'])$gun_ugnal=9; elseif($gun_ugnal==$lang['gun10'])$gun_ugnal=10; elseif($gun_ugnal==$lang['gun11'])$gun_ugnal=11; elseif($gun_ugnal==$lang['gun12'])$gun_ugnal=12; print $lang['uv_if']." $dblogin ".$lang['uv_wait']; mysql_query("insert into attack values(0,'$dbid','$id.$login','$login ".$lang['uv_mes1']." $tachki! ".$lang['uv_mes2']." $gun_ugnal22! ".$lang['uv_mes3']."','".$gun_ugnal."','".time()."','$tachki');"); } } elseif(empty($guns)) { print $lang['uv_without_guns']; } } else { print $lang['uv_not_perm']; } break; default: print "[".$lang['uv_head']." $dblogin]
"; print $lang['regabout'].": $dbabout
"; print $lang['uv_mobile'].": $dbmobile
"; print $lang['uv_mail'].": $dbemail
"; print $lang['uv_regdate1'].": ".$reg[1]." ".$lang['uv_regdate2']." ".$reg[0]." ".$lang['uv_regdate3']."
"; if($id!=$dbid) { if(!empty($band)) $boss_q=mysql_fetch_array(mysql_query("select boss from bands where name='".$band."';")); if(empty($band) && empty($dbband)) print "[".$lang['uv_make_band']."]
"; elseif(!empty($band) && empty($dbband) && $login==$boss_q['boss']) print "[".$lang['uv_put_band']."]
"; elseif(empty($band) && !empty($dbband)) print "[".$lang['uv_enter_band']."]
"; print "[".$lang['uv_mes']."]
"; print "[".$lang['uv_fight']."]
"; } print "[Игровые данные]
"; print $lang['uv_money'].": $dbmoney $$
"; print $lang['uv_health'].": $dbhealth %
"; print $lang['uv_police'].": $dbpolice
"; print $lang['uv_level'].": $dblevel
"; if(!empty($dbband)) print $lang['uv_band'].": $dbband
"; print $lang['uv_status'].": $dbstatus
"; if(!empty($dbcars)) { $cars_count = explode(".", $dbcars); $count_cars=count($cars_count); print $lang['uv_cars']." ($count_cars):

"; print "
".$lang['uv_try_steal']."
"; } if(!empty($dbguns)) { $guns_count = explode(".", $dbguns); $count_guns=count($guns_count); print $lang['uv_guns']." ($count_guns):
"; for($i=0;$i<$count_guns;$i++) { print $guns_count[$i].","; } } break; } print "
---
>".$lang['back']."
"; print ">>".$lang['menu']."
"; mysql_close(); print "

"; ?>