쿠키 설정 오류 수정
This commit is contained in:
@ -56,7 +56,7 @@ if (!$saved) {
|
|||||||
// 조회수 증가
|
// 조회수 증가
|
||||||
if (get_cookie('ck_it_id') != $it_id) {
|
if (get_cookie('ck_it_id') != $it_id) {
|
||||||
sql_query(" update {$g5['g5_shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
sql_query(" update {$g5['g5_shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||||
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
|
set_cookie("ck_it_id", $it_id, 3600); // 1시간동안 저장
|
||||||
}
|
}
|
||||||
|
|
||||||
// 이전 상품보기
|
// 이전 상품보기
|
||||||
|
|||||||
@ -54,7 +54,7 @@ if (!$saved) {
|
|||||||
// 조회수 증가
|
// 조회수 증가
|
||||||
if (get_cookie('ck_it_id') != $it_id) {
|
if (get_cookie('ck_it_id') != $it_id) {
|
||||||
sql_query(" update {$g5['g5_shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
sql_query(" update {$g5['g5_shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||||
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
|
set_cookie("ck_it_id", $it_id, 3600); // 1시간동안 저장
|
||||||
}
|
}
|
||||||
|
|
||||||
// 스킨경로
|
// 스킨경로
|
||||||
|
|||||||
Reference in New Issue
Block a user