KEKEC_BBS_DEV-001 #5

Merged
みてるぞ merged 9 commits from KEKEC_BBS_DEV-001 into main 2023-10-29 14:56:15 +09:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 26d78aab88 - Show all commits
+2 -2
View File
@@ -28,11 +28,11 @@ if ($result = $mysqli -> query ("
WHERE
(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:
echo '残念.<br />削除用パスワードが違います.';
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;
+1 -1
View File
@@ -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 'レス番',
+1 -1
View File
@@ -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