리펙토링 #6 참고
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user