File size: 3.24Kb
<?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 "эротика<br/>\n";
echo "<small><a href=\"adjustment.php?ver=html\">html</a> | wml</small><br/>\n";
echo "Настройки<br/>\n";
echo "ширина:<br/>\n";
echo "<input name=\"w\" maxlength=\"3\" title=\"width\" size=\"3\" value=\"128\" emptyok=\"false\"/><br/>\n";
echo "высота:<br/>\n";
echo "<input name=\"h\" maxlength=\"3\" title=\"height\" size=\"3\" value=\"128\" emptyok=\"false\"/><br/>\n";
echo "качество в %:<br/>\n";
echo "<input name=\"q\" maxlength=\"3\" title=\"quality\" size=\"3\" value=\"100\" emptyok=\"false\"/><br/>\n";
echo "предпросм.:<br/>\n";
echo "<select name=\"pp\">\n";
echo "<option value=\"30\">30Х30</option>\n";
echo "<option value=\"50\">50Х50</option>\n";
echo "<option value=\"0\">выкл.</option>\n";
echo "</select><br/>\n";
echo "на страницу:<br/>\n";
echo "<select name=\"k_v\">\n";
echo "<option value=\"5\">5</option>\n";
echo "<option value=\"10\">10</option>\n";
echo "<option value=\"15\">15</option>\n";
echo "</select><br/>\n";
echo "<anchor title=\"go\">применить<go href=\"photo.php?ver=$ver\" method=\"get\">\n";
echo "<postfield name=\"w\" value=\"$(w)\"/>\n";
echo "<postfield name=\"h\" value=\"$(h)\"/>\n";
echo "<postfield name=\"q\" value=\"$(q)\"/>\n";
echo "<postfield name=\"pp\" value=\"$(pp)\"/>\n";
echo "<postfield name=\"k_v\" value=\"$(k_v)\"/>\n";
echo "</go></anchor><br/><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=\"adjustment.php?ver=wml\">wml</a> | html<br/>\n";
echo "<big>эротика</big><br/>\n";
echo "Настройки<br/>\n";
echo '<form action="photo.php">
<input type="hidden" name="ver" value="html">
ширина:<br/><input type="text" name="w" value="128" maxlength="3"><br/>
высота:<br/><input type="text" name="h" value="128" maxlength="3"><br/>
качество в %<br/><input type="text" name="q" value="100" maxlength="3"><br/>
предпросм.:<br/><select name="pp"><option value="30">30Х30<option value="50">50Х50<option value="0">выкл.</select><br/>
на страницу:<br/><select name="k_v"><option value="5">5<option value="10">10<option value="15">15</select>
<br/><br/><input type="submit" value="применить"></form>';
echo '<table width="100%" align="center" bgcolor="#00FFFF" border="1"><tr><td height="30">
© wapt</td></tr></table>';
echo '</body></html>';
break;
}
?>