php 7.2 버전에서 오류 나는 코드 수정
This commit is contained in:
@ -176,7 +176,7 @@ function get_theme_config_value($dir, $key='*')
|
|||||||
$tconfig = array();
|
$tconfig = array();
|
||||||
|
|
||||||
$theme_config_file = G5_PATH.'/'.G5_THEME_DIR.'/'.$dir.'/theme.config.php';
|
$theme_config_file = G5_PATH.'/'.G5_THEME_DIR.'/'.$dir.'/theme.config.php';
|
||||||
if(is_file) {
|
if(is_file($theme_config_file)) {
|
||||||
include($theme_config_file);
|
include($theme_config_file);
|
||||||
|
|
||||||
if($key == '*') {
|
if($key == '*') {
|
||||||
|
|||||||
@ -28,9 +28,9 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
|||||||
<?php
|
<?php
|
||||||
// 최신글
|
// 최신글
|
||||||
$sql = " select bo_table, bo_subject
|
$sql = " select bo_table, bo_subject
|
||||||
from {$g5[board_table]}
|
from {$g5['board_table']}
|
||||||
where gr_id = '{$gr_id}'
|
where gr_id = '{$gr_id}'
|
||||||
and bo_list_level <= '{$member[mb_level]}'
|
and bo_list_level <= '{$member['mb_level']}'
|
||||||
and bo_device <> 'mobile' ";
|
and bo_device <> 'mobile' ";
|
||||||
if(!$is_admin)
|
if(!$is_admin)
|
||||||
$sql .= " and bo_use_cert = '' ";
|
$sql .= " and bo_use_cert = '' ";
|
||||||
|
|||||||
@ -139,7 +139,7 @@ if (file_exists($dbconfig_file)) {
|
|||||||
|
|
||||||
sql_set_charset('utf8', $connect_db);
|
sql_set_charset('utf8', $connect_db);
|
||||||
if(defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE) sql_query("SET SESSION sql_mode = ''");
|
if(defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE) sql_query("SET SESSION sql_mode = ''");
|
||||||
if (defined(G5_TIMEZONE)) sql_query(" set time_zone = '".G5_TIMEZONE."'");
|
if (defined('G5_TIMEZONE')) sql_query(" set time_zone = '".G5_TIMEZONE."'");
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -485,7 +485,7 @@ if(isset($config['cf_theme']) && trim($config['cf_theme'])) {
|
|||||||
|
|
||||||
|
|
||||||
// 테마 설정 로드
|
// 테마 설정 로드
|
||||||
if(is_file(G5_THEME_PATH.'/theme.config.php'))
|
if(defined('G5_THEME_PATH') && is_file(G5_THEME_PATH.'/theme.config.php'))
|
||||||
include_once(G5_THEME_PATH.'/theme.config.php');
|
include_once(G5_THEME_PATH.'/theme.config.php');
|
||||||
|
|
||||||
//=====================================================================================
|
//=====================================================================================
|
||||||
|
|||||||
@ -9,9 +9,15 @@ add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">',
|
|||||||
<div>
|
<div>
|
||||||
<h2>인기검색어</h2>
|
<h2>인기검색어</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
<?php
|
||||||
|
if( isset($list) && is_array($list) ){
|
||||||
|
for ($i=0; $i<count($list); $i++) {
|
||||||
|
?>
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
||||||
<?php } ?>
|
<?php
|
||||||
|
} //end for
|
||||||
|
} //end if
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
@ -10,9 +10,15 @@ add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">',
|
|||||||
<div>
|
<div>
|
||||||
<h2>인기검색어</h2>
|
<h2>인기검색어</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
<?php
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
if( isset($list) && is_array($list) ){
|
||||||
<?php } ?>
|
for ($i=0; $i<count($list); $i++) {
|
||||||
|
?>
|
||||||
|
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
||||||
|
<?php
|
||||||
|
} //end for
|
||||||
|
} //end if
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@ -19,9 +19,9 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
|||||||
<?php
|
<?php
|
||||||
// 최신글
|
// 최신글
|
||||||
$sql = " select bo_table, bo_subject
|
$sql = " select bo_table, bo_subject
|
||||||
from {$g5[board_table]}
|
from {$g5['board_table']}
|
||||||
where gr_id = '{$gr_id}'
|
where gr_id = '{$gr_id}'
|
||||||
and bo_list_level <= '{$member[mb_level]}'
|
and bo_list_level <= '{$member['mb_level']}'
|
||||||
and bo_device <> 'mobile' ";
|
and bo_device <> 'mobile' ";
|
||||||
if(!$is_admin)
|
if(!$is_admin)
|
||||||
$sql .= " and bo_use_cert = '' ";
|
$sql .= " and bo_use_cert = '' ";
|
||||||
|
|||||||
@ -9,9 +9,15 @@ add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">',
|
|||||||
<div>
|
<div>
|
||||||
<h2>인기검색어</h2>
|
<h2>인기검색어</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
<?php
|
||||||
|
if( isset($list) && is_array($list) ){
|
||||||
|
for ($i=0; $i<count($list); $i++) {
|
||||||
|
?>
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
||||||
<?php } ?>
|
<?php
|
||||||
|
} //end for
|
||||||
|
} //end if
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
@ -10,9 +10,15 @@ add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">',
|
|||||||
<div>
|
<div>
|
||||||
<h2>인기검색어</h2>
|
<h2>인기검색어</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
<?php
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
if( isset($list) && is_array($list) ){
|
||||||
<?php } ?>
|
for ($i=0; $i<count($list); $i++) {
|
||||||
|
?>
|
||||||
|
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
||||||
|
<?php
|
||||||
|
} //end for
|
||||||
|
} //end if
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user