Просмотр файла public_html/games2/firm.php

Размер файла: 4.07Kb
<?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(!empty($start2)){$start=round(($start2-1)*$config_maxpostbook);}echo '<div class=a><font color="gold"><b>Рейтинг фирм</b></font>';if(!isset($action)) {$dir = opendir("../local/profil/");while ($file = readdir ($dir)) {if (( $file != ".") && ($file != "..") && ($file != ".htaccess") && ($file != "index.php")){$a[]=$file;}}closedir ($dir);$total = count($a);for ($i = 0; $i < $total; $i++){$sopli = count($a[$i]);$tex = @file("../local/profil/$a[$i]");$data = explode(":||:",$tex[0]);if (!$data[96]=="" && !$data[97]==""){$dat_log[]=$data[0];$dat_naz[]=$data[98];$dat_opis[]=$data[97]; $dat_tim[]=$data[96];$dat_bal[]=$data[95];}}arsort($dat_bal);$total = count($dat_naz);if($total==0){echo'<br><b>Пока нет фирм!!!</b></div>';}else{echo'<br><b>Всего фирм: <font color="red">'.$total.'</font></b></div>';}foreach($dat_bal as $k=>$v){$dat_bal[$k]; $config_maxpostbook=$v;$dat_tuning2[]='<div class=b><b><font color="gold">'.$dat_naz[$k].'</b></font></div>Владелец:<font color="gold"><a href="../pages/anketa.php?uz='.$dat_log[$k].'&amp;'.SID.'"><b> '.$dat_log[$k].'</b></a></font><br>Описание:<font color="green"> '.$dat_opis[$k].'</font><br>Капитал: <b><font color="red"> '.$dat_bal[$k].'$</font></b><br>Дата рег-ции: <b>'.$dat_tim[$k].'</b><br>';$dat_tuning1[]='[<a href="firm.php?action=del&amp;name='.$dat_log[$k].'&amp;'.SID.'">Удалить</a>]<br>';}if($total<0){echo '<hr><b>Фирм нет!</b><hr>';}if ($start=="") {$start = 0;}if ($total < $start + $config_bookpost){ $end = $total;}else {$end = $start + $config_bookpost; }for ($i = $start; $i < $end; $i++){echo $dat_tuning2[$i];if ($log==$config_nikname){echo $dat_tuning1[$i];}}if($total>0){$ba=ceil($total/$config_bookpost);$ba2=$ba*$config_bookpost-$config_bookpost;echo '<hr>Стр:';$asd=$start-($config_bookpost*3);$asd2=$start+($config_bookpost*4);if($asd<$total && $asd>0){echo ' <a href="firm.php?start=0&amp;'.SID.'">1</a> ... ';}for($i=$asd; $i<$asd2;){if($i<$total && $i>=0){$ii=floor(1+$i/$config_bookpost);if ($start==$i) {echo ' <b>('.$ii.')</b>';}else {echo ' <a href="firm.php?start='.$i.'&amp;'.SID.'">'.$ii.'</a>';}}$i=$i+$config_bookpost;}if($asd2<$total){echo ' ... <a href="firm.php?start='.$ba2.'&amp;'.SID.'">'.$ba.'</a>';}}}if ($log==$config_nikname){if ($action=="del"){$ufile = file(BASEDIR."local/profil/$name.prof"); $udata = explode(":||:",$ufile[0]);$udata[90] ="";$udata[92] ="";$udata[93] ="";$udata[95] ="";$udata[96] ="";$udata[97] ="";$udata[98] ="";for ($u=0; $u<$config_userprofkey; $u++){$utext.=$udata[$u].':||:';}if($udata[0]!="" && $udata[1]!="" && $udata[4]!="" && $utext!=""){$fp=fopen(BASEDIR."local/profil/$name.prof","a+"); flock ($fp,LOCK_EX); ftruncate ($fp,0); fputs($fp,$utext);fflush ($fp);flock ($fp,LOCK_UN);fclose($fp); unset($utext); }unlink("../local/birga/$name.dat");header ("Location: firm.php?".SID);}}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=='));?>