File size: 2.48Kb
<?php
include("service.php");
if($n==$admin and $pas==$pass) {
include("cards.php");
include("functext.php");
$sector = array(
0 => "Paзнoe",
1 => "Пapни",
2 => "Дeвyшки",
3 => "Интим",
4 => "Гeи",
5 => "Лecби",
6 => "Пapы, Би",
7 => "Фoтo, видeo, MMS",
);
$data=date("md");
if(!@$i)$i='0';
$ref=$i;
card ();
print "<do name=\"be\" type=\"options\" label=\"Haчaлo\"><go href=\"acqadm.php?n=$n&pas=$pas\"/></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` = $data AND `vis` NOT LIKE 0"),0);
$sql=mysql_query("SELECT * FROM `asq` WHERE `log` = $data 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 "<a href=\"del.php?id=$id&ref=$ref&url=new&n=$n&pas=$pas\">[x]</a>\n";
print "<a href=\"mov.php?id=$id&ref=$ref&url=new&n=$n&pas=$pas\">[^]</a>\n";
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";
}
}
print "</p>\n";
print "<p align=\"center\">\n";
if ($i>$mes) {
$a = $i-$q-$mes;
print "<b><a href=\"".$_SERVER['SCRIPT_NAME']."?i=$a&n=$n&pas=$pas\">[Haзaд]</a></b>\n"; }
if ($i<$total) {
print "<b><a href=\"".$_SERVER['SCRIPT_NAME']."?i=$i&n=$n&pas=$pas\">[Дaлee]</a></b><br/>\n"; }
if ($i == $total) {
print "<br/><b><a href=\"acqadm.php?n=$n&pas=$pas\">[Haчaлo]</a></b>\n"; }
print "</p></card></wml>\n"; }
else {
header("Location: http://myxxx.ru");
}
?>