<?
header("Content-Type: text/vnd.wap.wml; charset=utf-8");
echo '<?xml version="1.0" encoding="utf-8"?>';
echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml1.2.dtd">';
require "conf.php";
$conn=mysql_connect(my_host, my_user, my_password);
mysql_select_db(my_db, $conn);
if(isset($HTTP_COOKIE_VARS['username']))
{
$name1=$HTTP_COOKIE_VARS['username'];
}
else
{
if(isset($HTTP_GET_VARS['UIN']))
{
$name1=$HTTP_GET_VARS['UIN'];
}
else
{
$name1="Guest";
}
}
$UINmd5=$name1;
if(isset($HTTP_GET_VARS['pass']))
{
$pass=$HTTP_GET_VARS['pass'];
}
else
{
$pass="Guest";
}
$sql=("select `pass`, `admin` from `index` where id='$UIN'");
$res=mysql_query($sql);
$row=mysql_fetch_object($res);
$admin=$row->admin;
if ($pass!=$row->pass)
{
$name1="Guest";
}
echo '<wml>';
echo '<head>';
echo '<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>';
echo '</head>';
$message=eregi_replace("ï°","а",$message);
$message=eregi_replace("ï±","?",$message);
$message=eregi_replace("ï²","?",$message);
$message=eregi_replace("ï¨","?",$message);
$message=eregi_replace("ï´","?",$message);
$message=eregi_replace("ïµ","?",$message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ï¶","?",$message);
$message=eregi_replace("ï·","?",$message);
$message=eregi_replace("ï¸","?",$message);
$message=eregi_replace("ï¹","?",$message);
$message=eregi_replace("ïº","?",$message);
$message=eregi_replace("ï»","?",$message);
$message=eregi_replace("ï¼","?", $message);
$message=eregi_replace("ï½","?", $message);
$message=eregi_replace("ï¾","?", $message);
$message=eregi_replace("ï¿","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ÿ?","?", $message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?", $message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?",$message);
$message=eregi_replace("ï?","?", $message);
$message=eregi_replace("ï?","?", $message);
$message=eregi_replace("ï?","?", $message);
$message=eregi_replace("ï?","?", $message);
$message=eregi_replace("ï ","?",$message);
$message=eregi_replace("ï¡","?",$message);
$message=eregi_replace("ï¢","?",$message);
$message=eregi_replace("ï£","?",$message);
$message=eregi_replace("ï¤","?",$message);
$message=eregi_replace("ï¥","?",$message);
$message=eregi_replace("ï¦","?",$message);
$message=eregi_replace("ï§","?",$message);
$message=eregi_replace("ï¨","?",$message);
$message=eregi_replace("ï©","?",$message);
$message=eregi_replace("ïª","?",$message);
$message=eregi_replace("ï«","?",$message);
$message=eregi_replace("ï¬","?", $message);
$message=eregi_replace("ï­","?", $message);
$message=eregi_replace("ï®","?", $message);
$message=eregi_replace("ï¯","?", $message);
$name2=$message;
?>
<card id="user" title="Перейти к номеру">
<p>
<?
echo "
введите номер<br/>
<input type=\"text\" value=\"next_row\" maxlength=\"4\" name=\"next_row\" format=\"*N\"/><br/>
<anchor title=\"OK\">OK<go method=\"get\" href=\"readmess.php?UIN=$UINmd5&pass=$pass&next_row=$next_row&topic=$topic&room=$room\">
<postfield name=\"next_row\" value=\"$(next_row)\"/>
</go></anchor>";
?>
<?
mysql_close($conn);
?></p></card></wml>