Размер файла: 1.47Kb
<?php
// X-Thief ICQ: 4644864
// [email protected]
// wap.telon.ru - Бесплатные загрузки, каждый день!
Error_Reporting(E_ALL & ~E_NOTICE);
require ("ini.php");
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>';
if($par==$parol){
$news=mysql_fetch_row(mysql_query("SELECT count(*) from `mail_rass"));
if($news[0])
print '<div class="copyright">Подписчиков: '.$news[0].'</div><div class="upban">';
$kolchel=$mailpage;
$zapros="select * from mail_rass";
$zapros=$zapros." ORDER BY `time` DESC";
$result=mysql_query($zapros);
$kolstr=ceil(mysql_num_rows($result)/$kolchel);
if (!@$page)
$page=0;
$pg=$page+1;
$start=$page*$kolchel;
$end=$start+$kolchel;
@mysql_data_seek($result,$start);
while($news=mysql_fetch_array($result))
{$date=date("d.m H:i",$news['time']);
if(!$komm)
$komm=0;
print "<b>$news[id]</b>, $news[mail] <a href=\"maildel.php?par=$parol&id=$news[id]\">DEL</a><br/>";
$start++;
if ($start>=$end)
break;
}
print '<div class="downban">';
if ($kolstr>$page+1){
print '<a href="vsemail.php?page='.$pg.'">Далее</a><br/>';}
if ($page>0)
{$pp=$page-1;
print '<a href="vsemail.php?page='.$pp.'">Назад</a><br/>';}
print '</div>';
print $footer;}
?>