diff --git a/adm/board_form_update.php b/adm/board_form_update.php index b5f7364b7..83ff74b52 100644 --- a/adm/board_form_update.php +++ b/adm/board_form_update.php @@ -39,14 +39,17 @@ $bo_include_tail = isset($_POST['bo_include_tail']) ? preg_replace(array("#[\\\] $check_captcha = false; // 관리자가 자동등록방지 CAPTCHA를 사용해야 할 경우 -if ($w === 'u') { - if (isset($board['bo_include_head'], $board['bo_include_tail']) && - ($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail)) { - $check_captcha = true; - } -} elseif ($w === '') { - if ($bo_include_head !== '_head.php' || $bo_include_tail !== '_tail.php') { - $check_captcha = true; +// 최고 관리자인 경우에만 수정가능 +if ($is_admin === 'super') { + if ($w === 'u') { + if (isset($board['bo_include_head'], $board['bo_include_tail']) && + ($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail)) { + $check_captcha = true; + } + } elseif ($w === '') { + if ($bo_include_head !== '_head.php' || $bo_include_tail !== '_tail.php') { + $check_captcha = true; + } } } diff --git a/adm/css/admin.css b/adm/css/admin.css index 6915f99b3..73a0aca71 100644 --- a/adm/css/admin.css +++ b/adm/css/admin.css @@ -587,7 +587,7 @@ td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center} .td_time{text-align:center;width:130px} .td_center{text-align:center;} .td_type{width:120px} -.td_consent{width:200px} +.td_consent{min-width:70px;max-width:200px} .td_mng_s{width:60px} .td_mng_m{width:100px} diff --git a/adm/member_list.php b/adm/member_list.php index bb3be84c6..afcf45e77 100644 --- a/adm/member_list.php +++ b/adm/member_list.php @@ -127,7 +127,7 @@ $colspan = 16; 본인확인 메일인증 정보공개 - 광고성이메일수신 + 광고성이메일 상태 휴대폰 최종접속 @@ -137,9 +137,9 @@ $colspan = 16; 이름 닉네임 - 광고성SMS/카카오톡수신 성인인증 접근차단 + 광고성SMS 권한 전화번호 가입일 @@ -258,7 +258,7 @@ $colspan = 16; value="1" id="mb_open_"> - + value="1" id="mb_mailling_"> @@ -281,12 +281,6 @@ $colspan = 16;
- - - - value="1" id="mb_sms_"> - - value="1" id="mb_adult_"> @@ -297,6 +291,11 @@ $colspan = 16; + + + value="1" id="mb_sms_"> + + diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php index adfb06ea8..adf10c60c 100644 --- a/adm/shop_admin/configformupdate.php +++ b/adm/shop_admin/configformupdate.php @@ -64,6 +64,8 @@ foreach($check_skin_keys as $key){ if( isset($_POST[$key]) && preg_match('#\.+(\/|\\\)#', $_POST[$key]) ){ alert('스킨설정에 유효하지 문자가 포함되어 있습니다.'); } + + $$key = $_POST[$key] = sql_real_escape_string($_POST[$key]); } // 현금영수증 발급수단 diff --git a/adm/shop_admin/itemeventform.php b/adm/shop_admin/itemeventform.php index 1ec6b43c9..a12967713 100644 --- a/adm/shop_admin/itemeventform.php +++ b/adm/shop_admin/itemeventform.php @@ -67,7 +67,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) for ($i=0; $i<$len; $i++) $nbsp .= "   "; - $category_select .= "\n"; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row['ca_id']) : $row['ca_name']; + $category_select .= "\n"; } // 모바일 1줄당 이미지수 필드 추가 diff --git a/adm/shop_admin/itemeventlist.php b/adm/shop_admin/itemeventlist.php index ce1f81695..a05e56676 100644 --- a/adm/shop_admin/itemeventlist.php +++ b/adm/shop_admin/itemeventlist.php @@ -107,7 +107,9 @@ if($ev_id) { $len = strlen($row1['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; - echo ''.PHP_EOL; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row1['ca_id']) : $row1['ca_name']; + echo ''.PHP_EOL; } ?> diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php index 0f6ec2a11..0961a2d0c 100644 --- a/adm/shop_admin/itemform.php +++ b/adm/shop_admin/itemform.php @@ -146,9 +146,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; - - $category_select .= "\n"; - + + // 전체 카테고리 경로 표시 (예: 남성의류 > 상의 > 셔츠) + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row['ca_id']) : $row['ca_name']; + $category_select .= "\n"; + $script .= "ca_use['{$row['ca_id']}'] = {$row['ca_use']};\n"; $script .= "ca_stock_qty['{$row['ca_id']}'] = {$row['ca_stock_qty']};\n"; //$script .= "ca_explan_html['$row[ca_id]'] = $row[ca_explan_html];\n"; @@ -1394,7 +1396,9 @@ $(function(){ for ($i=0; $i<$len; $i++) $nbsp .= "   "; - echo "\n"; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row['ca_id']) : $row['ca_name']; + echo "\n"; } ?> diff --git a/adm/shop_admin/itemlist.php b/adm/shop_admin/itemlist.php index 7556fb408..a0c2e38bc 100644 --- a/adm/shop_admin/itemlist.php +++ b/adm/shop_admin/itemlist.php @@ -25,7 +25,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) for ($i=0; $i<$len; $i++) { $nbsp .= '   '; } - $ca_list .= ''.PHP_EOL; + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row['ca_id']) : $row['ca_name']; + $ca_list .= ''.PHP_EOL; } $where = " and "; @@ -100,7 +101,9 @@ $listall = '전체목 $len = strlen($row1['ca_id']) / 2 - 1; $nbsp = ''; for ($i=0; $i<$len; $i++) $nbsp .= '   '; - echo ''.PHP_EOL; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row1['ca_id']) : $row1['ca_name']; + echo ''.PHP_EOL; } ?> diff --git a/adm/shop_admin/itemqalist.php b/adm/shop_admin/itemqalist.php index f8f79b3da..2230bf5c3 100644 --- a/adm/shop_admin/itemqalist.php +++ b/adm/shop_admin/itemqalist.php @@ -79,7 +79,9 @@ $listall = '전체목 $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; $selected = ($row1['ca_id'] == $sca) ? ' selected="selected"' : ''; - echo ''.PHP_EOL; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row1['ca_id']) : $row1['ca_name']; + echo ''.PHP_EOL; } ?> diff --git a/adm/shop_admin/itemsellrank.php b/adm/shop_admin/itemsellrank.php index b1e387d58..57be153b7 100644 --- a/adm/shop_admin/itemsellrank.php +++ b/adm/shop_admin/itemsellrank.php @@ -83,7 +83,9 @@ $listall = '전체목 $len = strlen($row1['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; - echo ''.PHP_EOL; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row1['ca_id']) : $row1['ca_name']; + echo ''.PHP_EOL; } ?> diff --git a/adm/shop_admin/itemstocklist.php b/adm/shop_admin/itemstocklist.php index c55fddde8..9329dc3c5 100644 --- a/adm/shop_admin/itemstocklist.php +++ b/adm/shop_admin/itemstocklist.php @@ -82,7 +82,9 @@ $listall = '전체목 $len = strlen($row1['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; - echo ''.PHP_EOL; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row1['ca_id']) : $row1['ca_name']; + echo ''.PHP_EOL; } ?> diff --git a/adm/shop_admin/itemtypelist.php b/adm/shop_admin/itemtypelist.php index a7b175b37..0587363fb 100644 --- a/adm/shop_admin/itemtypelist.php +++ b/adm/shop_admin/itemtypelist.php @@ -98,7 +98,9 @@ $listall = '전체목 $len = strlen($row1['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; - echo '전체목 $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; $selected = ($row1['ca_id'] == $sca) ? ' selected="selected"' : ''; - echo ''.PHP_EOL; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row1['ca_id']) : $row1['ca_name']; + echo '전체목 $len = strlen($row1['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; - echo ''.PHP_EOL; + // 전체 카테고리 경로 표시 + $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row1['ca_id']) : $row1['ca_name']; + echo ''.PHP_EOL; } ?> diff --git a/adm/shop_admin/wishlist.php b/adm/shop_admin/wishlist.php index b54e3bb8c..f0f543daa 100644 --- a/adm/shop_admin/wishlist.php +++ b/adm/shop_admin/wishlist.php @@ -71,7 +71,9 @@ $listall = '전체목 $len = strlen($row1['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= "   "; - echo "