Размер файла: 1.5Kb
<?php
// X-Thief ICQ: 4644864
// [email protected]
// wap.telon.ru - Бесплатные загрузки, каждый день!
require ("ini.php");
Error_Reporting(E_ALL & ~E_NOTICE);
if($par==$parol){
header("Cache-Control: no-cache");
header("Content-type:text/html; charset=utf-8");
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Админка</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>';print '<div class="body">';
$zapros="SELECT *
FROM `news_komm` WHERE `time`='$time'
ORDER BY `date` DESC";
$result=mysql_query($zapros) or die(mysql_error());
$onl=mysql_num_rows($result);
$kolstr=ceil($onl/$newspage);
if (!@$page)
$page=0;
$pg=$page+1;
####################################################################################################
$start=$page*$newspage;
$end=$start+$newspage;
@mysql_data_seek($result,$start);
while($news=mysql_fetch_array($result))
{$date=date("d.m H:i",$news['date']);
print "<b>$news[name]</b> $date<br/>
$news[mess]<br/>
<a href=\"admindekomm.php?par=$parol&time=$news[date]\">Удалить</a><br/>";
$start++;
if ($start>=$end)
break;
}
if ($kolstr>$page+1){
print '<a href="adminkomm.php?page='.$pg.'&cl='.$ses.'&par='.$parol.'">Вперед</a><br/>';}
if ($page>0)
{$pp=$page-1;
print '<a href="adminkomm.php?page='.$pp.'&cl='.$ses.'&par='.$parol.'">Назад</a><br/>';}}else{print "ERROR";}
print $footer;
?>