Вход Регистрация
Файл: eventnews.php
Строк: 29
<?
include_once("mysql.php");
include_once(
"include/zag.php");
include 
'include/ini.php';
include 
'include/sesi.php';
if (isset(
$user)) {
$novs sizeof(file('MySql/base123/event.dat'));
echo
"Эвентов - [$novs]<br/><hr>";
$file = @file("MySql/base123/event.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
"<b>$udata[0]</b> [$udata[1]]<br/>$udata[2]<br/><br/>";
}

if(
$total>0){

$ba=ceil($total/5);
$ba2=$ba*5-5;

$asd=$start-(5*3);
$asd2=$start+(5*4);

if(
$asd<$total && $asd>0){echo ' <a href="eventnews.php?start=0&'.$sd.'">1</a> ... ';}
for(
$i=$asd$i<$asd2;){
if(
$i<$total && $i>=0){
$ii=floor(1+$i/5);
if (
$start==$i) {
echo 
' <b>('.$ii.')</b>';
}else{
echo 
' <a href="eventnews.php?start='.$i.'&'.$sd.'">'.$ii.'</a>';
}}
$i=$i+5;}
if(
$asd2<$total){echo ' ... <a href="eventnews.php?start='.$ba2.'&$'.sd.'">'.$ba.'</a>';}
}


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

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