Browse Source

修正

KEKEC_BBS_DEV-001
みてるぞ 1 year ago
parent
commit
26d78aab88
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      modules/delete.php
  2. +1
    -1
      modules/make_thread.php
  3. +1
    -1
      scripts/paint.js

+ 2
- 2
modules/delete.php View File

@@ -28,11 +28,11 @@ if ($result = $mysqli -> query ("
WHERE WHERE
(thread_id = $thread) AND (response_id = $id)"); (thread_id = $thread) AND (response_id = $id)");


echo "消しましたぁ!!<br /><br /><img style='border: solid 1px' src='image/{$row['image']}' />";
echo "消しましたぁ!!<br /><br /><img style='border: solid 1px' src='/images/{$row['image']}' />";
else: else:
echo '残念.<br />削除用パスワードが違います.'; echo '残念.<br />削除用パスワードが違います.';
endif; endif;


echo "<br /><br />5 秒後に元のページに戻ります.<br /><br /><a href='./?thread=$thread#$id'>戻らない場合はこちら</a><script>setTimeout (function () {window.location.href = `./?thread=$thread#$id`}, 5000)</script>";
echo "<br /><br />5 秒後に元のページに戻ります.<br /><br /><a href='/?thread=$thread#$id'>戻らない場合はこちら</a><script>setTimeout (function () {window.location.href = `/?thread=$thread#$id`}, 5000)</script>";
endif; endif;



+ 1
- 1
modules/make_thread.php View File

@@ -17,7 +17,7 @@ if (!(empty ($_POST['thread-name'])))


$result -> close (); $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); $mysqli -> query ($sql);
/* $sql = "CREATE TABLE `miteruzo_bbs`.`thread_$current` ( /* $sql = "CREATE TABLE `miteruzo_bbs`.`thread_$current` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'レス番', `id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'レス番',


+ 1
- 1
scripts/paint.js View File

@@ -872,7 +872,7 @@ deletePostReally ()
{ {
const searchParams = new URLSearchParams (window.location.search); 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}`; 'thread')}&id=${delId.value}&pass=${delPass.value}`;
} }
else else


Loading…
Cancel
Save