php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:39:15 +09:00
parent 131b170b54
commit 27e9af5e42
1009 changed files with 12120 additions and 10849 deletions

View File

@ -5,7 +5,7 @@ include_once(G5_LIB_PATH.'/json.lib.php');
if(!$member['mb_id'])
die(json_encode(array('error' => '회원 로그인 후 이용해 주십시오.')));
$cz_id = preg_replace('#[^0-9]#', '', $_GET['cz_id']);
$cz_id = isset($_GET['cz_id']) ? preg_replace('#[^0-9]#', '', $_GET['cz_id']) : 0;
if(!$cz_id)
die(json_encode(array('error' => '올바른 방법으로 이용해 주십시오.')));
@ -66,5 +66,4 @@ if($result && $cp['cz_type'])
// 다운로드 증가
sql_query(" update {$g5['g5_shop_coupon_zone_table']} set cz_download = cz_download + 1 where cz_id = '$cz_id' ");
die(json_encode(array('error' => '')));
?>
die(json_encode(array('error' => '')));