Merge pull request #1 from aug21/aug21-patch-bbs/content.php

Aug21 patch bbs/content.php
This commit is contained in:
TATECK 2022-11-18 15:31:26 +09:00 committed by GitHub
commit 8f78e77f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -6,8 +6,6 @@ if( !isset($g5['content_table']) ){
die('<meta charset="utf-8">관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.'); die('<meta charset="utf-8">관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.');
} }
// 내용 // 내용
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' "; $sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
$co = sql_fetch($sql); $co = sql_fetch($sql);
@ -22,7 +20,7 @@ if (is_include_path_check($co['co_include_head']))
else else
include_once('./_head.php'); include_once('./_head.php');
if (G5_IS_MOBILE) { if (G5_IS_MOBILE && $co['co_mobile_content'] != "") {
$str = conv_content($co['co_mobile_content'], $co['co_html'], $co['co_tag_filter_use']); $str = conv_content($co['co_mobile_content'], $co['co_html'], $co['co_tag_filter_use']);
} else { } else {
$str = conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']); $str = conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);

View file

@ -62,11 +62,11 @@ if(!$search_arcode) {
} }
if($stx) { if($stx) {
if($sfl == 'mb_nick') { if($sfl == 'mb_name') {
$temp_search = ""; $temp_search = "";
$connect_str = ""; $connect_str = "";
$temp = sql_query("select mb_id from {$g5['member_table']} where mb_nick like '%".$stx."%'"); $temp = sql_query("select mb_id from {$g5['member_table']} where mb_name like '%".$stx."%'");
for($t = 0; $row = sql_fetch_array($temp); $t++) { for($t = 0; $row = sql_fetch_array($temp); $t++) {
$temp_search .= $connect_str."mb_id = '".$row['mb_id']."'"; $temp_search .= $connect_str."mb_id = '".$row['mb_id']."'";
$connect_str = " OR "; $connect_str = " OR ";