Просмотр файла fastwap/admin/delete_person.php

Размер файла: 2.2Kb
  1. <?
  2.  
  3. include "../../../fastwap.inc.php";
  4.  
  5. //============================================================================
  6. //Fastwap v.1.3 - a Linkmamager for WAP-Phones
  7. //Copyright (C) 2001/2002 webDessert.ch <fastwap@webdessert.ch>
  8. //
  9. // This program is free software; you can redistribute it and/or
  10. // modify it under the terms of the GNU General Public License
  11. // as published by the Free Software Foundation; either version 2
  12. // of the License, or (at your option) any later version.
  13. //
  14. // This program is distributed in the hope that it will be useful,
  15. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. // GNU General Public License for more details.
  18. //
  19. // You should have received a copy of the GNU General Public License
  20. // along with this program; if not, write to the Free Software
  21. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 021111307, USA.
  22. // ==============================================================================
  23.  
  24.  
  25. ?>
  26.  
  27. <html>
  28.  
  29. <head><title></title>
  30.  
  31. <link rel="STYLESHEET" media="screen" href="site.css" type="text/css">
  32.  
  33. <meta http-equiv="refresh" content="3; URL=admin.php">
  34.  
  35. <meta http-equiv="Pragma" content="no-cache">
  36.  
  37. <meta http-equiv="expires" content="0">
  38.  
  39.  
  40.  
  41. </head>
  42.  
  43. <body bgcolor="#ffffff" text="#000000">
  44.  
  45. <br><br>
  46.  
  47.  
  48.  
  49. <?
  50. $db_pass_admin = md5($db_pass);
  51.  
  52. if($password_admin != $db_pass_admin || $username_admin != $db_user)
  53.  
  54. {
  55.  
  56. echo("wrong password / password expired. Please log in <a href=\"$path_fastwap/admin\">here</a>.");
  57.  
  58. exit();
  59.  
  60. }
  61.  
  62. $dbcnx = mysql_connect("$db_host", "$db_user", "$db_pass");
  63.  
  64. if (!$dbcnx) {
  65.  
  66. echo( "<P>Unable to connect to the " .
  67.  
  68. "database server at this time.</P>" );
  69.  
  70. exit();
  71.  
  72. }
  73.  
  74.  
  75. mysql_select_db("$db_dbname", $dbcnx) or die(mysql_error());
  76.  
  77.  
  78. $delete_person = "DELETE FROM fastwap_person WHERE ID = '$ID_person' AND password = '$pw_person'";
  79.  
  80. $deleteresult_person = mysql_query($delete_person);
  81.  
  82. $delete_link = "DELETE FROM fastwap_link WHERE IDname = '$ID_person' AND password = '$pw_person'";
  83.  
  84. $deleteresult_link = mysql_query($delete_link);
  85.  
  86. mysql_close();
  87.  
  88.  
  89.  
  90. ?>
  91.  
  92. </body>
  93.  
  94. </html>