From 71c5a40d5d5090c6847a801789a72a523d2cddc8 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 6 Sep 2017 17:08:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=81=EC=B9=B4=ED=8A=B8=20=EB=8B=A4?= =?UTF-8?q?=EC=A4=91=20=EC=B7=A8=EC=95=BD=EC=A0=90(=2017-0556=20)=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/bannerformupdate.php | 2 ++ adm/shop_admin/itemsellrank.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/adm/shop_admin/bannerformupdate.php b/adm/shop_admin/bannerformupdate.php index 662483813..e260fe920 100644 --- a/adm/shop_admin/bannerformupdate.php +++ b/adm/shop_admin/bannerformupdate.php @@ -17,6 +17,8 @@ $bn_bimg = $_FILES['bn_bimg']['tmp_name']; $bn_bimg_name = $_FILES['bn_bimg']['name']; +$bn_id = (int) $bn_id; + if ($bn_bimg_del) @unlink(G5_DATA_PATH."/banner/$bn_id"); //파일이 이미지인지 체크합니다. diff --git a/adm/shop_admin/itemsellrank.php b/adm/shop_admin/itemsellrank.php index c11f64393..a37c9f039 100644 --- a/adm/shop_admin/itemsellrank.php +++ b/adm/shop_admin/itemsellrank.php @@ -16,6 +16,9 @@ $doc = strip_tags($doc); $sort1 = strip_tags($sort1); +if( preg_match("/[^0-9]/", $fr_date) ) $fr_date = ''; +if( preg_match("/[^0-9]/", $to_date) ) $to_date = ''; + $sql = " select a.it_id, b.*, SUM(IF(ct_status = '쇼핑',ct_qty, 0)) as ct_status_1,