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

This commit is contained in:
thisgun
2021-01-04 15:33:29 +09:00
parent 10d377de7d
commit 582d1a01f4
852 changed files with 120617 additions and 6307 deletions

View File

@ -1,3 +1,2 @@
<?php
include_once('../../common.php');
?>
include_once('../../common.php');

View File

@ -46,5 +46,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
<!-- 메인화면 최신글 끝 -->
</div>
<?php
include_once(G5_THEME_PATH.'/tail.php');
?>
include_once(G5_THEME_PATH.'/tail.php');

View File

@ -201,5 +201,4 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
<div id="container_wr">
<div id="container">
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title"><span title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></span></h2><?php } ?>
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title"><span title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></span></h2><?php }

View File

@ -91,5 +91,4 @@ if ($is_member) { // 회원이라면 로그인 중이라는 메세지를 출력
echo '<div id="hd_login_msg">'.$sr_admin_msg.get_text($member['mb_nick']).'님 로그인 중 ';
echo '<a href="'.G5_BBS_URL.'/logout.php">로그아웃</a></div>';
}
?>
}

View File

@ -1,5 +1,5 @@
<?php
define('_INDEX_', true);
if (!defined('_INDEX_')) define('_INDEX_', true);
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (G5_IS_MOBILE) {
@ -64,5 +64,4 @@ include_once(G5_THEME_PATH.'/head.php');
</div>
<?php
include_once(G5_THEME_PATH.'/tail.php');
?>
include_once(G5_THEME_PATH.'/tail.php');

View File

@ -1,3 +1,2 @@
<?php
include_once('../../../common.php');
?>
include_once('../../../common.php');

View File

@ -31,5 +31,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
<!-- 메인화면 최신글 끝 -->
<?php
include_once(G5_THEME_MOBILE_PATH.'/tail.php');
?>
include_once(G5_THEME_MOBILE_PATH.'/tail.php');

View File

@ -180,4 +180,4 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>">
<a href="javascript:history.back();"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로가기</span></a> <?php echo get_head_title($g5['title']); ?>
</h2>
<?php } ?>
<?php }

View File

@ -27,5 +27,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
<!-- 메인화면 최신글 끝 -->
<?php
include_once(G5_THEME_MOBILE_PATH.'/tail.php');
?>
include_once(G5_THEME_MOBILE_PATH.'/tail.php');

View File

