PHP8 버전에서 경고코드가 표시되는 코드 수정
This commit is contained in:
@ -570,14 +570,14 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
<td colspan="3">
|
||||
<?php if (!function_exists('curl_init')) echo help('<b>경고) curl이 지원되지 않아 네이버 신디케이션을 사용할수 없습니다.</b>'); ?>
|
||||
<?php echo help('네이버 신디케이션 연동키(token)을 입력하면 네이버 신디케이션을 사용할 수 있습니다.<br>연동키는 <a href="http://webmastertool.naver.com/" target="_blank"><u>네이버 웹마스터도구</u></a> -> 네이버 신디케이션에서 발급할 수 있습니다.') ?>
|
||||
<input type="text" name="cf_syndi_token" value="<?php echo get_sanitize_input($config['cf_syndi_token']); ?>" id="cf_syndi_token" class="frm_input" size="70">
|
||||
<input type="text" name="cf_syndi_token" value="<?php echo isset($config['cf_syndi_token']) ? get_sanitize_input($config['cf_syndi_token']) : ''; ?>" id="cf_syndi_token" class="frm_input" size="70">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_syndi_except">네이버 신디케이션 제외게시판</label></th>
|
||||
<td colspan="3">
|
||||
<?php echo help('네이버 신디케이션 수집에서 제외할 게시판 아이디를 | 로 구분하여 입력하십시오. 예) notice|adult<br>참고로 그룹접근사용 게시판, 글읽기 권한 2 이상 게시판, 비밀글은 신디케이션 수집에서 제외됩니다.') ?>
|
||||
<input type="text" name="cf_syndi_except" value="<?php echo get_sanitize_input($config['cf_syndi_except']); ?>" id="cf_syndi_except" class="frm_input" size="70">
|
||||
<input type="text" name="cf_syndi_except" value="<?php echo isset($config['cf_syndi_except']) ? get_sanitize_input($config['cf_syndi_except']) : ''; ?>" id="cf_syndi_except" class="frm_input" size="70">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1317,7 +1317,7 @@ include_once('_rewrite_config_form.php');
|
||||
<th scope="row"><label for="cf_icode_token_key">아이코드 토큰키<br>(JSON버전)</label></th>
|
||||
<td>
|
||||
<?php echo help("아이코드 JSON 버전의 경우 아이코드 토큰키를 입력시 실행됩니다.<br>SMS 전송유형을 LMS로 설정시 90바이트 이내는 SMS, 90 ~ 2000 바이트는 LMS 그 이상은 절삭 되어 LMS로 발송됩니다."); ?>
|
||||
<input type="text" name="cf_icode_token_key" value="<?php echo $config['cf_icode_token_key']; ?>" id="cf_icode_token_key" class="frm_input" size="40">
|
||||
<input type="text" name="cf_icode_token_key" value="<?php echo isset($config['cf_icode_token_key']) ? get_sanitize_input($config['cf_icode_token_key']) : ''; ?>" id="cf_icode_token_key" class="frm_input" size="40">
|
||||
<?php echo help("아이코드 사이트 -> 토큰키관리 메뉴에서 생성한 토큰키를 입력합니다."); ?>
|
||||
<br>
|
||||
서버아이피 : <?php echo $_SERVER['SERVER_ADDR']; ?>
|
||||
|
||||
@ -96,48 +96,48 @@ function get_menu_db($use_mobile=0, $is_cache=false){
|
||||
global $g5;
|
||||
|
||||
static $cache = array();
|
||||
|
||||
$cache = run_replace('get_menu_db_cache', $cache, $use_mobile, $is_cache);
|
||||
|
||||
$key = md5($use_mobile);
|
||||
|
||||
$cache = run_replace('get_menu_db_cache', $cache, $use_mobile, $is_cache);
|
||||
|
||||
$key = md5($use_mobile);
|
||||
|
||||
if( $is_cache && isset($cache[$key]) ){
|
||||
return $cache[$key];
|
||||
}
|
||||
|
||||
$where = $use_mobile ? "me_mobile_use = '1'" : "me_use = '1'";
|
||||
|
||||
if( !($cache[$key] = run_replace('get_menu_db', array(), $use_mobile)) ){
|
||||
$sql = " select *
|
||||
from {$g5['menu_table']}
|
||||
where $where
|
||||
and length(me_code) = '2'
|
||||
order by me_order, me_id ";
|
||||
$result = sql_query($sql, false);
|
||||
$where = $use_mobile ? "me_mobile_use = '1'" : "me_use = '1'";
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$row['ori_me_link'] = $row['me_link'];
|
||||
$row['me_link'] = short_url_clean($row['me_link']);
|
||||
if( !($cache[$key] = run_replace('get_menu_db', array(), $use_mobile)) ){
|
||||
$sql = " select *
|
||||
from {$g5['menu_table']}
|
||||
where $where
|
||||
and length(me_code) = '2'
|
||||
order by me_order, me_id ";
|
||||
$result = sql_query($sql, false);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$row['ori_me_link'] = $row['me_link'];
|
||||
$row['me_link'] = short_url_clean($row['me_link']);
|
||||
$row['sub'] = isset($row['sub']) ? $row['sub'] : array();
|
||||
$cache[$key][$i] = $row;
|
||||
$cache[$key][$i] = $row;
|
||||
|
||||
$sql2 = " select *
|
||||
from {$g5['menu_table']}
|
||||
where $where
|
||||
and length(me_code) = '4'
|
||||
and substring(me_code, 1, 2) = '{$row['me_code']}'
|
||||
order by me_order, me_id ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
|
||||
$row2['ori_me_link'] = $row2['me_link'];
|
||||
$row2['me_link'] = short_url_clean($row2['me_link']);
|
||||
$cache[$key][$i]['sub'][$k] = $row2;
|
||||
}
|
||||
}
|
||||
}
|
||||
$sql2 = " select *
|
||||
from {$g5['menu_table']}
|
||||
where $where
|
||||
and length(me_code) = '4'
|
||||
and substring(me_code, 1, 2) = '{$row['me_code']}'
|
||||
order by me_order, me_id ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
|
||||
$row2['ori_me_link'] = $row2['me_link'];
|
||||
$row2['me_link'] = short_url_clean($row2['me_link']);
|
||||
$cache[$key][$i]['sub'][$k] = $row2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $cache[$key];
|
||||
return $cache[$key];
|
||||
}
|
||||
|
||||
// 게시판 테이블에서 하나의 행을 읽음
|
||||
@ -465,7 +465,7 @@ function get_memo_not_read($mb_id, $add_where='')
|
||||
$sql = " SELECT count(*) as cnt FROM {$g5['memo_table']} WHERE me_recv_mb_id = '$mb_id' and me_type= 'recv' and me_read_datetime like '0%' $add_where ";
|
||||
$row = sql_fetch($sql, false);
|
||||
|
||||
return $row['cnt'];
|
||||
return isset($row['cnt']) ? $row['cnt'] : 0;
|
||||
}
|
||||
|
||||
function get_scrap_totals($mb_id=''){
|
||||
@ -476,5 +476,5 @@ function get_scrap_totals($mb_id=''){
|
||||
$sql = " select count(*) as cnt from {$g5['scrap_table']} where 1=1 $add_where";
|
||||
$row = sql_fetch($sql, false);
|
||||
|
||||
return $row['cnt'];
|
||||
return isset($row['cnt']) ? $row['cnt'] : 0;
|
||||
}
|
||||
Reference in New Issue
Block a user