From 26d78aab88b4918d1d14425497b35c0426efa4c5 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Fri, 1 Sep 2023 02:06:03 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/delete.php | 4 ++-- modules/make_thread.php | 2 +- scripts/paint.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/delete.php b/modules/delete.php index 998a168..b98bee8 100644 --- a/modules/delete.php +++ b/modules/delete.php @@ -28,11 +28,11 @@ if ($result = $mysqli -> query (" WHERE (thread_id = $thread) AND (response_id = $id)"); - echo "消しましたぁ!!

"; + echo "消しましたぁ!!

"; else: echo '残念.
削除用パスワードが違います.'; endif; - echo "

5 秒後に元のページに戻ります.

戻らない場合はこちら"; + echo "

5 秒後に元のページに戻ります.

戻らない場合はこちら"; endif; diff --git a/modules/make_thread.php b/modules/make_thread.php index 8fc0a8a..8ae4b56 100644 --- a/modules/make_thread.php +++ b/modules/make_thread.php @@ -17,7 +17,7 @@ if (!(empty ($_POST['thread-name']))) $result -> close (); - $sql = "INSERT INTO threads (id, title, `explain`, latest, length) VALUES ($current, '{$_POST['thread-name']}', '$explain', '" . date ('Y-m-d H:i:s') . "', 0)"; + $sql = "INSERT INTO threads (title, `explain`, latest, length) VALUES ('{$_POST['thread-name']}', '$explain', '" . date ('Y-m-d H:i:s') . "', 0)"; $mysqli -> query ($sql); /* $sql = "CREATE TABLE `miteruzo_bbs`.`thread_$current` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'レス番', diff --git a/scripts/paint.js b/scripts/paint.js index 9d90c53..899b99f 100644 --- a/scripts/paint.js +++ b/scripts/paint.js @@ -872,7 +872,7 @@ deletePostReally () { const searchParams = new URLSearchParams (window.location.search); - window.location.href = `./delete.php?thread=${searchParams.get ( + window.location.href = `./modules/delete.php?thread=${searchParams.get ( 'thread')}&id=${delId.value}&pass=${delPass.value}`; } else