View file ascalon/death/death_room.php

File size: 1.23Kb
<? session_start();
$mt=mt_rand(10000,99999); if(!isset($_SESSION['ses8'])) {header("Location:../log.php"); exit;} else $ses=$_SESSION['ses8']; echo"<html><head><title>преисподня</title>"; require"../css.php"; echo"</head><body><div class=d0>";
echo'<div class=kto><font color="red">Преисподня</font>-место обитания душ погибших воинов...</div>';
$ran=mt_rand(10000,99999);
echo"<br>* * * * *<br><a href=\"say.php?mt=$mt\"><font color=\"red\">cкaзaть</font></a>|<a href=\"death_room.php?ran=$ran\"><font color=\"red\">oбнoвить</font></a><br>* * * * *<br><div class=text>";
$ghi=@file("death_room.dat"); $sig=sizeof($ghi); $sig=$sig-1; if($sig>0){

if($sig<20) $gop=$sig; else $gop=19;
while($sig>=0){ 
$gh=$ghi[$sig]; $cheh[$gop]=$ghi[$sig]; if($gop==0) $sig=0; $jef=@explode(":||:",$gh);  if($jef[0]!="0"){ echo'<div class=font>'; echo"<a href=\"say.php?nick2=$jef[0]&amp;mt=$mt\"><font color=\"red\">$jef[0]:</font></a>$jef[1]</div>";} $gop=$gop-1; $sig=$sig-1;
}
ksort($cheh); $skif=@implode("",$cheh); $zu=@fopen("death_room.dat","w"); fputs($zu,$skif); fclose($zu);
}
echo"</div><br>* * * * *<br><div class=kto><a href=\"../death.php?mt=$mt\">в город</a></div></div></body></html>";
?>