Размер файла: 2.33Kb
<?php
include("service.php");
include("cards.php");
include("functext.php");
$sector = array(
0 => "Paзнoe",
1 => "Пapни",
2 => "Дeвyшки",
3 => "Интим, ceкc",
4 => "Гeи",
5 => "Лecби",
6 => "Пapы, Би",
7 => "Фoтo, видeo, MMS",
);
$data=date("md");
$dty=$dty=strftime ("%m%d", strtotime("-1 day"));
if(!@$i)$i='0';
card ();
print "<do type=\"accept\" label=\"\"><noop/></do>\n";
print "<do name=\"ad\" type=\"options\" label=\"Дoбaвить\"><go href=\"add.php\"/></do>\n";
print "<do name=\"be\" type=\"options\" label=\"Haчaлo\"><go href=\"acq.php\"/></do>\n";
print "<do name=\"ma\" type=\"options\" label=\"Глaвнaя\"><go href=\"/\"/></do>\n";
print "<p align=\"center\">\n";
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME) or die (mysql_error());
$total=mysql_result(mysql_query("SELECT count(`id`) FROM `asq` WHERE `log` = $dty AND `vis` NOT LIKE 0"),0);
$sql=mysql_query("SELECT * FROM `asq` WHERE `log` = $dty AND `vis` NOT LIKE 0 ORDER BY `id` DESC LIMIT $i,$mes");
mysql_close;
print "<small>- Bceгo: ".$total." -</small><br/><br/></p>\n";
print "<p>\n";
for ($p = 1; $p<($mes+1); $p++) {
if ($i+1<=$total) {
$data=mysql_fetch_array($sql);
$id = $data['id'];
$sect = $data['sect'];
$name = k2u($data['name']);
$text = k2u($data['text']);
$num = k2u($data['num']);
$nyes = $data['nyes'];
$em = k2u($data['em']);
$i++;
$q = $p;
print "<b>".$i.". ".$name."</b><br/>\n";
print "$text<br/><small>\n";
if($num<>"") {if($nyes==0) {print "$num<br/>\n";} else print "<a href=\"wtai://wp/mc;".$num."\">".$num."</a><br/>\n";}
if($em<>"") print "$em<br/>\n";
print "[".$sector[$sect]."]</small>\n";
}
}
if ($i>$mes) {
$a = $i-$q-$mes;
print "<a href=\"".$_SERVER['SCRIPT_NAME']."?i=$a\">Haзaд</a><br/>\n"; }
if ($i<$total) {
print "<a href=\"".$_SERVER['SCRIPT_NAME']."?i=$i\">Дaлee</a><br/>\n"; }
print "</p>\n";
print "<p align=\"center\">\n";
if ($i == $total) {
print "<br/><b><a href=\"acq.php\">[Haчaлo]</a></b>\n"; }
endcard ();
?>