php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$w = isset($_REQUEST['w']) ? preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w'])) : '';
|
||||
$it_id = isset($_REQUEST['it_id']) ? get_search_string(trim($_REQUEST['it_id'])) : '';
|
||||
$is_id = isset($_REQUEST['is_id']) ? preg_replace('/[^0-9]/', '', trim($_REQUEST['is_id'])) : 0;
|
||||
$use = array('is_subject'=>'', 'is_content'=>'');
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/itemuseform.php');
|
||||
return;
|
||||
@ -12,13 +17,10 @@ if (!$is_member) {
|
||||
alert_close("사용후기는 회원만 작성 가능합니다.");
|
||||
}
|
||||
|
||||
$w = preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w']));
|
||||
$it_id = get_search_string(trim($_REQUEST['it_id']));
|
||||
$is_id = preg_replace('/[^0-9]/', '', trim($_REQUEST['is_id']));
|
||||
|
||||
// 상품정보체크
|
||||
$row = get_shop_item($it_id, true);
|
||||
if(!$row['it_id'])
|
||||
|
||||
if(! (isset($row['it_id']) && $row['it_id']))
|
||||
alert_close('상품정보가 존재하지 않습니다.');
|
||||
|
||||
if ($w == "") {
|
||||
@ -60,5 +62,4 @@ if(!file_exists($itemuseform_skin)) {
|
||||
include_once($itemuseform_skin);
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
Reference in New Issue
Block a user