View file cat.php

File size: 795B
<?php
include "config.php";
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
$content = file("content.txt");
$contentrandom = rand(0, sizeof($content)-1);
print"<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml><head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>
<card title=\"Каталог\"><p><small>$content[$contentrandom]<br/>";
if(isset($c)&&!empty($c)){print_data($c,$page);}else{print_data("all",$page);}
print"<br/><a href=\"./\">Выбрать категорию</a><br/>-----<br/>
<a href=\"http://www.erokat.net/in/?id=15\"><img src=\"http://banners.su/banner.php?id=16029\" alt=\"banners\"/></a>
</small>
</p></card></wml>";
?>