View file wapp_antifront.com/chat/spisokm.php

File size: 2.03Kb
<?

Error_Reporting(E_ALL & ~E_NOTICE);          /////////////// игнорируем ошибки
header("Content-type:text/vnd.wap.wml;charset=utf-8");      //////// тип и кодировка документа

include 'dan.php';
include 'uzdan.php';




print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
        <!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
        <wml><card id=\"mas\" title=\"$zag\"><p>";
                                                        ///////////// выводим вмл заголовок
if($login != "" &  $statys=="admin"){

print"&#x0414;&#x043B;&#x044F; &#x0443;&#x0434;&#x0430;&#x043B;&#x0435;&#x043D;&#x0438;&#x044F; &#x043A;&#x043B;&#x0438;&#x043A;&#x043D;&#x0438;&#x0442;&#x0435; &#x043D;&#x0430; &#x0441;&#x043B;&#x043E;&#x0432;&#x043E;<br/><br/>";

$ss = @file("$rek/mat.txt");
$strok = sizeof($ss);
if($x==""){$x=0;}
$xkm=$x+12;

while($x<=$strok & $x<$xkm){
$textm=@file("$rek/mat.txt");
$mte=trim($textm[$x]);
print"<anchor title=\"ok\">$mte
<go href=\"dels.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"dels\" value=\"$x\"/>
<postfield name=\"key\" value=\"$key\"/>
</go>
</anchor><br/>";
$x=$x+1;}


if($xkm<$strok){print"<br/><anchor title=\"ok\">&#x0434;&#x0430;&#x043B;&#x0435;&#x0435;
<go href=\"spisokm.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"x\" value=\"$x\"/>
<postfield name=\"key\" value=\"$key\"/>
</go>
</anchor><br/>";}

print"<br/><anchor title=\"ok\">&#x041A; &#x0441;&#x043F;&#x0438;&#x0441;&#x043A;&#x0443; &#x043A;&#x043E;&#x043C;&#x043D;&#x0430;&#x0442;
<go href=\"rum.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"key\" value=\"$key\"/>
</go>
</anchor>
";

}

print "
<br/><br/><a href=\"$gl\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a><br/>
</p></card></wml>";

?>