Размер файла: 1.45Kb
- <?
- header("Content-Type: text/vnd.wap.wml");
- echo '<?xml version="1.0" encoding="utf-8"?>';
- echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
- "http://www.wapforum.org/DTD/wml_1.1.xml">';
- require "conf.php";
- $conn=mysql_connect(my_host, my_user, my_password);
- mysql_select_db(my_db, $conn);
-
-
-
-
- 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 `admin` from `index` where id='$UIN'");
- $res=mysql_query($sql);
- $row=mysql_fetch_object($res);
- if ($pass!=$row->pass)
-
- $add=$row->admin;
-
-
- echo '<wml>';
- echo '<head>';
- echo '<meta http-equiv="Cache-Control" content="no-store" forua="true"/>';
- echo '</head>';
- ?>
- <card ontimer="forum.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&room=<?=$room?>" id="id" title="<?=$id?>">
- <timer value="20"/>
- <p>
- <?
-
-
-
-
- If ($add==1)
- {
- $sql=("delete from `topic` where id='$topic'");
- mysql_query($sql);
- $sql=("delete from `rating` where ident='$topic'");
- mysql_query($sql);
- $sql=("delete from `forum` where topic='$topic'");
- mysql_query($sql);
- ?>
- Teмa <?=$topic?> ycпeшнo yдaлeнa...<br/>
- <?
- mysql_close($conn);?><?
-
- }
-
-
-
- else { echo 'Fuck You';
-
- }
- ?>
- </p>
- </card>
- </wml>