Просмотр файла public_html/games/rynok.php

Размер файла: 19.09Kb
<?php
############################################
### Этот скрипт написан для Wap-Motor 18 ###
###Автор скрипта Dred#######################
###ICQ: 757041##############################
###Сайт: http://nmn.webhop.net##############
###Желающие могут подкинуть деньжат#########
###Z840880492902############################
###R852036927651############################
############################################
 require_once"../template/start.php";require_once"../template/regglobals.php";require_once"../template/config.php";require_once"../template/siti_conf.php";require_once"../template/functions.php";require_once"../template/antidos.php";require_once"../template/cookies.php";require_once"../template/gzip.php";require_once"../template/header.php";require_once"../template/referer.php";include_once"../themes/$config_themes/index.php";include_once"../template/isset.php";if($gorod_otk==0){echo'<font color="#FF0000"><big><b>Доступ в город закрыт АДМИНИСТРАТОРОМ!</font></big></b><hr>';echo'<br><a href="../index.php?'.SID.'">На главную</a><br>';require_once"../themes/$config_themes/foot.php";exit;}if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!=""){$vud=$udata[180];$g= @file("../local/navigator/$log.game"); $gt = explode(":||:",$g[0]);$gam=trim($gt[0]);if ($gam=="") {$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$gametext=$log.':||:'.$gtxt[1].':||:'.$gtxt[2].':||:'.$gtxt[3].':||:'.$gtxt[4].':||:'.$gtxt[5].':||:'.$gtxt[6].':||:'.$gtxt[7].':||:'.$gtxt[8].':||:'.$gtxt[9].':||:'.$gtxt[10].':||:'.$gtxt[11].':||:'.$gtxt[12].':||:'.$gtxt[13].':||:'.$gtxt[14].':||:'.$gtxt[15].':||:'.$gtxt[16].':||:'.$gtxt[17].':||:'.$gtxt[18].':||:'.$gtxt[19].':||:'.$gtxt[20].':||:'.$gtxt[21].':||:'.$gtxt[22].':||:'.$gtxt[23].':||:'.$gtxt[24].':||:'.$gtxt[25].':||:'.$gtxt[26].':||:'.$gtxt[27].':||:'.$gtxt[28].':||:'.$gtxt[29].':||:'.$gtxt[30].':||:'.$gtxt[31].':||:'.$gtxt[32].':||:'.$gtxt[33].':||:'.$gtxt[34].':||:'.$gtxt[35].':||:'.$gtxt[36].':||:'.$gtxt[37].':||:'.$gtxt[38].':||:'.$gtxt[39].':||:'.$gtxt[40].':||:'.$gtxt[41].':||:'.$gtxt[42].':||:'.$gtxt[43].':||:'.$gtxt[44].':||:'.$gtxt[45].':||:'.$gtxt[46].':||:'.$cen.':||:'.$cena.':||:'.$cenad.':||:'.$cenacc.':||:';$fp=fopen("../local/navigator/$log.game","w"); flock($fp,LOCK_EX); fputs($fp,"$gametext");fflush($fp);flock($fp,LOCK_UN);fclose($fp); chmod ("../local/navigator/$log.game", 0666);header ("Location: rynok.php?".SID);}if(empty($action)){echo "<div class=a>Pынoк</div>"; if($udata[36]<=3){echo''.$log.' чтобы продать краденое- повышай свой статус! Для проведения операций нужно хотябы 3 баллов!<br>';}else{echo''.$log.', тут ты можешь продать краденое или б/у! <br>';$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$stvol=$gtxt[5];require_once"admin/inc.php";$dv10=round(($cena/100)*20);$cena=round($cena-$dv10);$ttt = rand (0, 100);if ($vud=="2"){$cena=round((($cena*1)/100)-$ttt);}$siti_g = file("../local/navigator/conf/reltor.dat"); $siti_reltor = explode("|",$siti_g[0]);$dom=$gtxt[3];$risdom=$gtxt[4];if ($dom=="Картонная коробка"){$cenad=30;}if ($dom==$siti_reltor[0]){$cenad=$siti_reltor[1];}if ($dom==$siti_reltor[2]){$cenad=$siti_reltor[3];}if ($dom==$siti_reltor[4]){$cenad=$siti_reltor[5];}if ($dom==$siti_reltor[6]){$cenad=$siti_reltor[7];}if ($dom==$siti_reltor[8]){$cenad=$siti_reltor[9];}if ($dom==$siti_reltor[10]){$cenad=$siti_reltor[11];}if ($dom==$siti_reltor[12]){$cenad=$siti_reltor[13];}if ($dom==$siti_reltor[14]){$cenad=$siti_reltor[15];}if ($dom==$siti_reltor[16]){$cenad=$siti_reltor[17];}if ($dom==$siti_reltor[18]){$cenad=$siti_reltor[19];}if ($dom==$siti_reltor[20]){$cenad=$siti_reltor[21];}if ($dom==$siti_reltor[22]){$cenad=$siti_reltor[23];}if ($dom==$siti_reltor[24]){$cenad=$siti_reltor[25];}if ($dom==$siti_reltor[26]){$cenad=$siti_reltor[27];}$dvik=round(($cenad/100)*20);$cenad=round($cenad-$dvik);$ttt =rand(0, 100);if ($vud=="2"){$cenad=round((($cenad*1)/100)-$ttt);}$car=$gtxt[1];$riscar=$gtxt[2];if ($car=="SUZUKI"){$cenacc=480;}if ($car=="MERCEDES S-class"){$cenacc=2100;}if ($car=="Audi TT"){$cenacc=2730;}if ($car=="ГАЗ-2110"){$cenacc=1500;}if ($car=="BMW-X5"){$cenacc=3860;}if ($car=="Ferrari C300"){$cenacc=4000;}if ($car=="Mitsubishi Evilution"){$cenacc=6390;}if ($car=="DODGE Vipper"){$cenacc=7290;}if ($car=="Porshe Carrera"){$cenacc=7850;}if ($car=="Bugatti"){$cenacc=8710;}if ($car=="BMW Z7"){$cenacc=10999;}if ($car=="Harley-Davidson"){$cenacc=43300;}if ($car=="Bepтoлёт"){$cenacc=89900;}if ($car=="Caмoлёт"){$cenacc=118100;}if ($car=="STELS"){$cenacc=276900;}if ($car=="FORD Mustang"){$cenacc=12140;}if ($car=="JEEP HAMMER"){$cenacc=73400;}if ($car=="Lotus"){$cenacc=81700;}if ($car=="F1"){$cenacc=195850;}if ($car=="TANK"){$cenacc=183700;}if ($car=="Tanker"){$cenacc=55390;}if ($car=="Aвиaнoceц"){$cenacc=95470;}if ($car=="NISSAN SKYLINE"){$cenacc=8890;}if ($car=="SPEED MOTO"){$cenacc=11590;}if ($car=="SPEED CAR"){$cenacc=27695;}if ($car=="AIR BUS"){$cenacc=19569;}if ($car=="BIG 4X4"){$cenacc=19569;}if ($car=="HAMMER H3"){$cenacc=18570;}if ($car=="JEEP Лимyзин"){$cenacc=54460;}if ($car=="Lamborgini Diablo"){$cenacc=96070;}if ($car=="Caмoкaт"){$cenacc=0;}if ($car=="SEAT"){$cenacc=102060;}if ($car=="TIPE-R"){$cenacc=122930;}if ($car=="Vipper"){$cenacc=195061;}if ($car=="Craysler"){$cenacc=292380;}if ($car=="Aston Martin"){$cenacc=280950;}if ($car=="Gibrit-Car"){$cenacc=350250;}if ($car=="SUBARU IMPRESA"){$cenacc=399000;}if ($car=="Porshe"){$cenacc=497000;}if ($car=="Cherpak"){$cenacc=820000;}if ($car=="Renault"){$cenacc=900101;}if ($car=="Cabrialet"){$cenacc=110099;}if ($car=="Speed-CaR"){$cenacc=110295;}if ($car=="Turbo-NOS"){$cenacc=148820;}if ($car=="CRAYSLER"){$cenacc=164480;}if ($car=="PORSHE 4X4"){$cenacc=200099;}if ($car=="PORSHE BOXER"){$cenacc=220999;}if ($car=="PORSHE RED"){$cenacc=219100;}if ($car=="Mersedes-BENZ AMG"){$cenacc=29100;}if ($car=="BUGATTI-SPORT"){$cenacc=480999;}if ($car=="Fordec"){$cenacc=25000;}if ($car=="BMW-FARSH"){$cenacc=30000;}if ($car=="Toyota-2007"){$cenacc=40000;}if ($car=="Shark"){$cenacc=450000;}if ($car=="Porshik"){$cenacc=500000;}if ($car=="BUMER X6"){$cenacc=600000;}if ($car=="BUMER"){$cenacc=80000;}if ($car=="MEREN AMG"){$cenacc=100000;}if ($car=="Prototip"){$cenacc=150000;}if ($car=="Lamborgini-X"){$cenacc=250000;}if ($car=="TURBINA-X"){$cenacc=380000;}if ($car=="Bugatty-X"){$cenacc=500000;}if ($car=="Peugeot 908"){$cenacc=50000;}if ($car=="Peugeot FREEZA"){$cenacc=18500;}$ttt =rand(0,100);if ($vud=="2"){$cenacc=0;}$gam = @file("../local/navigator/girl/$log.game"); $gts = explode(":||:",$gam[0]);$pars=$gts[12];$rispar=$gts[13];if ($pars=="Проститутка"){$cen=7000;}if ($pars=="Малышка"){$cen=20000;}if ($pars=="Негритянка "){$cen=35000;}if ($pars=="Мама зона"){$cen=50000;}if ($pars=="Топ звезда"){$cen=100000;}if ($pars=="Зверек Ванька"){$cen=1000;}if ($pars=="Шалун"){$cen=35000;}if ($pars=="Poбepт"){$cen=80000;}if ($pars=="Pacпyтин"){$cen=500000;}$ttt = rand (0, 100);if ($vud=="2"){$cenad=round((($cenad*1)/100)-$ttt);}echo'-------------------------------<br>';if ($stvol!="") {echo'<font color="#FFF000">Оружие: </font>'.$stvol.'<br>';echo'<form action="rynok.php?action=st&amp;'.SID.'" method="post"><input type="hidden" name="oru" value="'.$cena.'"><input type="submit" value="Продать '.$cena.'$"></form>';}else{if(isset($prod)){echo'<font color="lightgreen">Продано</font><br>';}echo'<font color="#FFF000">Оружие:</font> НЕТ оружия!<br>';}echo'-------------------------------<br>';if ($dom!="") {echo'<font color="#FFF000">Твоё логово: </font><br>'.$dom.'<br><img src="dom/'.$gtxt[4].'" alt=""><br>';echo'<form action="rynok.php?action=d&amp;'.SID.'" method="post"><input type="hidden" name="ned" value="'.$cenad.'"><input type="submit" value="Продать '.$cenad.'$"></form>';}else{if(isset($d)){echo'<font color="lightgreen">Продано</font><br>';}echo'<font color="#FFF000">Место жительства: </font>БОМЖ...<br>';}echo'-------------------------------<br>';if ($riscar!="") {echo'<font color="#FFF000">Тачка: </font>'.$car.'<br><img src="car/'.$gtxt[2].'" alt=""><br>';echo'<form action="rynok.php?action=c&amp;'.SID.'" method="post"><input type="hidden" name="avt" value="'.$cenacc.'"><input type="submit" value="Продать '.$cenacc.'$"></form>';}else{if(isset($c)){echo'<font color="lightgreen">Продано</font><br>';}echo'<font color="#FFF000">Тачка: </font>нет тачки<br>';}echo'-------------------------------<br>';$gav = @file("../local/walkman/$log.game"); $vs = explode(":||:",$gav[0]);$rismob=$vs[52];$mob=$vs[51];$dk=round(($vs[50]/100)*20);$mobcen=round($vs[50]-$dk);if ($rismob!="") {echo'<font color="#FFF000">Мобила: </font>'.$mob.'<br><img src="mobi/'.$rismob.'" alt=""><br>';echo'<form action="rynok.php?action=mob&amp;'.SID.'" method="post"><input type="hidden" name="mbs" value="'.$mobcen.'"><input type="submit" value="Продать '.$mobcen.'$"></form>';}else{if(isset($mb)){echo'<font color="lightgreen">Продано</font><br>';}echo'<font color="#FFF000">Мобила: </font>нет мобилы<br>';}echo'-------------------------------<br>';if ($rispar!="") {echo'<font color="#FFF000">Тёлка: </font>'.$pars.'<br><img src="par/'.$gts[13].'" alt=""><br>';echo'<form action="rynok.php?action=telka&amp;'.SID.'" method="post"><input type="hidden" name="prk" value="'.$cen.'"><input type="submit" value="Продать '.$cen.'$"></form>';}else{if(isset($telka)){echo'<font color="lightgreen">Продано</font><br>';}echo'<font color="#FFF000">Тёлка: </font>нет тёлки<br>';}}}if($action=="mob"){if (isset ($_GET['mbs'])){header ("Location: index.php?".SID); exit;}$gam = @file("../local/walkman/$log.game"); $gt1 = explode(":||:",$gam[0]);$gk = trim($gt1[52]);if($gk!==""){$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$ud[41]=($ud[41]+$mbs);for ($u=0; $u<$config_userprofkey; $u++){$utex.=$ud[$u].':||:';}if($ud[0]!="" && $ud[1]!="" && $ud[4]!="" && $utex!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utex);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utex);} $gamedata = @file("../local/walkman/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$clear="";$gametext=$log.':||:'.$gtxt[1].':||:'.$gtxt[2].':||:'.$gtxt[3].':||:'.$gtxt[4].':||:'.$gtxt[5].':||:'.$gtxt[6].':||:'.$gtxt[7].':||:'.$gtxt[8].':||:'.$gtxt[9].':||:'.$gtxt[10].':||:'.$gtxt[11].':||:'.$gtxt[12].':||:'.$gtxt[13].':||:'.$gtxt[14].':||:'.$gtxt[15].':||:'.$gtxt[16].':||:'.$gtxt[17].':||:'.$gtxt[18].':||:'.$gtxt[19].':||:'.$gtxt[20].':||:'.$gtxt[21].':||:'.$gtxt[22].':||:'.$gtxt[23].':||:'.$gtxt[24].':||:'.$gtxt[25].':||:'.$gtxt[26].':||:'.$gtxt[27].':||:'.$gtxt[28].':||:'.$gtxt[29].':||:'.$gtxt[30].':||:'.$gtxt[31].':||:'.$gtxt[32].':||:'.$gtxt[33].':||:'.$gtxt[34].':||:'.$gtxt[35].':||:'.$gtxt[36].':||:'.$gtxt[37].':||:'.$gtxt[38].':||:'.$gtxt[39].':||:'.$gtxt[40].':||:'.$gtxt[41].':||:'.$gtxt[42].':||:'.$gtxt[43].':||:'.$gtxt[44].':||:'.$gtxt[45].':||:'.$gtxt[46].':||:'.$gtxt[47].':||:'.$gtxt[48].':||:'.$gtxt[49].':||:'.$clear.':||:'.$clear.':||:'.$clear.':||:';$fp=fopen("../local/walkman/$log.game","w"); flock($fp,LOCK_EX); fputs($fp,"$gametext");fflush($fp);flock($fp,LOCK_UN);fclose($fp); chmod ("../local/walkman/$log.game", 0666);header ("Location: rynok.php?mb&".SID);}}if($action=="telka"){if (isset ($_GET['prk'])){header ("Location: index.php?".SID); exit;}$gam = @file("../local/navigator/girl/$log.game"); $gt1 = explode(":||:",$gam[0]);$g = trim($gt1[13]);if($g!==""){$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$ud[41]=($ud[41]+$prk);for ($u=0; $u<$config_userprofkey; $u++){$utex.=$ud[$u].':||:';}if($ud[0]!="" && $ud[1]!="" && $ud[4]!="" && $utex!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utex);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utex);} $gamedata = @file("../local/navigator/girl/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$clear="";$gametext=$log.':||:'.$gtxt[1].':||:'.$gtxt[2].':||:'.$gtxt[3].':||:'.$gtxt[4].':||:'.$gtxt[5].':||:'.$gtxt[6].':||:'.$gtxt[7].':||:'.$gtxt[8].':||:'.$gtxt[9].':||:'.$gtxt[10].':||:'.$gtxt[11].':||:'.$clear.':||:'.$clear.':||:'.$gtxt[14].':||:'.$gtxt[15].':||:'.$gtxt[16].':||:'.$gtxt[17].':||:'.$gtxt[18].':||:'.$gtxt[19].':||:'.$gtxt[20].':||:'.$gtxt[21].':||:'.$gtxt[22].':||:'.$gtxt[23].':||:'.$gtxt[24].':||:'.$gtxt[25].':||:'.$gtxt[26].':||:'.$gtxt[27].':||:'.$gtxt[28].':||:'.$gtxt[29].':||:'.$gtxt[30].':||:'.$gtxt[31].':||:'.$gtxt[32].':||:'.$gtxt[33].':||:'.$gtxt[34].':||:'.$gtxt[35].':||:'.$gtxt[36].':||:'.$gtxt[37].':||:'.$gtxt[38].':||:'.$gtxt[39].':||:'.$gtxt[40].':||:'.$gtxt[41].':||:'.$gtxt[42].':||:'.$gtxt[43].':||:'.$gtxt[44].':||:'.$gtxt[45].':||:'.$gtxt[46].':||:'.$gtxt[47].':||:'.$gtxt[48].':||:'.$gtxt[49].':||:'.$gtxt[50].':||:';$fp=fopen("../local/navigator/girl/$log.game","w"); flock($fp,LOCK_EX); fputs($fp,"$gametext");fflush($fp);flock($fp,LOCK_UN);fclose($fp); chmod ("../local/navigator/girl/$log.game", 0666);header ("Location: rynok.php?telka&".SID);}}if($action=="st"){if (isset ($_GET['oru'])){header ("Location: index.php?".SID); exit;}$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$stvol=trim($gtxt[5]);if($stvol!==""){$clear="";$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$ud[41]=($ud[41]+$oru);for ($u=0; $u<$config_userprofkey; $u++){$utex.=$ud[$u].':||:';}if($ud[0]!="" && $ud[1]!="" && $ud[4]!="" && $utex!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utex);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utex);}$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$gametext=$log.':||:'.$gtxt[1].':||:'.$gtxt[2].':||:'.$gtxt[3].':||:'.$gtxt[4].':||:'.$clear.':||:'.$gtxt[6].':||:'.$gtxt[7].':||:'.$gtxt[8].':||:'.$gtxt[9].':||:'.$gtxt[10].':||:'.$gtxt[11].':||:'.$gtxt[12].':||:'.$gtxt[13].':||:'.$gtxt[14].':||:'.$gtxt[15].':||:'.$gtxt[16].':||:'.$gtxt[17].':||:'.$gtxt[18].':||:'.$gtxt[19].':||:'.$gtxt[20].':||:'.$gtxt[21].':||:'.$gtxt[22].':||:'.$gtxt[23].':||:'.$gtxt[24].':||:'.$gtxt[25].':||:'.$gtxt[26].':||:'.$gtxt[27].':||:'.$gtxt[28].':||:'.$gtxt[29].':||:'.$gtxt[30].':||:'.$gtxt[31].':||:'.$gtxt[32].':||:'.$gtxt[33].':||:'.$gtxt[34].':||:'.$gtxt[35].':||:'.$gtxt[36].':||:'.$gtxt[37].':||:'.$gtxt[38].':||:'.$gtxt[39].':||:'.$gtxt[40].':||:'.$gtxt[41].':||:'.$gtxt[42].':||:'.$gtxt[43].':||:'.$gtxt[44].':||:'.$gtxt[45].':||:'.$gtxt[46].':||:'.$gtxt[47].':||:'.$gtxt[48].':||:'.$gtxt[49].':||:'.$gtxt[50].':||:';$fp=fopen("../local/navigator/$log.game","w"); flock($fp,LOCK_EX); fputs($fp,"$gametext");fflush($fp);flock($fp,LOCK_UN);fclose($fp); chmod ("../local/navigator/$log.game", 0666);header ("Location: rynok.php?prod&".SID);}}if($action=="d"){if (isset ($_GET['ned'])){header ("Location: index.php?".SID); exit;} $gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$risdom=trim($gtxt[4]);if($risdom!==""){$clear="";$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$ud[41]=($ud[41]+$ned);for ($u=0; $u<$config_userprofkey; $u++){$utex.=$ud[$u].':||:';}if($ud[0]!="" && $ud[1]!="" && $ud[4]!="" && $utex!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utex);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utex);} $gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$gametext=$log.':||:'.$gtxt[1].':||:'.$gtxt[2].':||:'.$clear.':||:'.$clear.':||:'.$gtxt[5].':||:'.$gtxt[6].':||:'.$gtxt[7].':||:'.$gtxt[8].':||:'.$gtxt[9].':||:'.$gtxt[10].':||:'.$gtxt[11].':||:'.$gtxt[12].':||:'.$gtxt[13].':||:'.$gtxt[14].':||:'.$gtxt[15].':||:'.$gtxt[16].':||:'.$gtxt[17].':||:'.$gtxt[18].':||:'.$gtxt[19].':||:'.$gtxt[20].':||:'.$gtxt[21].':||:'.$gtxt[22].':||:'.$gtxt[23].':||:'.$gtxt[24].':||:'.$gtxt[25].':||:'.$gtxt[26].':||:'.$gtxt[27].':||:'.$gtxt[28].':||:'.$gtxt[29].':||:'.$gtxt[30].':||:'.$gtxt[31].':||:'.$gtxt[32].':||:'.$gtxt[33].':||:'.$gtxt[34].':||:'.$gtxt[35].':||:'.$gtxt[36].':||:'.$gtxt[37].':||:'.$gtxt[38].':||:'.$gtxt[39].':||:'.$gtxt[40].':||:'.$gtxt[41].':||:'.$gtxt[42].':||:'.$gtxt[43].':||:'.$gtxt[44].':||:'.$gtxt[45].':||:'.$gtxt[46].':||:'.$gtxt[47].':||:'.$gtxt[48].':||:'.$gtxt[49].':||:'.$gtxt[50].':||:';$fp=fopen("../local/navigator/$log.game","w"); flock($fp,LOCK_EX); fputs($fp,"$gametext");fflush($fp);flock($fp,LOCK_UN);fclose($fp); chmod ("../local/navigator/$log.game", 0666);header ("Location: rynok.php?d&".SID);}}if($action=="c"){if (isset ($_GET['avt'])){header ("Location: index.php?".SID); exit;}$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$riscar=trim($gtxt[2]);if($riscar!==""){$clear="";$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$ud[41]=($ud[41]+$avt);for ($u=0; $u<$config_userprofkey; $u++){$utex.=$ud[$u].':||:';}if($ud[0]!="" && $ud[1]!="" && $ud[4]!="" && $utex!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utex);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utex);}$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$gametext=$log.':||:'.$clear.':||:'.$clear.':||:'.$gtxt[3].':||:'.$gtxt[4].':||:'.$gtxt[5].':||:'.$gtxt[6].':||:'.$gtxt[7].':||:'.$gtxt[8].':||:'.$gtxt[9].':||:'.$gtxt[10].':||:'.$gtxt[11].':||:'.$gtxt[12].':||:'.$gtxt[13].':||:'.$gtxt[14].':||:'.$gtxt[15].':||:'.$gtxt[16].':||:'.$gtxt[17].':||:'.$gtxt[18].':||:'.$gtxt[19].':||:'.$gtxt[20].':||:'.$gtxt[21].':||:'.$gtxt[22].':||:'.$gtxt[23].':||:'.$gtxt[24].':||:'.$gtxt[25].':||:'.$gtxt[26].':||:'.$gtxt[27].':||:'.$gtxt[28].':||:'.$gtxt[29].':||:'.$gtxt[30].':||:'.$gtxt[31].':||:'.$gtxt[32].':||:'.$gtxt[33].':||:'.$gtxt[34].':||:'.$gtxt[35].':||:'.$gtxt[36].':||:'.$gtxt[37].':||:'.$gtxt[38].':||:'.$gtxt[39].':||:'.$gtxt[40].':||:'.$gtxt[41].':||:'.$gtxt[42].':||:'.$gtxt[43].':||:'.$gtxt[44].':||:'.$gtxt[45].':||:'.$gtxt[46].':||:'.$gtxt[47].':||:'.$gtxt[48].':||:'.$gtxt[49].':||:'.$gtxt[50].':||:';$fp=fopen("../local/navigator/$log.game","w"); flock($fp,LOCK_EX); fputs($fp,"$gametext");fflush($fp);flock($fp,LOCK_UN);fclose($fp); chmod ("../local/navigator/$log.game", 0666);header ("Location: rynok.php?c&".SID);}}}else{echo'<br>К сожалению, вы не можете воспользоваться этим разделом, т.к. вы не авторизованы,<br> для устранения этой проблемы необходимо <a href="../pages/vhod.php">Войди</a><br> или сперва <a href="../pages/registration.php">Регнись<br>';}echo'<hr>&#187; <a href="index.php?'.SID.'">В город</a><br>';echo'&#187; <a href="../index.php?'.SID.'">На главную</a>';eval(base64_decode('ZWNobyc8aHI+PGEgaHJlZj0iaHR0cDovL25tbi53ZWJob3AubmV0Ij5OTU4u
V0VCSE9QLk5FVDwvYT48YnI+JzsKaW5jbHVkZV9vbmNlKEJBU0VESVIuInRo
ZW1lcy8kY29uZmlnX3RoZW1lcy9mb290LnBocCIpOw=='));?>