@ -83,8 +83,8 @@ jQuery(function($){
if($v_img_count) {
echo "<div id=\"bo_v_img\">\n";
for ($i=0; $i<=count($view['file']); $i++) {
echo get_file_thumbnail($view['file'][$i]);
foreach($view['file'] as $view_file) {
echo get_file_thumbnail($view_file);
}
echo "</div>\n";
}
@ -124,8 +124,8 @@ jQuery(function($){
</section>
<?php
$cnt = 0;
if ($view['file']['count']) {
$cnt = 0;
for ($i=0; $i<count($view['file']); $i++) {
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
$cnt++;

View File

@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
});
});
</script>
<?php } ?>
<?php }

View File

@ -85,8 +85,8 @@ jQuery(function($){
if($v_img_count) {
echo "<div id=\"bo_v_img\">\n";
for ($i=0; $i<=count($view['file']); $i++) {
echo get_file_thumbnail($view['file'][$i]);
foreach($view['file'] as $view_file) {
echo get_file_thumbnail($view_file);
}
echo "</div>\n";
}
@ -126,8 +126,8 @@ jQuery(function($){
</section>
<?php
$cnt = 0;
if ($view['file']['count']) {
$cnt = 0;
for ($i=0; $i<count($view['file']); $i++) {
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
$cnt++;

View File

@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
});
});
</script>
<?php } ?>
<?php }

View File

@ -5,4 +5,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
?>
<?php echo $row['total_cnt'] ?>
<?php echo $row['total_cnt'];

View File

@ -1,5 +1,4 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
?>
// 자신만의 코드를 넣어주세요.

View File

@ -259,6 +259,7 @@
#bo_v_ans #ans_msg {padding:40px 0;background:#f2f5f9;text-align:center}
#bo_v_ans .btn_submit {width:100%;height:40px;border-radius:5px}
#bo_v_ans .btn_confirm {margin:0 10px}
#bo_v_ans form{padding:1em}
#bo_v_rel {}
#bo_v_rel h2 {margin:0 10px 10px;font-size:1.2em}

View File

@ -44,8 +44,6 @@ $(".btn_more_opt").on("click", function() {
<h2>페이지 정보</h2>
<span class="sound_only">작성자</span><strong><?php echo $view['name'] ?></strong>
<span class="sound_only">작성일</span><strong><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $view['datetime']; ?></strong>
<span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?></strong>
<span class="sound_only">댓글</span><strong><i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?></strong>
</div>
<?php if($view['email'] || $view['hp']) { ?>
<div id="bo_v_contact">

View File

@ -31,11 +31,11 @@ if ($stx) {
<label for="sfl" class="sound_only">검색조건</label>
<select name="sfl" id="sfl">
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option>
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, "wr_subject||wr_content") ?>>제목+내용</option>
<option value="wr_subject"<?php echo get_selected($sfl, "wr_subject") ?>>제목</option>
<option value="wr_content"<?php echo get_selected($sfl, "wr_content") ?>>내용</option>
<option value="mb_id"<?php echo get_selected($sfl, "mb_id") ?>>회원아이디</option>
<option value="wr_name"<?php echo get_selected($sfl, "wr_name") ?>>이름</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>

View File

@ -73,5 +73,4 @@ jQuery(function($) {
</script>
<?php
include_once(G5_THEME_PATH."/tail.sub.php");
?>
include_once(G5_THEME_PATH."/tail.sub.php");

View File

@ -93,8 +93,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
if($v_img_count) {
echo "<div id=\"bo_v_img\">\n";
for ($i=0; $i<=count($view['file']); $i++) {
echo get_file_thumbnail($view['file'][$i]);
foreach($view['file'] as $view_file) {
echo get_file_thumbnail($view_file);
}
echo "</div>\n";

View File

@ -93,8 +93,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
if($v_img_count) {
echo "<div id=\"bo_v_img\">\n";
for ($i=0; $i<=count($view['file']); $i++) {
echo get_file_thumbnail($view['file'][$i]);
foreach($view['file'] as $view_file) {
echo get_file_thumbnail($view_file);
}
echo "</div>\n";

View File

@ -6,4 +6,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
?>
<?php echo $row['total_cnt'] ?>
<?php echo $row['total_cnt'];

View File

@ -28,7 +28,7 @@ $list_count = (is_array($list) && $list) ? count($list) : 0;
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo $list[$i]['icon_reply']." ";
if ($list[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ;
if (isset($list[$i]['icon_file']) && $list[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ;
if ($list[$i]['icon_link']) echo " <i class=\"fa fa-link\" aria-hidden=\"true\"></i>" ;
if ($list[$i]['comment_cnt']) echo "

View File

@ -20,7 +20,7 @@ $list_count = (is_array($list) && $list) ? count($list) : 0;
if( $i === 0 ) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
if($thumb['src']) {
if(isset($thumb['src']) && $thumb['src']) {
$img = $thumb['src'];
} else {
$img = G5_IMG_URL.'/no_img.png';

View File

@ -1,5 +1,4 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
?>
// 자신만의 코드를 넣어주세요.

View File

@ -29,7 +29,7 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/owlcarousel/owl.carou
</div>
</section>
<?php if ($list && is_array($list)) { //게시물이 있다면 ?>
<?php if (isset($list) && $list && is_array($list)) { //게시물이 있다면 ?>
<script>
jQuery(function($){

View File

@ -15,11 +15,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">',
<label for="sfl" class="sound_only">검색조건</label>
<select name="sfl" id="sfl">
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option>
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, "wr_subject||wr_content") ?>>제목+내용</option>
<option value="wr_subject"<?php echo get_selected($sfl, "wr_subject") ?>>제목</option>
<option value="wr_content"<?php echo get_selected($sfl, "wr_content") ?>>내용</option>
<option value="mb_id"<?php echo get_selected($sfl, "mb_id") ?>>회원아이디</option>
<option value="wr_name"<?php echo get_selected($sfl, "wr_name") ?>>이름</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>

View File

@ -87,5 +87,4 @@ $(function() {
</script>
<?php
include_once(G5_THEME_PATH."/tail.sub.php");
?>
include_once(G5_THEME_PATH."/tail.sub.php");

View File

@ -24,4 +24,4 @@ $(function() {
</body>
</html>
<?php echo html_end(); // HTML 마지막 처리 함수 : 반드시 넣어주시기 바랍니다. ?>
<?php echo html_end(); // HTML 마지막 처리 함수 : 반드시 넣어주시기 바랍니다.

View File

@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 테마가 지원하는 장치 설정 pc, mobile
// 선언하지 않거나 값을 지정하지 않으면 그누보드5의 설정을 따른다.
// G5_SET_DEVICE 상수 설정 보다 우선 적용됨
define('G5_THEME_DEVICE', '');
if(! defined('G5_THEME_DEVICE')) define('G5_THEME_DEVICE', '');
$theme_config = array();
@ -34,5 +34,4 @@ $theme_config = array(
'bo_image_width' => 600, // 게시판 뷰 이미지 폭
'qa_skin' => 'basic', // 1:1문의 스킨
'qa_mobile_skin' => 'basic' // 1:1문의 모바일 스킨
);
?>
);