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('현재 판매가능한 상품이 아닙니다.');