From a061d6c863317713a30f11656622c24cf1964cca Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 18 Dec 2023 17:26:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=99=EC=8B=9C=EC=84=B1=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=EB=A1=9C=20wr=5Fseo=5Ftitle=20=EA=B0=92=EC=9D=B4=20?= =?UTF-8?q?=EC=A4=91=EB=B3=B5=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20#293?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/contentform.php | 3 ++ adm/shop_admin/itemform.php | 2 ++ bbs/view.php | 2 ++ lib/get_data.lib.php | 6 +++- lib/shop.data.lib.php | 4 +-- lib/uri.lib.php | 55 +++++++++++++++++++++++++++++++++++-- mobile/shop/item.php | 2 ++ shop/item.php | 2 ++ 8 files changed, 71 insertions(+), 5 deletions(-) diff --git a/adm/contentform.php b/adm/contentform.php index 4a96abcad..5789a0de4 100644 --- a/adm/contentform.php +++ b/adm/contentform.php @@ -57,6 +57,9 @@ if ($w == "u") { if (!$co['co_id']) { alert('등록된 자료가 없습니다.'); } + + if (function_exists('check_case_exist_title')) check_case_exist_title($co, G5_CONTENT_DIR, false); + } else { $html_title .= ' 입력'; $co = array( diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php index 9afd81fe4..0f6ec2a11 100644 --- a/adm/shop_admin/itemform.php +++ b/adm/shop_admin/itemform.php @@ -112,6 +112,8 @@ else if ($w == "u") if(!$it) alert('상품정보가 존재하지 않습니다.'); + + if (function_exists('check_case_exist_title')) check_case_exist_title($it, G5_SHOP_DIR, false); if (! (isset($ca_id) && $ca_id)) $ca_id = $it['ca_id']; diff --git a/bbs/view.php b/bbs/view.php index d78fa7b0e..3cb53f387 100644 --- a/bbs/view.php +++ b/bbs/view.php @@ -1,6 +1,8 @@ 0) ? utf8_strcut($seo_title, 200 - ($count+1), '')."-$count" : $seo_title; + $seo_title_add = ($count > 0) ? utf8_strcut($seo_title, 100000 - ($count+1), '')."-$count" : $seo_title; if( ! exist_seo_url($type, $seo_title_add, $write_table, $sql_id) ){ return $seo_title_add; @@ -264,7 +315,7 @@ function exist_seo_title_recursive($type, $seo_title, $write_table, $sql_id=0){ $count++; - if( $count > 198 ){ + if( $count > 99998 ){ return $seo_title_add; } diff --git a/mobile/shop/item.php b/mobile/shop/item.php index 8570ac3fd..71ab17775 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -16,6 +16,8 @@ if( isset($row['it_seo_title']) && ! $row['it_seo_title'] ){ shop_seo_title_update($row['it_id']); } +if (function_exists('check_case_exist_title')) check_case_exist_title($it, G5_SHOP_DIR, true); + if (!($it['ca_use'] && $it['it_use'])) { if (!$is_admin) alert('판매가능한 상품이 아닙니다.'); diff --git a/shop/item.php b/shop/item.php index 906726a02..5c4e04478 100644 --- a/shop/item.php +++ b/shop/item.php @@ -20,6 +20,8 @@ if( isset($row['it_seo_title']) && ! $row['it_seo_title'] ){ shop_seo_title_update($row['it_id']); } +if (function_exists('check_case_exist_title')) check_case_exist_title($it, G5_SHOP_DIR, true); + if (!($it['ca_use'] && $it['it_use'])) { if (!$is_admin) alert('현재 판매가능한 상품이 아닙니다.');