Вход Регистрация
Файл: darkworld/chat.php
Строк: 39
<?
Error_Reporting
(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR WARNING);
include_once(
"files/zag.php");
if (
md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
$self $_SERVER['SCRIPT_NAME'];
$ref=rand(100,100000);
echo
"<small><a href="chat.php?log=$log&amp;pas=$pas&amp;ref=$ref">Обновить</a><br/>- - -</small>"


$file file("data/chat.dat");
$file array_reverse($file);
$total count($file);


for (
$i 0$i $total$i++){
$data explode("#",$file[$i]);
if(
$data[1]!=="CooL" && $data[1]!=="BaFFer"){
$data_0[]=$data[0];
$data_1[]=$data[1];
}
}
 
if(empty(
$data_0)){echo"<small>Сообщений нет.</small>"; include_once"files/down.php"; exit;}

foreach(
$data_0 as $k=>$v)
{
$dat_screen[]="<br/><small><a href="search.php?log=$log&amp;pas=$pas&amp;go=go&amp;nick=$data_1[$k]">$data_1[$k]</a></small> - <small>$data_0[$k]</small>";
}


$total count($dat_screen);

if(empty(
$udata[35])){$udata[35]="5";}

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

echo
"$dat_screen[$i]";

}



echo
"<br/><b><small>- - -</small></b>";
echo 
"<br/><input name="msg" maxlength="100" title="msg"/><br/>";
echo 
"<small><anchor title="go">Написать<go href="add.php?log=$log&amp;pas=$pas" method="post">";
echo 
"<postfield name="msg" value="$(msg)"/>";
echo 
"<postfield name="self" value="$self"/>";
echo 
"</go></anchor></small><br/>";

if (
$start != 0) {echo '<small><a href="chat.php?start='.($start $udata[35]).'&amp;log='.$log.'&amp;pas='.$pas.'">Назад</a></small> ';}else{echo'<small>- - -</small><br/>';}

if (
$total $start $udata[35]) {echo ' <small><a href="chat.php?start='.($start $udata[35]).'&amp;log='.$log.'&amp;pas='.$pas.'">Далее</a></small>';}

echo
"<br/><small><a href="chat.php?log=$log&amp;pas=$pas&amp;ref=$ref">Обновить</a></small>"

if(@
file("data/tmp/$log.dat")){echo"<small><br/>- - -<br/>&#187; <a href="ataka.php?log=$log&amp;pas=$pas">&#x412;&#x435;&#x440;&#x43D;&#x443;&#x442;&#x44C;&#x441;&#x44F; &#x432; &#x431;&#x43E;&#x439;</a></small><br/>";}else{echo"<br/><small>- - -</small><br/>";}
echo
"<small>&#187; <a href="inventar.php?log=$log&amp;pas=$pas">&#x418;&#x43D;&#x432;&#x435;&#x43D;&#x442;&#x430;&#x440;&#x44C;</a></small><br/>";
echo
"<small>&#187; <a href="gorod.php?log=$log&amp;pas=$pas">&#x412; &#x433;&#x43E;&#x440;&#x43E;&#x434;</a></small>";
if(!empty(
$udata[23])){echo"<small><br/>&#187; <a href="clanroom.php?log=$log&amp;pas=$pas">&#x41A;&#x43E;&#x43C;&#x43D;&#x430;&#x442;&#x430; &#x43A;&#x43B;&#x430;&#x43D;&#x430;</a></small>";}
echo
"<small><br/>&#187; <a href="main.php?log=$log&amp;pas=$pas">&#x41C;&#x43E;&#x451; &#x43C;&#x435;&#x43D;&#x44E;</a></small><br/>";
include_once
"files/online.php";
include_once(
"files/regeneration.php");
list(
$msec,$sec)=explode(chr(32),microtime());  
echo 
"<small>[".round((($sec+$msec)-$gtime),4)." секунд]</small>"

}else{echo
"<small>Пароль или логин неверен!</small>";}



echo 
"</p></card></wml>";
?>
Онлайн: 1
Реклама