キケッツ掲示板のリポジトリです. https://bbs.kekec.wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

delete.php~ 664 B

123456789101112131415161718192021222324252627
  1. <?php
  2. require "${_SERVER['DOCUMENT_ROOT']}/database.php";
  3. $mysqli = set_mysql ('miteruzo_bbs');
  4. $mysqli -> set_charset ('utf8');
  5. $thread = $_GET['thread'];
  6. $id = $_GET['id'];
  7. $pass = $_GET['pass'];
  8. if ($result = $mysqli -> query ("
  9. SELECT
  10. pass
  11. FROM
  12. responses
  13. WHERE
  14. (thread_id = {$_GET['thread']}) AND (response_id = {$_GET['id']})")):
  15. $row = $result -> fetch_assoc ();
  16. if ($_GET['pass'] == $row['pass']):
  17. else:
  18. echo "残念.\n削除用パスワードが違います.<script>setTimeout (function () {window.location.href = `./?thread=$thread`}, 5000)</script>";
  19. endif;
  20. endif;