Вход Регистрация
Файл: DarkAge/sellruk.php
Строк: 30
<?
Error_Reporting
(E_ALL & ~E_NOTICE);
include_once(
"files/antixak.php");
include_once(
"files/zag.php");

$log htmlspecialchars(stripslashes($log));
$pas htmlspecialchars(stripslashes($pas));
/////////////////////////////////////////////////////
$text = @file("data/reg/$log.dat"); 
if (
$text!=""){
$udata explode(":||:",$text[0]);
$login=trim($udata[0]);
$password=trim($udata[1]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
if(
getenv("HTTP_X_FORWARDED_FOR")){ $ip getenv("HTTP_X_FORWARDED_FOR"); }else{
if(
getenv("REMOTE_ADDR")) $ip getenv("REMOTE_ADDR");}
$ip=htmlspecialchars(stripslashes($ip));
$brow=htmlspecialchars(stripslashes(getenv('HTTP_USER_AGENT')));
$brow=strtok($brow,'/');

$ipone=explode(".",$ip);

$iptwo="$ipone[0].$ipone[1].$ipone[2]";

$file=file("data/ban.dat");
$total=count($file);
for(
$i=0$i<$total$i++){
$data explode("||",$file[$i]);

if(
$data[0]==$iptwo){
$time=time()-86400;
if(
$data[1]>$time){echo"Вы забанены на 24 часа!"; echo "</p></card></wml>"; exit; }
}}

if(@
file("data/item/$log.dat")){

$file = @file("data/item/$log.dat");
$total count($file);  

if (empty(
$_GET['start'])) $start 0;
else 
$start $_GET['start'];
if (
$total $start 10){ $end $total; }
else {
$end $start 10; }
for (
$i $start$i $end$i++){

$file = @file("data/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);



if(
$data[2]=="vesh"){
echo
"<b><a href="sellrukvesh.php?log=$log&amp;pas=$pas&amp;name=$data[4]&amp;id=$i">$data[4]</a></b> - ($data[3] &#x448;&#x442;&#x443;&#x43A;)<br/>";}
elseif(
$data[2]=="vesh2"){
echo
"<b><a href="sellrukvesh.php?log=$log&amp;pas=$pas&amp;name=$data[4]&amp;id=$i">$data[4]</a></b> - ($data[3] &#x448;&#x442;&#x443;&#x43A;) [+$data[0]]<br/>";}
else{
echo
"<b><a href="sellrukshmot.php?log=$log&amp;pas=$pas&amp;name=$data[4]&amp;id=$i">$data[4]</a></b><br/>";}

}}else{echo
"&#x423; &#x432;&#x430;&#x441; &#x43D;&#x435;&#x442; &#x432;&#x435;&#x449;&#x435;&#x439;.";}

    
    
if (
$start != 0) {echo '<a href="sellruk.php?start='.($start 10).'&amp;log='.$log.'&amp;pas='.$pas.'">&#x41D;&#x430;&#x437;&#x430;&#x434;</a> ';}

if (
$total $start 10) {echo ' <a href="sellruk.php?start='.($start 10).'&amp;log='.$log.'&amp;pas='.$pas.'">&#x414;&#x430;&#x43B;&#x435;&#x435;</a>';}



}else{echo
"&#x41F;&#x430;&#x440;&#x43E;&#x43B;&#x44C; &#x438;&#x43B;&#x438; &#x43B;&#x43E;&#x433;&#x438;&#x43D; &#x43D;&#x435;&#x432;&#x435;&#x440;&#x435;&#x43D;!";}

include_once
"files/down.php";
?>
Онлайн: 0
Реклама