File size: 1.99Kb
<?
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=\"Фото\"><p align=\"center\">";
///////////// выводим вмл заголовок
if($login != ""){
$ss = @file("$foto/$obr.foto");
$strok = sizeof($ss);
$strok=$strok-1;
if($ts==""){$ts=0;}
$arra=@file("$foto/$obr.foto");
while($ts<=$strok & $kp<4){
$arme=@explode(":||:",$arra[$ts]);
$nara=trim($arme[1]);
$nora=trim($arme[0]);
if($nora!=""){
print"
<img src=\"pfoto.php?f=$nara\" alt=\"фото $nora\"/><br/>
<a href=\"$nara\">Смотреть</a><br/><br/>
";
$kp=$kp+1;}
$ts=$ts+1;
}
if($ts<$strok){print"<br/><anchor title=\"next\">Смотреть далее
<go href=\"sfoto.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nr\" value=\"$nr\"/>
<postfield name=\"ts\" value=\"$ts\"/>
<postfield name=\"obr\" value=\"$obr\"/>
<postfield name=\"key\" value=\"$key\"/>
</go></anchor><br/>";}
}
print "<anchor title=\"ok\">В чат
<go href=\"chat.php\" method=\"post\">
<postfield name=\"login\" value=\"$login\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nr\" value=\"$nr\"/>
<postfield name=\"obr\" value=\"$obr\"/>
<postfield name=\"key\" value=\"$key\"/>
</go></anchor>
<br/><br/><a href=\"$gl\">На главную</a><br/>
</p></card></wml>";
?>