Просмотр файла txtban/forum/dellmess.php

Размер файла: 1.45Kb
  1. <?
  2. header("Content-Type: text/vnd.wap.wml");
  3. echo '<?xml version="1.0" encoding="utf-8"?>';
  4. echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
  5. "http://www.wapforum.org/DTD/wml_1.1.xml">';
  6. require "conf.php";
  7. $conn=mysql_connect(my_host, my_user, my_password);
  8. mysql_select_db(my_db, $conn);
  9.  
  10.  
  11.  
  12.  
  13. if(isset($HTTP_GET_VARS['UIN']))
  14. {
  15. $UIN=$HTTP_GET_VARS['UIN'];
  16. }
  17. else
  18. {
  19. $UIN="Guest";
  20. }
  21. $UINmd5=$UIN;
  22.  
  23.  
  24.  
  25.  
  26. if(isset($HTTP_GET_VARS['pass']))
  27.  
  28. {
  29.  
  30. $pass=$HTTP_GET_VARS['pass'];
  31.  
  32. }
  33.  
  34. else
  35.  
  36. {
  37.  
  38. $pass="Guest";
  39.  
  40. }
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. $sql=("select `admin` from `index` where id='$UIN'");
  48. $res=mysql_query($sql);
  49. $row=mysql_fetch_object($res);
  50. if ($pass!=$row->pass)
  51.  
  52. $add=$row->admin;
  53.  
  54.  
  55. echo '<wml>';
  56. echo '<head>';
  57. echo '<meta http-equiv="Cache-Control" content="no-store" forua="true"/>';
  58. echo '</head>';
  59. ?>
  60. <card ontimer="forum.php?UIN=<?=$UINmd5?>&amp;pass=<?=$pass?>&amp;room=<?=$room?>" id="id" title="<?=$id?>">
  61. <timer value="20"/>
  62. <p>
  63. <?
  64.  
  65.  
  66.  
  67. If ($add==1)
  68. {
  69. $sql=("delete from `topic` where id='$topic'");
  70. mysql_query($sql);
  71. $sql=("delete from `rating` where ident='$topic'");
  72. mysql_query($sql);
  73. $sql=("delete from `forum` where topic='$topic'");
  74. mysql_query($sql);
  75. ?>
  76. Te&#x043C;a <?=$topic?> yc&#x043F;e&#x0448;&#x043D;o y&#x0434;a&#x043B;e&#x043D;a...<br/>
  77. <?
  78. mysql_close($conn);?><?
  79.  
  80. }
  81.  
  82.  
  83. else { echo 'Fuck You';
  84.  
  85. }
  86. ?>
  87. </p>
  88. </card>
  89. </wml>