php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_MOBILE_PATH.'/head.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/head.php');
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!$co['co_id'])
|
||||
if (! (isset($co['co_id']) && $co['co_id']))
|
||||
alert('등록된 내용이 없습니다.');
|
||||
|
||||
$g5['title'] = $co['co_subject'];
|
||||
@ -11,35 +11,35 @@ $co_content = $co['co_mobile_content'] ? $co['co_mobile_content'] : $co['co_cont
|
||||
$str = conv_content($co_content, $co['co_html'], $co['co_tag_filter_use']);
|
||||
|
||||
// $src 를 $dst 로 변환
|
||||
unset($src);
|
||||
unset($dst);
|
||||
$src = $dst = array();
|
||||
$src[] = "/{{쇼핑몰명}}|{{홈페이지제목}}/";
|
||||
$dst[] = $config['cf_title'];
|
||||
$src[] = "/{{회사명}}|{{상호}}/";
|
||||
$dst[] = $default['de_admin_company_name'];
|
||||
$src[] = "/{{대표자명}}/";
|
||||
$dst[] = $default['de_admin_company_owner'];
|
||||
$src[] = "/{{사업자등록번호}}/";
|
||||
$dst[] = $default['de_admin_company_saupja_no'];
|
||||
$src[] = "/{{대표전화번호}}/";
|
||||
$dst[] = $default['de_admin_company_tel'];
|
||||
$src[] = "/{{팩스번호}}/";
|
||||
$dst[] = $default['de_admin_company_fax'];
|
||||
$src[] = "/{{통신판매업신고번호}}/";
|
||||
$dst[] = $default['de_admin_company_tongsin_no'];
|
||||
$src[] = "/{{사업장우편번호}}/";
|
||||
$dst[] = $default['de_admin_company_zip'];
|
||||
$src[] = "/{{사업장주소}}/";
|
||||
$dst[] = $default['de_admin_company_addr'];
|
||||
$src[] = "/{{운영자명}}|{{관리자명}}/";
|
||||
$dst[] = $default['de_admin_name'];
|
||||
$src[] = "/{{운영자e-mail}}|{{관리자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_email'];
|
||||
$src[] = "/{{정보관리책임자명}}/";
|
||||
$dst[] = $default['de_admin_info_name'];
|
||||
$src[] = "/{{정보관리책임자e-mail}}|{{정보책임자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_info_email'];
|
||||
|
||||
if(isset($default) && isset($default['de_admin_company_name'])){
|
||||
$src[] = "/{{회사명}}|{{상호}}/";
|
||||
$dst[] = $default['de_admin_company_name'];
|
||||
$src[] = "/{{대표자명}}/";
|
||||
$dst[] = $default['de_admin_company_owner'];
|
||||
$src[] = "/{{사업자등록번호}}/";
|
||||
$dst[] = $default['de_admin_company_saupja_no'];
|
||||
$src[] = "/{{대표전화번호}}/";
|
||||
$dst[] = $default['de_admin_company_tel'];
|
||||
$src[] = "/{{팩스번호}}/";
|
||||
$dst[] = $default['de_admin_company_fax'];
|
||||
$src[] = "/{{통신판매업신고번호}}/";
|
||||
$dst[] = $default['de_admin_company_tongsin_no'];
|
||||
$src[] = "/{{사업장우편번호}}/";
|
||||
$dst[] = $default['de_admin_company_zip'];
|
||||
$src[] = "/{{사업장주소}}/";
|
||||
$dst[] = $default['de_admin_company_addr'];
|
||||
$src[] = "/{{운영자명}}|{{관리자명}}/";
|
||||
$dst[] = $default['de_admin_name'];
|
||||
$src[] = "/{{운영자e-mail}}|{{관리자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_email'];
|
||||
$src[] = "/{{정보관리책임자명}}/";
|
||||
$dst[] = $default['de_admin_info_name'];
|
||||
$src[] = "/{{정보관리책임자e-mail}}|{{정보책임자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_info_email'];
|
||||
}
|
||||
$str = preg_replace($src, $dst, $str);
|
||||
|
||||
// 스킨경로
|
||||
@ -56,5 +56,4 @@ if(is_file($skin_file)) {
|
||||
echo '<p>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</p>';
|
||||
}
|
||||
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
include_once('./_tail.php');
|
||||
@ -31,5 +31,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_MOBILE_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/_tail.php');
|
||||
@ -185,4 +185,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 }
|
||||
@ -32,5 +32,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
@ -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++;
|
||||
|
||||
@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -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++;
|
||||
|
||||
@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -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'];
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
@ -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}
|
||||
|
||||
@ -15,15 +15,10 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<?php } ?>
|
||||
<li>
|
||||
<button type="button" class="btn_more_opt btn_b03 btn"><i class="fa fa-ellipsis-v" aria-hidden="true"></i><span class="sound_only">게시판 리스트 옵션</span></button>
|
||||
<?php ob_start(); ?>
|
||||
<ul class="more_opt">
|
||||
<?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" onclick="del(this.href); return false;"><i class="fa fa-trash-o" aria-hidden="true"></i> 삭제</a></li><?php } ?>
|
||||
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 수정</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
<script>
|
||||
@ -44,8 +39,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">
|
||||
@ -115,8 +108,8 @@ $(".btn_more_opt").on("click", function() {
|
||||
|
||||
<?php if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<?php if ($prev_href) { ?><li class="bo_v_prev"><a href="<?php echo $prev_href ?>"><i class="fa fa-chevron-up" aria-hidden="true"></i><span class="sound_only">이전글</span> <?php echo $prev_wr_subject;?></a></li><?php } ?>
|
||||
<?php if ($next_href) { ?><li class="bo_v_next"><a href="<?php echo $next_href ?>"><i class="fa fa-chevron-down" aria-hidden="true"></i><span class="sound_only">다음글</span> <?php echo $next_wr_subject;?></a></li><?php } ?>
|
||||
<?php if ($prev_href) { ?><li class="bo_v_prev"><a href="<?php echo $prev_href ?>"><i class="fa fa-chevron-up" aria-hidden="true"></i><span class="sound_only">이전글</span> <?php echo $prev_qa_subject;?></a></li><?php } ?>
|
||||
<?php if ($next_href) { ?><li class="bo_v_next"><a href="<?php echo $next_href ?>"><i class="fa fa-chevron-down" aria-hidden="true"></i><span class="sound_only">다음글</span> <?php echo $next_qa_subject;?></a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</article>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -78,5 +78,4 @@ jQuery(function($) {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH."/tail.sub.php");
|
||||
?>
|
||||
include_once(G5_PATH."/tail.sub.php");
|
||||
Reference in New Issue
Block a user