Файл: darkworld/news.php
Строк: 14
<?
include_once("files/zag.php");
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
$file = @file("data/news.dat");
$total=count($file);
$file = array_reverse($file);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 5){ $end = $total; }
else {$end = $start + 5; }
for ($i = $start; $i < $end; $i++){
$udata = explode("||",$file[$i]);
echo"<small><b>$udata[0]</b> [$udata[1]]<br/>$udata[2]</small><br/><br/>";
}
if ($start != 0) {echo "<small><a href="news.php?start=".($start - 5)."&log=".$log."&pas=".$pas."">Назад</a> </small>";}
if ($total > $start + 5) {echo " <small><a href="news.php?start=".($start + 5)."&log=".$log."&pas=".$pas."">Далее</a></small>";}
}else{echo"<small>Пароль или логин неверен!</small>";}
include_once"files/down.php";
?>