View file cat/section.php

File size: 668B
<?php
require ("cfg.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/>
</small>
</p></card></wml>";
?>