0) { foreach($_POST as $k => $v) { if($v != null) { if(in_array($k, $RichText)) { $_POST[$k] = nl2br($_POST[$k]); $_POST[$k] = mysql_real_escape_string($_POST[$k]); } else { $_POST[$k] = preg_replace("/[^a-zA-Zа-яА-Я0-9_ -]/", "", $_POST[$k]); } } } } if(count($_GET) > 0) { foreach($_GET as $k => $v) { if($v != null) $_GET[$k] = preg_replace("/[^a-zA-Zа-яА-Я0-9_ -]/", "", $_GET[$k]); } } } public function Short($uid, $ad) { $us = $this->get_inf($uid); $clan_arr = mysql_fetch_assoc(mysql_query("SELECT `id`, `short` FROM `clans` WHERE `id` = '".$us['klan']."' LIMIT 1")); echo "login=".$us['login']."
"; echo "level=".$us['level']."
"; echo "align=".$us['align']."
"; echo "klan=".$clan_arr['short']."
"; echo "sex=".$us['sex']."
"; echo "str=".$us['sila']."
"; echo "agil=".$us['lovk']."
"; echo "int=".$us['inta']."
"; echo "dex=".$us['vinos']."
"; echo "status=".$us['status']."
"; echo "borncity=".$us['borncity']."
"; echo "block=".$us['block']."
"; echo "palmessage=".$us['palcom']."
"; echo "online=".(int)(time()-$us['chattime'] < 60*5)."
"; echo "hp=".$us['hp']."
"; echo "maxhp=".$us['maxhp']."
"; if($ad == 2.99) { echo "money=".$us['money']."
"; echo "rep=".$us['doblest']."
"; echo "laba=".$us['laba']."
"; if($us['laba'] > 0) { echo "-----------------------
"; echo "laba_x=".$us['x']."
"; echo "laba_y=".$us['y']."
"; echo "-----------------------
"; } echo "room=".$us['room']."
"; } echo "dress="; $dresses = mysql_query("SELECT `id`, `name`, `duration`, `maxdur` FROM `inventory` WHERE `owner` = '".$us['id']."' AND `dressed` = 1 AND `type` != 12"); while($dr = mysql_fetch_array($dresses)) { echo $dr['name']." ".(int)$dr['duration']."/".(int)$dr['maxdur'].","; } } } $Utils = new Utils();