<?
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="<?=$user?>">
<p>
<?
if ($admin==1)
{
?><do name="a6" type="options" label="Удалить пост"><go href="delpost.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&id=<?=$id?>&topic=<?=$topic?>&room=<?=$room?>"/></do><do name="a333" type="options" label="Заебанить"><go href="ban.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&user=<?=$user?>&room=<?=$room?>"/></do><?
}
if ($admin==2)
{
?><do name="a6" type="options" label="Удалить пост"><go href="delpost.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&id=<?=$id?>&topic=<?=$topic?>&room=<?=$room?>"/></do><?
}
$result= mysql_query("SELECT `id`, `email` FROM `index` WHERE site='$user'");
$row = mysql_fetch_array($result);
print '<br/><br/>Eгo id: '.$row[id].'<br/>';
print '<br/>Eгo email: '.$row[email].'<br/>';
?>
<a href="readmess.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&topic=<?=$topic?>&user=<?=$user?>&room=<?=$room?>">Haзaд</a><br/>
<?
mysql_close($conn);
?></p></card></wml>