View file public_html/games2/chr.php

File size: 21.97Kb
<?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(file_exists("lic.php")){$vud=trim($udata[180]);$p=trim($udata[193]);$time=time();$time_ot=round($udata[193]-$time);if(empty($action)){$action="index";}if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!="") {if($p<=$time){$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$gamelog=trim($gtxt[0]);if (!$gamelog=="") {if($action=="index"){echo "<font color=\"#FFFF00\">Чёрный рынок $title</font></b><br>";$fal = @file("../local/profil/$log.prof");$udata = explode(":||:",$fal[0]); if($udata[36]<=200){echo''.$log.' чтобы продать краденое- повышай свой статус! Для проведения операций нужно хотябы 200 баллов!<br>';}else{echo''.$log.', тут ты можешь продать краденое или б/у! <br><font color="red">ВНИМАНИЕ: Продавая на чёрном рынке НЕ краденые вещи-ты всё-равно рискуешь быть пойманым!</font><br> Остерегайся ментов! За каждую удачную продажу ты получишь 100 баллов статуса!<hr>Твоё состояние:<hr>';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(BASEDIR."local/navigator/conf/reltor.dat"); $siti_reltor = explode("|",$siti_g[0]);$dom=$gtxt[3];$risdom=$gtxt[4];if ($dom=="Картонная коробка"){$cenad=40;}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];}$dvid=round($cenad/100)*10;$cenad=round($cenad+$dvid);$ttt = rand (0, 100);if ($vud=="2"){$cenad=round((($cenad*1)/100)-$ttt);}$car=trim($gtxt[1]);$riscar=trim($gtxt[2]);if ($car=="SUZUKI"){$cenacc=500;}if ($car=="MERCEDES S-class"){$cenacc=2200;}if ($car=="Audi TT"){$cenacc=2800;}if ($car=="ГАЗ-2110"){$cenacc=1000;}if ($car=="BMW-X5"){$cenacc=4000;}if ($car=="Ferrari C300"){$cenacc=4200;}if ($car=="Mitsubishi Evilution"){$cenacc=6700;}if ($car=="DODGE Vipper"){$cenacc=7500;}if ($car=="Porshe Carrera"){$cenacc=8500;}if ($car=="Bugatti"){$cenacc=9000;}if ($car=="AIR BUS"){$cenacc=19569;}if ($car=="BMW Z7"){$cenacc=12000;}if ($car=="Harley-Davidson"){$cenacc=45100;}if ($car=="Bepтoлёт"){$cenacc=90700;}if ($car=="Caмoлёт"){$cenacc=120000;}if ($car=="STELS"){$cenacc=280900;}if ($car=="FORD Mustang"){$cenacc=12340;}if ($car=="JEEP HAMMER"){$cenacc=75200;}if ($car=="Lotus"){$cenacc=85300;}if ($car=="F1"){$cenacc=197550;}if ($car=="TANK"){$cenacc=188600;}if ($car=="Tanker"){$cenacc=559800;}if ($car=="Aвиaнoceц"){$cenacc=966700;}if ($car=="NISSAN SKYLINE"){$cenacc=90700;}if ($car=="SPEED MOTO"){$cenacc=117900;}if ($car=="SPEED CAR"){$cenacc=280950;}if ($car=="BIG 4X4"){$cenacc=197580;}if ($car=="HAMMER H3"){$cenacc=188600;}if ($car=="JEEP Лимyзин"){$cenacc=559800;}if ($car=="Lamborgini Diablo"){$cenacc=966700;}if ($car=="Caмoкaт"){$cenacc=1;}if ($car=="SEAT"){$cenacc=105020;}if ($car=="TIPE-R"){$cenacc=132930;}if ($car=="Vipper"){$cenacc=199068;}if ($car=="Craysler"){$cenacc=297580;}if ($car=="Aston Martin"){$cenacc=285900;}if ($car=="Gibrit-Car"){$cenacc=353250;}if ($car=="SUBARU IMPRESA"){$cenacc=400000;}if ($car=="Porshe"){$cenacc=500000;}if ($car=="Cherpak"){$cenacc=823400;}if ($car=="Renault"){$cenacc=920101;}if ($car=="Cabrialet"){$cenacc=118793;}if ($car=="Speed-CaR"){$cenacc=111585;}if ($car=="Turbo-NOS"){$cenacc=158600;}if ($car=="CRAYSLER"){$cenacc=175930;}if ($car=="PORSHE 4X4"){$cenacc=208050;}if ($car=="PORSHE BOXER"){$cenacc=228965;}if ($car=="PORSHE RED"){$cenacc=239600;}if ($car=="Mersedes-BENZ AMG"){$cenacc=295080;}if ($car=="BUGATTI-SPORT"){$cenacc=499999;}if ($car=="Fordec"){$cenacc=400000;}if ($car=="BMW-FARSH"){$cenacc=500000;}if ($car=="Toyota-2007"){$cenacc=600000;}if ($car=="Shark"){$cenacc=750000;}if ($car=="Porshik"){$cenacc=900000;}if ($car=="BUMER X6"){$cenacc=1000000;}if ($car=="BUMER"){$cenacc=1400000;}if ($car=="MEREN AMG"){$cenacc=1600000;}if ($car=="Prototip"){$cenacc=2500000;}if ($car=="Peugeot 908"){$cenacc=8000000;}if ($car=="Peugeot FREEZA"){$cenacc=23000000;}if ($car=="Lamborgini-X"){$cenacc=35000000;}if ($car=="TURBINA-X"){$cenacc=51000000;}if ($car=="Bugatty-X"){$cenacc=70000000;}$ttt = rand (0, 100);if ($vud=="2"){$cenacc=round((($cenacc*1)/100)-$ttt);}$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].':||:'.$gtxt[47].':||:'.$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);if ($stvol!="") {echo"<font color=\"#FFF000\">Оружие: </font>".$stvol."<br>";echo''.$cena.' $<form action="chr.php?action=stvol&amp;'.SID.'" method="post"><input type="submit" value="Продать"></form><hr>';}else{echo"<font color=\"#FFF000\">Оружие:</font> НЕТ Оружия<hr>";}if ($risdom!="" && $risdom!="vysel.gif") {echo'<font color="#FFF000">Твоё логово: </font><br>'.$dom.'<br><img src="dom/'.$gtxt[4].'" alt=""><br>';echo''.$cenad.' $<form action="chr.php?action=dom&amp;'.SID.'" method="post"><input type="submit" value="Продать"></form><hr>';}else{echo"<font color=\"#FFF000\">Место жительства: </font>БОМЖ...<hr>";}if ($riscar!="" && $riscar!="ugon.gif") {echo'<font color="#FFF000">Тачка: </font><br>'.$car.'<br><img src="car/'.$gtxt[2].'" alt=""><br>';echo''.$cenacc.' $<form action="chr.php?action=car&amp;'.SID.'" method="post"><input type="submit" value="Продать"></form><hr>';}else{echo"<font color=\"#FFF000\">Тачка: </font>нет тачки<hr>";}}}if($action=="stvol"){if ($vud=="2"){$kkk=round(((100*1)/1)+10);}$popo = rand(0, 20);$rlot=round((($kkk*1)/1)+$popo);if ($rlot<10) {$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$cena=trim($gtxt[48]);$cenad=trim($gtxt[49]);$cenacc=trim($gtxt[50]);$stvol=trim($gtxt[5]);if($stvol==""){echo'<b><font color="red">Так не прокатит !<br><font color="#33FF00">'.$log.' - ЖУЛИК</font> <br></b></font><br>';}else{$ufil = file(BASEDIR."local/profil/$log.prof"); $udat = explode(":||:",$ufil[0]);$time=time();$clear="";$udat[193]=round($time+(3600*$siti_intchr));$udat[41]=$udat[41]+$cena;$udat[36]=$udat[36]+100;for ($u=0; $u<$config_userprofkey; $u++){$utext.=$udat[$u].':||:';}if($udat[0]!="" && $udat[1]!="" && $udat[4]!="" && $utext!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext);} $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);echo''.$log.' продано! за $'.$cena.'<br>';echo'<a href="chr.php?'.SID.'">Продать ещё</a>';}}else{if ($log==$config_nikname){echo'<br>Тебе повезло,что ты АДМИН, менты пресанули как пологается и отпустили!<br>';}else{echo'Cтoять! Cтвoл нa зeмлю! <br>Bы oбвeняeтecь в нeзaкoнoй пpoдaжи opyжия нa чepнoм pынкe.<br>';$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$time=time();$ud[39]="Heзaкoнaя пpoдaжa opyжия нa чepнoм pынкe.";$ud[38]=round($time+(60*$vrem_ban));$ud[37]=1;$ud[177]=5;$ud[175]=round($ud[175]+1);$ud[174]=round($ud[174]+30);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]);$ots="$gtxt[39]";$sas=$ots+1;$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].':||:'.$sas.':||:'.$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);}}}if($action=="dom"){if ($vud=="2"){$kkk=round(((100*1)/1)+10);}$popo = rand(0, 20);$rlot=round((($kkk*1)/1)+$popo);if ($rlot<10) { $gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$cenad=trim($gtxt[49]);$cenacc=trim($gtxt[50]);$risdom=trim($gtxt[4]);if($risdom==""){echo'<b><font color="red">Так не прокатит !<br><font color="#33FF00">'.$log.' - ЖУЛИК</font> <br></b></font><br>';}else{ $ufil = file(BASEDIR."local/profil/$log.prof"); $udat = explode(":||:",$ufil[0]);$time=time();$clear="";$udat[193]=round($time+(3600*$siti_intchr));$udat[41]=$udat[41]+$cenad;$udat[36]=$udat[36]+100;for ($u=0; $u<$config_userprofkey; $u++){$utext.=$udat[$u].':||:';}if($udat[0]!="" && $udat[1]!="" && $udat[4]!="" && $utext!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext);} $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);echo''.$log.' продано! за $'.$cenad.'!<br>';echo'<a href="chr.php?'.SID.'">Продать ещё</a>';}}else{if ($log==$config_nikname){echo'<br>Тебе повезло,что ты АДМИН, менты пресанули как пологается и отпустили!<br>';}else{echo'Cтoять бля! Mopдoй в пoл! <br>Bы oбвeняeтecь в пpoдaжe кpaдeннoгoй нeдвижимocти!';$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$time=time();$ud[39]="Пpoдaжa кpaдeннoй нeдвижимocти нa чepнoм pынкe";$ud[38]=round($time+(60*$vrem_ban));$ud[37]=1;$ud[177]=5;$ud[175]=round($ud[175]+1);$ud[174]=round($ud[174]+30);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]);$ots="$gtxt[39]";$svs=$ots+1;$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].':||:'.$svs.':||:'.$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);}}}if($action=="car"){if ($vud=="2"){$kkk=round(((100*1)/1)+10);}$popo = rand(0, 20);$rlot=round((($kkk*1)/1)+$popo);if ($rlot<10) {$gamedata = @file("../local/navigator/$log.game"); $gtxt = explode(":||:",$gamedata[0]);$cena=trim($gtxt[48]);$cenad=trim($gtxt[49]);$cenacc=trim($gtxt[50]);$riscar=trim($gtxt[2]);if($riscar==""){echo'<b><font color="red">Так не прокатит !<br><font color="#33FF00">'.$log.' - ЖУЛИК</font> <br></b></font><br>';}else{$ufil = file(BASEDIR."local/profil/$log.prof"); $udat = explode(":||:",$ufil[0]);$time=time();$clear="";$udat[193]=round($time+(3600*$siti_intchr));$udat[41]=$udat[41]+$cenacc;$udat[36]=$udat[36]+100;for ($u=0; $u<$config_userprofkey; $u++){$utext.=$udat[$u].':||:';}if($udat[0]!="" && $udat[1]!="" && $udat[4]!="" && $utext!=""){$fp=fopen("../local/profil/$log.prof","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext);} $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);echo''.$log.' продано! за $'.$cenacc.'!';echo'<br><a href="chr.php?'.SID.'">Продать ещё</a>';}}elseif ($log==$config_nikname){echo'<br>Тебе повезло,что ты АДМИН, менты пресанули как пологается и отпустили!<br>';}else{{echo'<font color=\"red\">Cтoять бдя! Pyки нa кoпoт! <br>Bы oбвиняeтecь в пpoдaжe кpaдeннoй мaшины нa чepнoм pынкe.<br>';$uf = file(BASEDIR."local/profil/$log.prof");$ud = explode(":||:",$uf[0]);$time=time();$ud[39]="Пpoдaжa мaшины нa чepнoм pынкe";$ud[38]=round($time+(60*$vrem_ban));$ud[37]=1;$ud[177]=5;$ud[175]=round($ud[175]+1);$ud[174]=round($ud[174]+30);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]);$ots="$gtxt[39]";$srs=$ots+1;$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].':||:'.$srs.':||:'.$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);}}}}else{echo'<br>Тебе нечего тут впаривать, или на сайте не установлены магазины, или ты ещё ничего не купил.<br>';echo'<br><a href="../index.php?'.SID.'">На главную</a>';}}else{echo'<br>Пользоваться чёрным рынком можно раз в '.$siti_intchr.' час<br><font color="red">Захди через '.formattime($time_ot).'</font><br>';}}else{echo'<br>К сожалению, вы не можете воспользоваться этим разделом, т.к. вы не авторизованы,<br> для устранения этой проблемы необходимо <a href="../pages/vhod.php"> ВЫПОЛНИТЬ ВХОД</a><br> или сперва <a href="../pages/registration.php"> ЗАPЕГИСТPИPОВАТЬСЯ </a><br>';}}else{echo'<font color="#FF0000"><big><b>Отсутствуй файл с лицензионным соглашением!</font></big></b>';}echo'<br><img src="../images/img/act_home.gif" alt=""> <a href="index.php?'.SID.'">В город</a>';echo'<br><img src="../images/img/act_home.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>';eval(base64_decode('ZWNobyc8aHI+PGEgaHJlZj0iaHR0cDovL25tbi53ZWJob3AubmV0Ij5OTU4u
V0VCSE9QLk5FVDwvYT48YnI+JzsKaW5jbHVkZV9vbmNlKEJBU0VESVIuInRo
ZW1lcy8kY29uZmlnX3RoZW1lcy9mb290LnBocCIpOw=='));?>