Размер файла: 1.81Kb
<?php
error_reporting(0);
if(!isset($_GET['ver']) || empty($_GET['ver'])) $ver='wml';
else $ver=$_GET['ver'];
switch($ver)
{
// wml version
case 'wml':
header('Content-type:text/vnd.wap.wml; charset=utf-8');
echo '<?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">';
echo '<wml><card id="start" title="wapt"><p align="left" mode="wrap">';
echo "<do type=\"prev\" label=\"Назад\"><prev/></do><br/>\n";
echo "<small><a href=\"index.php?ver=html\">html</a> | wml</small><br/>\n";
echo "эротика<br/>\n";//название раздела
echo "<a href=\"adjustment.php?ver=wml\">настройки</a><br/>\n";
echo "<a href=\"photo.php?ver=wml&w=128&h=128&q=100&pp=30&k_v=5\">В галерею</a><br/>\n";
echo "<br/><a href=\"../index.php\">на главную</a><br/>\n";
echo "© wapt";
echo "</p></card></wml>";
break;
// html version
case 'html':
header("Content-Type: text/html; charset=utf-8");
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>wapt</title></head><body link="#000080" vlink="#FF0000" alink="#00FF00">';
echo '<table width="100%" align="center" bgcolor="#00FFFF" border="1"><tr><td height="30">
</td></tr></table>';
echo "<a href=\"index.php?ver=wml\">wml</a> | html<br/>\n";
echo "<big>эротика</big><br/>\n";
echo "<a href=\"adjustment.php?ver=html\">Настройки<br/>\n";
echo "<a href=\"photo.php?ver=html&w=128&h=128&q=100&pp=30&k_v=5\">В галерею</a><br/>\n";
echo "<br/><a href=\"../index.php\">на главную</a><br/>\n";
echo '<table width="100%" align="center" bgcolor="#00FFFF" border="1"><tr><td height="30">
© wapt</td></tr></table>';
echo '</body></html>';
break;
}
?>