@@ -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; | ||||
@@ -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 'レス番', | ||||
@@ -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 | ||||