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

"); } $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']; $cars=$data['cars']; $guns=$data['guns']; $band=$data['band']; $golod=$data['golod']; $secur=$data['secur']; if($pass!=$data['pass']) { die ($lang['empty_login']."

"); } mysql_query("update users set last='".time()."',city='0' where id='".$id."';"); print $lang['game_hello1'].", $login! ".$lang['game_hello2']."
"; print "[".$lang['game_towns']."]
"; if($level<50) { print "".$lang['game_city1']."
"; print $lang['game_city2']."
".$lang['game_city3']."
"; } elseif($level>=50 && $level<100) { print "".$lang['game_city1']."
"; print "".$lang['game_city2']."
"; print $lang['game_city3']."
"; } elseif($level>=100) { print "".$lang['game_city1']."
"; print "".$lang['game_city2']."
"; print $lang['game_city3']."
"; } if(!empty($band)) { $band_q=mysql_query("select members from bands where name='".$band."';"); $band_array=mysql_fetch_array($band_q); $members=$band_array['members']; $band_members = explode(".", $members); if(empty($members) || !in_array($login,$band_members)) mysql_query("update users set band='' where id='".$id."';"); else { print "[".$lang['game_your_band']."]
"; print "$band
"; } } include("includes/inc_statusy.php"); print "[".$lang['game_stats']."]
"; print $lang['uv_money'].": $money $$
"; print $lang['uv_health'].": $health %
"; print $lang['uv_golod'].": $golod %
"; print $lang['uv_police'].": $police
"; print $lang['uv_level'].": $level
"; print $lang['uv_status'].": $status
"; print $lang['uv_secur'].": $secur"; if(!empty($cars)) { $cars_count = explode(".", $cars); $count_cars=count($cars_count); print "
".$lang['game_cars']." ($count_cars):
"; for($i=0;$i<$count_cars;$i++) { print $cars_count[$i].","; } } if(!empty($guns)) { $guns_count = explode(".", $guns); $count_guns=count($guns_count); print "
".$lang['game_guns']." ($count_guns):
"; for($i=0;$i<$count_guns;$i++) { print $guns_count[$i].","; } } mysql_close(); print "

"; ?>