View file znak_myxxx.ru/znak_myxxx.ru/newyesadm.php

File size: 2.53Kb
<?php
include("service.php");
if($n==$admin and $pas==$pass) {
include("cards.php");
include("functext.php");
$sector = array(
0 => "Pa&#x0437;&#x043D;oe",
1 => "&#x041F;ap&#x043D;&#x0438;",
2 => "&#x0414;e&#x0432;y&#x0448;&#x043A;&#x0438;",
3 => "&#x0418;&#x043D;&#x0442;&#x0438;&#x043C;",
4 => "&#x0413;e&#x0438;",
5 => "&#x041B;ec&#x0431;&#x0438;",
6 => "&#x041F;ap&#x044B;, &#x0411;&#x0438;",
7 => "&#x0424;o&#x0442;o, &#x0432;&#x0438;&#x0434;eo, MMS",
 );
$data=date("md");
$dty=strftime ("%m%d", strtotime("-1 day"));
if(!@$i)$i='0';
$ref=$i;
card ();
print "<do name=\"be\" type=\"options\" label=\"Ha&#x0447;a&#x043B;o\"><go href=\"acqadm.php?n=$n&amp;pas=$pas\"/></do>\n";
print "<do name=\"ma\" type=\"options\" label=\"&#x0413;&#x043B;a&#x0432;&#x043D;a&#x044F;\"><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&#x0433;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&amp;ref=$ref&amp;url=newyes&amp;n=$n&amp;pas=$pas\">[x]</a>\n";
print "<a href=\"mov.php?id=$id&amp;ref=$ref&amp;url=newyes&amp;n=$n&amp;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\n";
print "[".$sector[$sect]."]</small><br/><br/>\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&amp;n=$n&amp;pas=$pas\">[Ha&#x0437;a&#x0434;]</a></b>\n"; }
if ($i<$total) {
print "<b><a href=\"".$_SERVER['SCRIPT_NAME']."?i=$i&amp;n=$n&amp;pas=$pas\">[&#x0414;a&#x043B;ee]</a></b><br/>\n"; }
if ($i == $total) {
print "<br/><b><a href=\"acqadm.php?n=$n&amp;pas=$pas\">[Ha&#x0447;a&#x043B;o]</a></b>\n"; }
print "</p></card></wml>\n";  }
else {
header("Location: http://myxxx.ru");
}
?>