페이지 직접 실행 방지 코드 추가 및 공백, 주석 정리

This commit is contained in:
2025-07-23 16:55:45 +09:00
parent 99a9a6fd42
commit 95fbca87ab
4 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,6 @@
<?php
if (!isset($_SESSION['user_id'])) exit; //페이지 직접 실행 방지
include_once "_common.php";
// 테이블 존재 유무 확인 쿼리

View File

@ -2,8 +2,6 @@
include_once "_common.php";
if(!$_SESSION['user_id']) exit; // 로그인되어있지 않으면 확인 불가
$product_name = isset($_POST['product_name']) ? trim($_POST['product_name']) : exit;
$barcode = isset($_POST['barcode']) ? trim($_POST['barcode']) : exit;
$used = isset($_POST['used']) ? trim($_POST['used']) : exit;

View File

@ -2,6 +2,7 @@
// 설정 파일 포함
include_once('_common.php');
if(!$_SESSION['user_id']) exit; // 로그인 되어있지 않으면 확인 불가
// 검색 날짜
$searchDate = $_POST['searchDate'];
$ord_by = $_POST['ordBy'];

View File

@ -1,4 +1,6 @@
<?php
if (!isset($_SESSION['user_id'])) exit; //페이지 직접 실행 방지
?>
<script>
$(document).ready(function() {
var ordBy = <?php echo json_encode(isset($ord_by) ? $ord_by : ''); ?>;