File size: 1.63Kb
<?
require "conf.php";
$agent=$HTTP_USER_AGENT;
$conn=mysql_connect(my_host, my_user, my_password);
mysql_select_db(my_db, $conn);
header("Content-Type: text/vnd.wap.wml");
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\">";
if(isset($HTTP_GET_VARS['UIN']))
{
$UIN=$HTTP_GET_VARS['UIN'];
}
else
{
$UIN="Guest";
}
$UINmd5=$UIN;
if(isset($HTTP_GET_VARS['pass']))
{
$pass=$HTTP_GET_VARS['pass'];
}
else
{
$pass="Guest";
}
$sql=("select `pass` from `index` where id='$UIN'");
$res=mysql_query($sql);
$row=mysql_fetch_object($res);
$themes=10;
if ($pass!=$row->pass)
{
$UIN="Guest";
}
echo "<wml>
<card title=\"Добавить тему\" newcontext=\"true\">
<p>
Добавить тему:<br/>
<input type=\"text\" title=\"Сообщение\" value=\"\" maxlength=\"60\" name=\"num\" emptyok=\"false\"/><br/>
Сообщение:<br/>
<input type=\"text\" title=\"Сообщение\" value=\"\" maxlength=\"300\" name=\"num2\" emptyok=\"false\"/><br/>
<anchor>
OK
<go method=\"post\" href=\"addtem_ok.php?room=$room&UIN=$UIN&pass=$pass\">
<postfield name=\"text\" value=\"$(num)\"/>
<postfield name=\"text2\" value=\"$(num2)\"/></go></anchor>
</p>
</card>
</wml>";
?>