PHP8에서 경고문이 뜨는 코드 수정
This commit is contained in:
@ -9,6 +9,8 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$where = " where ";
|
||||
$sql_search = "";
|
||||
$save_stx = isset($_REQUEST['save_stx']) ? clean_xss_tags($_REQUEST['save_stx'], 1, 1) : '';
|
||||
|
||||
if ($stx != "") {
|
||||
if ($sfl != "") {
|
||||
$sql_search .= " $where $sfl like '%$stx%' ";
|
||||
|
||||
@ -16,7 +16,7 @@ for ($i=0; $i<$count; $i++)
|
||||
{
|
||||
// 실제 번호를 넘김
|
||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
$ppp_id = isset($_POST['pp_id'][$i]) ? (int) $_POST['pp_id'][$k] : 0;
|
||||
$ppp_id = isset($_POST['pp_id'][$i]) ? preg_replace('/[^0-9]/', '', $_POST['pp_id'][$k]) : 0;
|
||||
|
||||
$sql = " delete from {$g5['g5_shop_personalpay_table']} where pp_id = '{$ppp_id}' ";
|
||||
sql_query($sql);
|
||||
|
||||
@ -50,7 +50,7 @@ function add_pretty_shop_url($url, $folder, $no='', $query_string='', $action=''
|
||||
|
||||
if( $config['cf_bbs_rewrite'] > 1 && ! preg_match('/^(list|type)\-([^\/]+)/i', $no) ){
|
||||
$item = get_shop_item($no, true);
|
||||
$segments[2] = $item['it_seo_title'] ? urlencode($item['it_seo_title']).'/' : urlencode($no);
|
||||
$segments[2] = (isset($item['it_seo_title']) && $item['it_seo_title']) ? urlencode($item['it_seo_title']).'/' : urlencode($no);
|
||||
} else {
|
||||
$segments[2] = urlencode($no);
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ $it_id = isset($_GET['it_id']) ? get_search_string(trim($_GET['it_id'])) : '';
|
||||
$it_seo_title = isset($it_seo_title) ? $it_seo_title : '';
|
||||
|
||||
$it = get_shop_item_with_category($it_id, $it_seo_title);
|
||||
$it_id = $it['it_id'];
|
||||
$it_id = $_REQUEST['it_id'] = $it['it_id'];
|
||||
|
||||
if (! (isset($it['it_id']) && $it['it_id'])) {
|
||||
alert('자료가 없습니다.');
|
||||
|
||||
@ -14,7 +14,7 @@ $it = get_shop_item_with_category($it_id, $it_seo_title);
|
||||
if (! (isset($it['it_id']) && $it['it_id']))
|
||||
alert('자료가 없습니다.');
|
||||
|
||||
$it_id = $it['it_id'];
|
||||
$it_id = $_REQUEST['it_id'] = $it['it_id'];
|
||||
|
||||
if( isset($row['it_seo_title']) && ! $row['it_seo_title'] ){
|
||||
shop_seo_title_update($row['it_id']);
|
||||
|
||||
@ -5,6 +5,7 @@ if (!$is_member) {
|
||||
alert_close("상품문의는 회원만 작성이 가능합니다.");
|
||||
}
|
||||
|
||||
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
|
||||
$iq_id = isset($_REQUEST['iq_id']) ? (int) $_REQUEST['iq_id'] : 0;
|
||||
$iq_subject = isset($_POST['iq_subject']) ? trim($_POST['iq_subject']) : '';
|
||||
$iq_question = isset($_POST['iq_question']) ? trim($_POST['iq_question']) : '';
|
||||
|
||||
@ -5,7 +5,7 @@ if (!$is_member) {
|
||||
alert_close("사용후기는 회원만 작성이 가능합니다.");
|
||||
}
|
||||
|
||||
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
|
||||
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
|
||||
$is_subject = isset($_POST['is_subject']) ? trim($_POST['is_subject']) : '';
|
||||
$is_content = isset($_POST['is_content']) ? trim($_POST['is_content']) : '';
|
||||
$is_content = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $is_content);
|
||||
|
||||
Reference in New Issue
Block a user