Merge branch 'master' of github.com:gnuboard/g5
This commit is contained in:
@ -6,9 +6,18 @@ include_once(G5_EDITOR_LIB);
|
|||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
// 상단, 하단 파일경로 필드 추가
|
// 상단, 하단 파일경로 필드 추가
|
||||||
$sql = " ALTER TABLE `{$g5['content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
|
if(!sql_query(" select co_include_head from {$g5['content_table']} limit 1 ", false)) {
|
||||||
ADD `co_include_tail` VARCHAR( 255 ) NOT NULL ";
|
$sql = " ALTER TABLE `{$g5['content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
|
||||||
sql_query($sql, false);
|
ADD `co_include_tail` VARCHAR( 255 ) NOT NULL ";
|
||||||
|
sql_query($sql, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
// html purifier 사용여부 필드
|
||||||
|
if(!sql_query(" select co_tag_filter_use from {$g5['content_table']} limit 1 ", false)) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['content_table']}`
|
||||||
|
ADD `co_tag_filter_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `co_content` ", true);
|
||||||
|
sql_query(" update {$g5['content_table']} set co_tag_filter_use = '1' ");
|
||||||
|
}
|
||||||
|
|
||||||
$html_title = "내용";
|
$html_title = "내용";
|
||||||
$g5['title'] = $html_title.' 관리';
|
$g5['title'] = $html_title.' 관리';
|
||||||
@ -60,6 +69,16 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
<th scope="row">내용</th>
|
<th scope="row">내용</th>
|
||||||
<td><?php echo editor_html('co_content', $co['co_content']); ?></td>
|
<td><?php echo editor_html('co_content', $co['co_content']); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="co_tag_filter_use">태그 필터링 사용</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help("내용에서 iframe 등의 태그를 사용하려면 사용안함으로 선택해 주십시오."); ?>
|
||||||
|
<select name="co_tag_filter_use" id="co_tag_filter_use">
|
||||||
|
<option value="1"<?php echo get_selected(1, $co['co_tag_filter_use']); ?>>사용함</option>
|
||||||
|
<option value="0"<?php echo get_selected(0, $co['co_tag_filter_use']); ?>>사용안함</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -16,11 +16,12 @@ else
|
|||||||
if ($co_himg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_h");
|
if ($co_himg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_h");
|
||||||
if ($co_timg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_t");
|
if ($co_timg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_t");
|
||||||
|
|
||||||
$sql_common = " co_include_head = '$co_include_head',
|
$sql_common = " co_include_head = '$co_include_head',
|
||||||
co_include_tail = '$co_include_tail',
|
co_include_tail = '$co_include_tail',
|
||||||
co_html = '$co_html',
|
co_html = '$co_html',
|
||||||
co_subject = '$co_subject',
|
co_tag_filter_use = '$co_tag_filter_use',
|
||||||
co_content = '$co_content' ";
|
co_subject = '$co_subject',
|
||||||
|
co_content = '$co_content' ";
|
||||||
|
|
||||||
if ($w == "")
|
if ($w == "")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -122,6 +122,11 @@ if(!isset($mb['mb_addr3'])) {
|
|||||||
sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_addr3` varchar(255) NOT NULL DEFAULT '' AFTER `mb_addr2` ", false);
|
sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_addr3` varchar(255) NOT NULL DEFAULT '' AFTER `mb_addr2` ", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 중복가입 확인필드 추가
|
||||||
|
if(!isset($mb['mb_dupinfo'])) {
|
||||||
|
sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_dupinfo` varchar(255) NOT NULL DEFAULT '' AFTER `mb_adult` ", false);
|
||||||
|
}
|
||||||
|
|
||||||
if ($mb['mb_intercept_date']) $g5['title'] = "차단된 ";
|
if ($mb['mb_intercept_date']) $g5['title'] = "차단된 ";
|
||||||
else $g5['title'] .= "";
|
else $g5['title'] .= "";
|
||||||
$g5['title'] .= '회원 '.$html_title;
|
$g5['title'] .= '회원 '.$html_title;
|
||||||
|
|||||||
@ -6,5 +6,5 @@ $mb_hp = trim($_POST['reg_mb_hp']);
|
|||||||
$mb_id = trim($_POST['reg_mb_id']);
|
$mb_id = trim($_POST['reg_mb_id']);
|
||||||
|
|
||||||
if ($msg = valid_mb_hp($mb_hp)) die($msg);
|
if ($msg = valid_mb_hp($mb_hp)) die($msg);
|
||||||
if ($msg = exist_mb_hp($mb_hp, $mb_id)) die($msg);
|
//if ($msg = exist_mb_hp($mb_hp, $mb_id)) die($msg);
|
||||||
?>
|
?>
|
||||||
@ -6,6 +6,11 @@ if( !isset($g5['content_table']) ){
|
|||||||
die('<meta charset="utf-8">관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.');
|
die('<meta charset="utf-8">관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G5_IS_MOBILE) {
|
||||||
|
include_once(G5_MOBILE_PATH.'/content.php');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// 내용
|
// 내용
|
||||||
$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);
|
||||||
@ -19,7 +24,7 @@ if ($co['co_include_head'])
|
|||||||
else
|
else
|
||||||
include_once('./_head.php');
|
include_once('./_head.php');
|
||||||
|
|
||||||
$str = conv_content($co['co_content'], $co['co_html']);
|
$str = conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
|
||||||
|
|
||||||
// $src 를 $dst 로 변환
|
// $src 를 $dst 로 변환
|
||||||
unset($src);
|
unset($src);
|
||||||
|
|||||||
@ -148,12 +148,12 @@ if (isset($_FILES['mb_icon']) && is_uploaded_file($_FILES['mb_icon']['tmp_name']
|
|||||||
// 본인확인
|
// 본인확인
|
||||||
//---------------------------------------------------------------
|
//---------------------------------------------------------------
|
||||||
$mb_hp = hyphen_hp_number($mb_hp);
|
$mb_hp = hyphen_hp_number($mb_hp);
|
||||||
if($_SESSION['ss_cert_type'] != 'hp' && $mb_hp) {
|
if($config['cf_cert_use'] && $_SESSION['ss_cert_type'] && $_SESSION['ss_cert_dupinfo']) {
|
||||||
// 휴대폰번호 중복체크
|
// 중복체크
|
||||||
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$mb_hp}' ";
|
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$_SESSION['ss_cert_dupinfo']}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['mb_id']) {
|
if ($row['mb_id']) {
|
||||||
alert("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : ".$row['mb_id']);
|
alert("입력하신 본인확인 정보로 가입된 내역이 존재합니다.\\n회원아이디 : ".$row['mb_id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,6 +168,7 @@ if ($config['cf_cert_use'] && $cert_type && $md5_cert_no) {
|
|||||||
$sql_certify .= " , mb_adult = '{$_SESSION['ss_cert_adult']}' ";
|
$sql_certify .= " , mb_adult = '{$_SESSION['ss_cert_adult']}' ";
|
||||||
$sql_certify .= " , mb_birth = '{$_SESSION['ss_cert_birth']}' ";
|
$sql_certify .= " , mb_birth = '{$_SESSION['ss_cert_birth']}' ";
|
||||||
$sql_certify .= " , mb_sex = '{$_SESSION['ss_cert_sex']}' ";
|
$sql_certify .= " , mb_sex = '{$_SESSION['ss_cert_sex']}' ";
|
||||||
|
$sql_certify .= " , mb_dupinfo = '{$_SESSION['ss_cert_dupinfo']}' ";
|
||||||
} else {
|
} else {
|
||||||
$sql_certify .= " , mb_hp = '{$mb_hp}' ";
|
$sql_certify .= " , mb_hp = '{$mb_hp}' ";
|
||||||
$sql_certify .= " , mb_certify = '' ";
|
$sql_certify .= " , mb_certify = '' ";
|
||||||
|
|||||||
@ -452,6 +452,7 @@ CREATE TABLE IF NOT EXISTS `g5_member` (
|
|||||||
`mb_hp` varchar(255) NOT NULL default '',
|
`mb_hp` varchar(255) NOT NULL default '',
|
||||||
`mb_certify` varchar(20) NOT NULL default '',
|
`mb_certify` varchar(20) NOT NULL default '',
|
||||||
`mb_adult` tinyint(4) NOT NULL default '0',
|
`mb_adult` tinyint(4) NOT NULL default '0',
|
||||||
|
`mb_dupinfo` varchar(255) NOT NULL default '',
|
||||||
`mb_zip1` char(3) NOT NULL default '',
|
`mb_zip1` char(3) NOT NULL default '',
|
||||||
`mb_zip2` char(3) NOT NULL default '',
|
`mb_zip2` char(3) NOT NULL default '',
|
||||||
`mb_addr1` varchar(255) NOT NULL default '',
|
`mb_addr1` varchar(255) NOT NULL default '',
|
||||||
@ -800,6 +801,7 @@ CREATE TABLE IF NOT EXISTS `g5_content` (
|
|||||||
`co_html` tinyint(4) NOT NULL DEFAULT '0',
|
`co_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`co_subject` varchar(255) NOT NULL DEFAULT '',
|
`co_subject` varchar(255) NOT NULL DEFAULT '',
|
||||||
`co_content` longtext NOT NULL,
|
`co_content` longtext NOT NULL,
|
||||||
|
`co_tag_filter_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`co_hit` int(11) NOT NULL DEFAULT '0',
|
`co_hit` int(11) NOT NULL DEFAULT '0',
|
||||||
`co_include_head` varchar(255) NOT NULL,
|
`co_include_head` varchar(255) NOT NULL,
|
||||||
`co_include_tail` varchar(255) NOT NULL,
|
`co_include_tail` varchar(255) NOT NULL,
|
||||||
|
|||||||
@ -510,7 +510,7 @@ function conv_subject($subject, $len, $suffix='')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 내용을 변환
|
// 내용을 변환
|
||||||
function conv_content($content, $html)
|
function conv_content($content, $html, $filter=true)
|
||||||
{
|
{
|
||||||
global $config, $board;
|
global $config, $board;
|
||||||
|
|
||||||
@ -536,7 +536,9 @@ function conv_content($content, $html)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$content = preg_replace($source, $target, $content);
|
$content = preg_replace($source, $target, $content);
|
||||||
$content = html_purifier($content);
|
|
||||||
|
if($filter)
|
||||||
|
$content = html_purifier($content);
|
||||||
}
|
}
|
||||||
else // text 이면
|
else // text 이면
|
||||||
{
|
{
|
||||||
|
|||||||
64
mobile/content.php
Normal file
64
mobile/content.php
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
// 내용
|
||||||
|
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
||||||
|
$co = sql_fetch($sql);
|
||||||
|
if (!$co['co_id'])
|
||||||
|
alert('등록된 내용이 없습니다.');
|
||||||
|
|
||||||
|
$g5['title'] = $co['co_subject'];
|
||||||
|
include_once('./_head.php');
|
||||||
|
|
||||||
|
$str = conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
|
||||||
|
|
||||||
|
// $src 를 $dst 로 변환
|
||||||
|
unset($src);
|
||||||
|
unset($dst);
|
||||||
|
$src[] = "/{{쇼핑몰명}}|{{홈페이지제목}}/";
|
||||||
|
//$dst[] = $default[de_subject];
|
||||||
|
$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'];
|
||||||
|
|
||||||
|
$str = preg_replace($src, $dst, $str);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- 등록내용 시작 { -->
|
||||||
|
<article id="ctt" class="ctt_<?php echo $co_id; ?>">
|
||||||
|
<header>
|
||||||
|
<h1><?php echo $g5['title']; ?></h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div id="ctt_con">
|
||||||
|
<?php echo $str; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<!-- } 등록내용 끝 -->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
include_once('./_tail.php');
|
||||||
|
?>
|
||||||
@ -134,11 +134,12 @@ if( $cert_enc_use == "Y" )
|
|||||||
alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요.");
|
alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요.");
|
||||||
|
|
||||||
$phone_no = hyphen_hp_number($phone_no);
|
$phone_no = hyphen_hp_number($phone_no);
|
||||||
|
$mb_dupinfo = $di;
|
||||||
|
|
||||||
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
|
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['mb_id']) {
|
if ($row['mb_id']) {
|
||||||
alert_close("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : ".$row['mb_id']);
|
alert_close("입력하신 본인학인 정보로 가입된 내역이 존재합니다.\\n회원아이디 : ".$row['mb_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// hash 데이터
|
// hash 데이터
|
||||||
@ -156,6 +157,7 @@ if( $cert_enc_use == "Y" )
|
|||||||
set_session("ss_cert_adult", $adult);
|
set_session("ss_cert_adult", $adult);
|
||||||
set_session("ss_cert_birth", $birth_day);
|
set_session("ss_cert_birth", $birth_day);
|
||||||
set_session("ss_cert_sex", ($sex_code=="01"?"M":"F"));
|
set_session("ss_cert_sex", ($sex_code=="01"?"M":"F"));
|
||||||
|
set_session('ss_cert_dupinfo', $mb_dupinfo);
|
||||||
}
|
}
|
||||||
else if( $res_cd != "0000" )
|
else if( $res_cd != "0000" )
|
||||||
{
|
{
|
||||||
|
|||||||
@ -95,13 +95,14 @@ echo "리턴메시지 :$field[16] <br/>";
|
|||||||
$mb_name = $field[7];
|
$mb_name = $field[7];
|
||||||
$req_num = $field[12];
|
$req_num = $field[12];
|
||||||
$mb_birth = $field[8];
|
$mb_birth = $field[8];
|
||||||
|
$mb_dupinfo = $field[4];
|
||||||
// 휴대폰번호 중복체크
|
|
||||||
$phone_no = hyphen_hp_number($req_num);
|
$phone_no = hyphen_hp_number($req_num);
|
||||||
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
|
|
||||||
|
// 중복정보 체크
|
||||||
|
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['mb_id']) {
|
if ($row['mb_id']) {
|
||||||
alert_close("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : ".$row['mb_id']);
|
alert_close("입력하신 본인학인 정보로 가입된 내역이 존재합니다.\\n회원아이디 : ".$row['mb_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// hash 데이터
|
// hash 데이터
|
||||||
@ -119,6 +120,7 @@ set_session('ss_cert_hash', $hash_data);
|
|||||||
set_session('ss_cert_adult', $adult);
|
set_session('ss_cert_adult', $adult);
|
||||||
set_session('ss_cert_birth', $mb_birth);
|
set_session('ss_cert_birth', $mb_birth);
|
||||||
set_session('ss_cert_sex', ($field[9] == 1 ? 'M' : 'F'));
|
set_session('ss_cert_sex', ($field[9] == 1 ? 'M' : 'F'));
|
||||||
|
set_session('ss_cert_dupinfo', $mb_dupinfo);
|
||||||
|
|
||||||
$g5['title'] = 'KCB 휴대폰 본인확인';
|
$g5['title'] = 'KCB 휴대폰 본인확인';
|
||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|||||||
@ -67,6 +67,14 @@ $field_name_IPIN_DEC = array(
|
|||||||
$mb_name = $field[6];
|
$mb_name = $field[6];
|
||||||
$req_num = $field[7];
|
$req_num = $field[7];
|
||||||
$mb_birth = $field[11];
|
$mb_birth = $field[11];
|
||||||
|
$mb_dupinfo = $field[0];
|
||||||
|
|
||||||
|
// 중복정보 체크
|
||||||
|
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' ";
|
||||||
|
$row = sql_fetch($sql);
|
||||||
|
if ($row['mb_id']) {
|
||||||
|
alert_close("입력하신 본인확인 정보로 가입된 내역이 존재합니다.\\n회원아이디 : ".$row['mb_id']);
|
||||||
|
}
|
||||||
|
|
||||||
// hash 데이터
|
// hash 데이터
|
||||||
$cert_type = 'ipin';
|
$cert_type = 'ipin';
|
||||||
@ -82,6 +90,7 @@ set_session('ss_cert_hash', $hash_data);
|
|||||||
set_session('ss_cert_adult', $adult);
|
set_session('ss_cert_adult', $adult);
|
||||||
set_session('ss_cert_birth', $mb_birth);
|
set_session('ss_cert_birth', $mb_birth);
|
||||||
set_session('ss_cert_sex', ($field[9] == 1 ? 'M' : 'F'));
|
set_session('ss_cert_sex', ($field[9] == 1 ? 'M' : 'F'));
|
||||||
|
set_session('ss_cert_dupinfo', $mb_dupinfo);
|
||||||
|
|
||||||
$g5['title'] = 'KCB 아이핀 본인확인';
|
$g5['title'] = 'KCB 아이핀 본인확인';
|
||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user