리펙토링 #6 참고

This commit is contained in:
Lectom C Han
2026-02-05 12:38:34 +09:00
parent 46b30af839
commit 7034a3643a
17 changed files with 76 additions and 369 deletions

View File

@@ -14,7 +14,7 @@ if (session_status() === PHP_SESSION_NONE) {
if (empty($_SESSION['login'])) {
echo "<script>
alert('로그인 후 이용 가능합니다.');
location.href = '/qa_list.skin';
location.href = '/qa_list';
</script>";
exit;
}
@@ -92,7 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && ($_POST['action'] ?? '') === 'delet
$pdo->commit();
header("Location: /qa_list.skin");
header("Location: /qa_list");
exit;
} catch (Exception $e) {
@@ -230,4 +230,4 @@ $isOwner = ($post['user_id'] === $me);
/* ===============================
12. 스킨 렌더링
=============================== */
include $_SERVER['DOCUMENT_ROOT'].'/kngil/skin/qa_detail.skin.php';
include $_SERVER['DOCUMENT_ROOT'].'/kngil/skin/qa_detail.php';