Merge branch 'ipin'

This commit is contained in:
chicpro
2013-09-04 08:50:08 +09:00
29 changed files with 350 additions and 192 deletions

View File

@ -70,13 +70,13 @@ function imageview(id, w, h)
<div id="hd_wrap">
<h1><?php echo $config['cf_title'] ?></h1>
<div id="logo"><a href="<?php echo G4_ADMIN_URL ?>"><img src="<?php echo G4_ADMIN_URL ?>/img/logo.jpg" alt="<?php echo $config['cf_title'] ?> 관리자 처음으로"></a></div>
<div id="logo"><a href="<?php echo G4_ADMIN_URL ?>"><img src="<?php echo G4_ADMIN_URL ?>/img/logo.jpg" alt="<?php echo $config['cf_title'] ?> 관리자"></a></div>
<ul id="tnb">
<li><a href="<?php echo G4_ADMIN_URL ?>/member_form.php?w=u&amp;mb_id=<?php echo $member['mb_id'] ?>" id="tnb_modify"><span>관리자정보</span></a></li>
<li><a href="<?php echo G4_ADMIN_URL ?>/config_form.php" id="tnb_chome_cf"><span>환경설정</span></a></li>
<li><a href="<?php echo G4_URL ?>/" id="tnb_chome"><span>홈페이지</span></a></li>
<li><a href="<?php echo G4_BBS_URL ?>/logout.php" id="tnb_logout"><span>로그아웃</span></a></li>
<li><a href="<?php echo G4_ADMIN_URL ?>/member_form.php?w=u&amp;mb_id=<?php echo $member['mb_id'] ?>">관리자정보</a></li>
<li><a href="<?php echo G4_ADMIN_URL ?>/config_form.php">환경설정</a></li>
<li><a href="<?php echo G4_URL ?>/">홈페이지</a></li>
<li><a href="<?php echo G4_BBS_URL ?>/logout.php">로그아웃</a></li>
</ul>
<nav id="gnb">
@ -111,26 +111,11 @@ function imageview(id, w, h)
<div id="wrapper">
<ul id="qnb">
<li>
<a href="<?php echo G4_ADMIN_URL ?>/member_list.php">
<img src="<?php echo G4_ADMIN_URL ?>/img/qnb_mb.jpg" alt="" width="40" height="40">
회원
</a>
</li>
<li>
<a href="<?php echo G4_ADMIN_URL ?>/board_list.php">
<img src="<?php echo G4_ADMIN_URL ?>/img/qnb_board.jpg" alt="" width="40" height="40">
게시판
</a>
</li>
<li>
<a href="<?php echo G4_ADMIN_URL ?>/visit_list.php">
<img src="<?php echo G4_ADMIN_URL ?>/img/qnb_log.jpg" alt="" width="40" height="40">
접속자
</a>
</li>
</ul>
<!-- <ul id="qnb">
<li><a href="<?php echo G4_ADMIN_URL ?>/member_list.php">회원</a></li>
<li><a href="<?php echo G4_ADMIN_URL ?>/board_list.php">게시판</a></li>
<li><a href="<?php echo G4_ADMIN_URL ?>/visit_list.php">접속자</a></li>
</ul> -->
<div id="container">
<div id="text_size">

View File

@ -95,11 +95,23 @@ if(!isset($config['cf_cert_use'])) {
ADD `cf_cert_ipin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_use`,
ADD `cf_cert_hp` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_ipin`,
ADD `cf_cert_kcb_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`,
ADD `cf_cert_kcp_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcb_cd` ", true);
ADD `cf_cert_kcp_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcb_cd`,
ADD `cf_cert_limit` INT(11) NOT NULL DEFAULT '0' AFTER `cf_cert_kcp_cd` ", true);
sql_query(" ALTER TABLE `{$g4['member_table']}`
CHANGE `mb_hp_certify` `mb_certify` VARCHAR(20) NOT NULL DEFAULT '' ", true);
sql_query(" update {$g4['member_table']} set mb_certify = 'hp' where mb_certify = '1' ");
sql_query(" update {$g4['member_table']} set mb_certify = '' where mb_certify = '0' ");
sql_query(" CREATE TABLE IF NOT EXISTS `{$g4['cert_history_table']}` (
`cr_id` int(11) NOT NULL auto_increment,
`mb_id` varchar(255) NOT NULL DEFAULT '',
`cr_company` varchar(255) NOT NULL DEFAULT '',
`cr_method` varchar(255) NOT NULL DEFAULT '',
`cr_ip` varchar(255) NOT NULL DEFAULT '',
`cr_date` date NOT NULL DEFAULT '0000-00-00',
`cr_time` time NOT NULL DEFAULT '00:00:00',
PRIMARY KEY (`cr_id`),
KEY `mb_id` (`mb_id`)
)", true);
}
$g4['title'] = '환경설정';
@ -641,6 +653,13 @@ $pg_anchor = '<ul class="anchor">
<input type="text" name="cf_cert_kcp_cd" value="<?php echo $config['cf_cert_kcp_cd'] ?>" id="cf_cert_kcp_cd" class="frm_input" size="3"> <a href="http://sir.co.kr/main/provider/p_cert.php" target="_blank" class="btn_frmline">KCP 휴대폰 본인확인 서비스 신청페이지</a>
</td>
</tr>
<tr>
<th scope="row" class="cf_cert_service"><label for="cf_cert_limit">본인확인 이용제한</label></th>
<td class="cf_cert_service">
<?php echo help('하루동안 아이핀과 휴대폰 본인확인 인증 이용회수를 제한할 수 있습니다.<br>회수제한은 실서비스에서 아이핀과 휴대폰 본인확인 인증에 개별 적용됩니다.<br>0 으로 설정하시면 회수제한이 적용되지 않습니다.'); ?>
<input type="text" name="cf_cert_limit" value="<?php echo $config['cf_cert_limit']; ?>" id="cf_cert_limit" class="frm_input" size="3"> 회
</td>
</tr>
</tbody>
</table>
</section>

View File

@ -113,6 +113,7 @@ $sql = " update {$g4['config_table']}
cf_cert_hp = '{$_POST['cf_cert_hp']}',
cf_cert_kcb_cd = '{$_POST['cf_cert_kcb_cd']}',
cf_cert_kcp_cd = '{$_POST['cf_cert_kcp_cd']}',
cf_cert_limit = '{$_POST['cf_cert_limit']}',
cf_googl_shorturl_apikey = '{$_POST['cf_googl_shorturl_apikey']}',
cf_facebook_appid = '{$_POST['cf_facebook_appid']}',
cf_facebook_secret = '{$_POST['cf_facebook_secret']}',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -57,11 +57,31 @@ else if ($w == 'u')
else
alert('제대로 된 값이 넘어오지 않았습니다.');
// 휴대폰 본인확인
// 본인확인방법
switch($mb['mb_certify']) {
case 'hp':
$mb_certify_case = '휴대폰';
$mb_certify_val = 'hp';
break;
case 'ipin':
$mb_certify_case = '아이핀';
$mb_certify_val = 'ipin';
break;
case 'admin':
$mb_certify_case = '관리자 수정';
$mb_certify_val = 'admin';
break;
default:
$mb_certify_case = '';
$mb_certify_val = 'admin';
break;
}
// 본인확인
$mb_certify_yes = $mb['mb_certify'] ? 'checked="checked"' : '';
$mb_certify_no = !$mb['mb_certify'] ? 'checked="checked"' : '';
// 휴대폰 성인인증
// 성인인증
$mb_adult_yes = $mb['mb_adult'] ? 'checked="checked"' : '';
$mb_adult_no = !$mb['mb_adult'] ? 'checked="checked"' : '';
@ -149,12 +169,21 @@ include_once('./admin.head.php');
<th scope="row"><label for="mb_tel">전화번호</label></th>
<td><input type="text" name="mb_tel" value="<?php echo $mb['mb_tel'] ?>" id="mb_tel" class="frm_input" size="15" maxlength="20"></td>
</tr>
<tr>
<th scope="row">본인확인방법</th>
<td colspan="3">
<input type="radio" name="mb_certify_case" value="ipin" id="mb_certify_ipin" <?php if($mb['mb_certify'] == 'ipin') echo 'checked="checked"'; ?>>
<label for="mb_certify_ipin">아이핀</label>
<input type="radio" name="mb_certify_case" value="hp" id="mb_certify_hp" <?php if($mb['mb_certify'] == 'hp') echo 'checked="checked"'; ?>>
<label for="mb_certify_hp">휴대폰</label>
</td>
</tr>
<tr>
<th scope="row">본인확인</th>
<td>
<input type="radio" name="mb_certify" value="1" id="mb_certify_yes" <?php echo $mb_certify_yes; ?>>
<label for="mb_certify_yes">예</label>
<input type="radio" name="mb_certify" value="0" id="mb_certify_no" <?php echo $mb_certify_no; ?>>
<input type="radio" name="mb_certify" value="" id="mb_certify_no" <?php echo $mb_certify_no; ?>>
<label for="mb_certify_no">아니오</label>
</td>
<th scope="row"><label for="mb_adult">성인인증</label></th>

View File

@ -20,14 +20,23 @@ if($mb_hp) {
alert($result);
}
// 인증정보처리
if($_POST['mb_certify_case'] && $_POST['mb_certify']) {
$mb_certify = $_POST['mb_certify_case'];
$mb_adult = $_POST['mb_adult'];
} else {
$mb_certify = '';
$mb_adult = 0;
}
$sql_common = " mb_name = '{$_POST['mb_name']}',
mb_nick = '{$_POST['mb_nick']}',
mb_email = '{$_POST['mb_email']}',
mb_homepage = '{$_POST['mb_homepage']}',
mb_tel = '{$_POST['mb_tel']}',
mb_hp = '{$_POST['mb_hp']}',
mb_certify = '{$_POST['mb_certify']}',
mb_adult = '{$_POST['mb_adult']}',
mb_certify = '{$mb_certify}',
mb_adult = '{$mb_adult}',
mb_zip1 = '{$_POST['mb_zip1']}',
mb_zip2 = '{$_POST['mb_zip2']}',
mb_addr1 = '{$_POST['mb_addr1']}',

View File

@ -138,26 +138,25 @@ $colspan = 15;
<label for="chkall" class="sound_only">회원 전체</label>
<input type="checkbox" name="chkall" value="1" id="chkall" onclick="check_all(this.form)">
</th>
<th scope="col" id="mb_list_id">회원아이디</th>
<th scope="col" rowspan="2" id="mb_list_id">아이디</th>
<th scope="col" id="mb_list_name">이름</th>
<th scope="col" colspan="5" id="mb_list_cert">본인확인</th>
<th scope="col" id="mb_list_mobile">휴대폰</th>
<th scope="col" colspan="6" id="mb_list_addr">주소</th>
<th scope="col" id="mb_list_auth">상태/권한</th>
<th scope="col" id="mb_list_lastcall">최종접속</th>
<th scope="col" id="mb_list_point">포인트</th>
<th scope="col" rowspan="2" id="mb_list_grp">접근<br>그룹</th>
<th scope="col" rowspan="2" id="mb_list_mng">관리</th>
</tr>
<tr>
<th scope="col" id="mb_list_nick">별명</th>
<th scope="col" id="mb_list_auth">상태/권한</th>
<th scope="col" id="mb_list_tel">전화번호</th>
<th scope="col" id="mb_list_mailc">메일<br>인증</th>
<th scope="col" id="mb_list_mailr">메일<br>수신</th>
<th scope="col" id="mb_list_open">정보<br>공개</th>
<th scope="col" id="mb_list_selfc">본인<br>인</th>
<th scope="col" id="mb_list_mailc">메일<br>인</th>
<th scope="col" id="mb_list_adultc">성인<br>인증</th>
<th scope="col" id="mb_list_deny">접근<br>차단</th>
<th scope="col" id="mb_list_tel">전화번호</th>
<th scope="col" id="mb_list_point">포인트</th>
<th scope="col" id="mb_list_join">가입일</th>
<th scope="col" id="mb_list_grp">접근그룹</th>
</tr>
</thead>
<tbody>
@ -204,6 +203,25 @@ $colspan = 15;
$tr_bg = '';
if ($i%2 == 0) $tr_bg = 'class="tr_bg"';
switch($row['mb_certify']) {
case 'hp':
$mb_certify_case = '휴대폰';
$mb_certify_val = 'hp';
break;
case 'ipin':
$mb_certify_case = '아이핀';
$mb_certify_val = '';
break;
case 'admin':
$mb_certify_case = '관리자';
$mb_certify_val = 'admin';
break;
default:
$mb_certify_case = '&nbsp;';
$mb_certify_val = 'admin';
break;
}
?>
<tr <?php echo $tr_bg; ?>>
@ -212,16 +230,15 @@ $colspan = 15;
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $row['mb_name']; ?> <?php echo $row['mb_nick']; ?>님</label>
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
</td>
<td headers="mb_list_id" class="td_name sv_use"><?php echo $mb_id ?></td>
<td headers="mb_list_id" rowspan="2" class="td_name sv_use"><?php echo $mb_id ?></td>
<td headers="mb_list_name" class="td_mbname"><?php echo $row['mb_name']; ?></td>
<td headers="mb_list_mobile"><?php echo $row['mb_hp']; ?></td>
<td colspan="6" headers="mb_list_addr" class="td_addr"><?php echo $address; ?></td>
<td headers="mb_list_lastcall"><?php echo substr($row['mb_today_login'],2,8); ?></td>
<td headers="mb_list_point" class="td_bignum"><a href="point_list.php?sfl=mb_id&amp;stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
<td rowspan="2" headers="mb_list_mng"><?php echo $s_mod ?><br><?php echo $s_grp ?></td>
</tr>
<tr <?php echo $tr_bg; ?>>
<td headers="mb_list_nick" class="td_name sv_use"><div><?php echo $mb_nick ?></div></td>
<td headers="mb_list_cert" colspan="5">
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="ipin" id="mb_certify_ipin_<?php echo $i; ?>" <?php echo $row['mb_certify']=='ipin'?'checked':''; ?>>
<label for="mb_certify_ipin_<?php echo $i; ?>">아이핀</label>
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="hp" id="mb_certify_hp_<?php echo $i; ?>" <?php echo $row['mb_certify']=='hp'?'checked':''; ?>>
<label for="mb_certify_hp_<?php echo $i; ?>">휴대폰</label>
</td>
<td headers="mb_list_mobile" class="td_callnum"><?php echo $row['mb_hp']; ?></td>
<td headers="mb_list_auth" class="">
<?php
if ($leave_msg || $intercept_msg) echo $leave_msg.' '.$intercept_msg;
@ -229,19 +246,24 @@ $colspan = 15;
?>
<?php echo get_member_level_select("mb_level[$i]", 1, $member['mb_level'], $row['mb_level']) ?>
</td>
<td headers="mb_list_tel"><?php echo $row['mb_tel']; ?></td>
<td headers="mb_list_lastcall" class="td_date"><?php echo substr($row['mb_today_login'],2,8); ?></td>
<td headers="mb_list_grp" rowspan="2" class="td_smallnum"><?php echo $group ?></td>
<td headers="mb_list_mng" rowspan="2" class="td_smallmng"><?php echo $s_mod ?><br><?php echo $s_grp ?></td>
</tr>
<tr <?php echo $tr_bg; ?>>
<td headers="mb_list_nick" class="td_name sv_use"><div><?php echo $mb_nick ?></div></td>
<td headers="mb_list_mailc" class="td_chk"><?php echo preg_match('/[1-9]/', $row['mb_email_certify'])?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
<td headers="mb_list_mailr" class="td_chk"><input type="checkbox" name="mb_mailling[<?php echo $i; ?>]" <?php echo $row['mb_mailling']?'checked':''; ?> value="1"></td>
<td headers="mb_list_open" class="td_chk"><input type="checkbox" name="mb_open[<?php echo $i; ?>]" <?php echo $row['mb_open']?'checked':''; ?> value="1"></td>
<td headers="mb_list_selfc" class="td_chk"><input type="checkbox" name="mb_certify[<?php echo $i; ?>]" <?php echo $row['mb_certify']?'checked':''; ?> value="1"></td>
<td headers="mb_list_adultc" class="td_chk"><input type="checkbox" name="mb_adult[<?php echo $i; ?>]" <?php echo $row['mb_adult']?'checked':''; ?> value="1"></td>
<td headers="mb_list_deny" class="td_chk">
<?php if(empty($row['mb_leave_date'])){ ?>
<input type="checkbox" name="mb_intercept_date[<?php echo $i; ?>]" <?php echo $row['mb_intercept_date']?'checked':''; ?> value="<?php echo $intercept_date ?>" id="mb_intercept_date_<?php echo $i ?>" title="<?php echo $intercept_title ?>">
<?php } ?>
</td>
<td headers="mb_list_tel"><?php echo $row['mb_tel']; ?></td>
<td headers="mb_list_point" class="td_num"><a href="point_list.php?sfl=mb_id&amp;stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
<td headers="mb_list_join"><?php echo substr($row['mb_datetime'],2,8); ?></td>
<td headers="mb_list_grp" class="td_chk"><?php echo $group ?></td>
</tr>
<?php
@ -249,6 +271,7 @@ $colspan = 15;
if ($i == 0)
echo "<tr><td colspan=\"".$colspan."\" class=\"empty_table\">자료가 없습니다.</td></tr>";
?>
</tbody>
</table>
<div class="btn_list">

View File

@ -26,13 +26,18 @@ if ($_POST['act_button'] == "선택수정") {
} else if ($member['mb_id'] == $mb['mb_id']) {
$msg .= $mb['mb_id'].' : 로그인 중인 관리자는 수정 할 수 없습니다.\\n';
} else {
if($_POST['mb_certify'][$k])
$mb_adult = $_POST['mb_adult'][$k];
else
$mb_adult = 0;
$sql = " update {$g4['member_table']}
set mb_level = '{$_POST['mb_level'][$k]}',
mb_intercept_date = '{$_POST['mb_intercept_date'][$k]}',
mb_mailling = '{$_POST['mb_mailling'][$k]}',
mb_open = '{$_POST['mb_open'][$k]}',
mb_certify = '{$_POST['mb_certify'][$k]}',
mb_adult = '{$_POST['mb_adult'][$k]}'
mb_adult = '{$mb_adult}'
where mb_id = '{$_POST['mb_id'][$k]}' ";
sql_query($sql);
}

View File

@ -26,19 +26,16 @@ h2 {font-size:1.2em}
#hd h1, #hd h2 {margin:0;padding:0;font-size:0;line-height:0;border:0;overflow:hidden}
#hd_wrap {z-index:11;position:relative;margin:0 auto;width:1000px}
#logo {position:relative;height:70px}
#logo img {position:absolute;top:15px;left:0}
#logo img {position:absolute;top:13px;left:0}
#tnb {z-index:2;position:absolute;top:1px;right:0;zoom:1}
#tnb {z-index:2;position:absolute;top:20px;right:0;zoom:1}
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb {float:right;margin:0;padding:0;zoom:1}
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb li {float:left}
#tnb a {display:block;position:relative;width:68px;height:68px;color:#e0e0e0;font-size:0.95em;text-decoration:none}
#tnb li {float:left;margin:0 0 0 1px}
#tnb a {display:block;position:relative;padding:0 15px;height:33px;background:#383a3f;color:#e0e0e0;text-decoration:none;line-height:2.8em}
#tnb a:focus, #tnb a:hover {background:#fff;color:#383a3f}
#tnb span {position:absolute;bottom:10px;left:0;width:100%;text-align:center}
#tnb_modify {background:url('../adm/img/tnb_modify.jpg')}
#tnb_chome_cf {background:url('../adm/img/tnb_chome_cf.jpg')}
#tnb_chome {background:url('../adm/img/tnb_chome.jpg')}
#tnb_logout {background:url('../adm/img/tnb_logout.jpg')}
/* gnb js off */
#gnb {z-index:12;background:#383a3f}
@ -62,27 +59,23 @@ h2 {font-size:1.2em}
.gnb_js .gnb_1dli_on a {float:none;background:#fff;color:#000}
.gnb_js .gnb_2dul {display:none;position:absolute;top:35px}
.gnb_js .gnb_2dli a {display:inline-block;float:none !important;padding:0 10px;width:161px;text-align:left}
.gnb_js .gnb_2dli a:focus, .gnb_js .gnb_2dli a:hover {background:#484848;color:#fff}
.gnb_1dli_over .gnb_2dul {display:block;left:-1px;width:181px;border:1px solid #c3c7c5;border-top:0;background:#fff}
.gnb_1dli_over2 .gnb_2dul {display:block;right:-1px;width:181px;border:1px solid #c3c7c5;border-top:0;background:#fff}
.gnb_js .gnb_grp_style {background:#f7f7f7 !important}
.gnb_js .gnb_grp_style:focus, .gnb_js .gnb_grp_style:hover {background:#484848 !important}
.gnb_js .gnb_grp_div {border-top:1px solid #eee}
/* 중간 레이아웃 */
#wrapper {z-index:5;margin:30px auto;width:1000px;min-height:630px;height:auto !important;height:630px;zoom:1}
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}
#qnb {float:right;margin:0;padding:0;list-style:none}
#qnb li {margin-bottom:20px}
#qnb a {display:block;width:40px;font-size:0.9em;text-align:center;letter-spacing:-0.1em}
#qnb a:focus, #qnb a:hover, #qnb a:active {text-decoration:none}
#qnb img {margin-bottom:5px}
#container {z-index:4;position:relative;float:left;width:942px}
#container {z-index:4;position:relative}
/* 텍스트 크기 조절 */
#text_size {position:absolute;top:0;right:0}
#text_size button {padding:0 10px;height:30px;background:#000;color:#fff;cursor:pointer}
#text_size button {padding:0 10px;height:30px;border:0;background:#000;color:#fff;cursor:pointer}
/* 하단 레이아웃 */
#ft {margin:20px 0;padding:5px 0;border-top:1px solid #d0d6d8}
@ -194,7 +187,7 @@ thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서
thead a {color:#fff}
tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
td {padding:8px 5px 6px;border:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
.bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */
/* 내용 없는 테이블 */
.empty_table {padding:200px 0;text-align:center}
@ -271,15 +264,17 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
.tr_bg {background:#f5f6fa}
.td_addr {text-align:left !important}
.td_boolean {width:50px;text-align:center}
.td_chk {width:30px;text-align:center}
.td_num {width:60px;text-align:center}
.td_bignum {width:100px;text-align:center}
.td_callnum {width:80px;text-align:center}
.td_date {width:70px;text-align:center}
.td_grid {width:60px;text-align:center}
.td_mbid, .td_name, .td_mbname {width:100px;text-align:left !important}
.td_date {width:70px;text-align:center}
.td_time {width:130px;text-align:center}
.td_boolean {width:50px;text-align:center}
.td_num {width:60px;text-align:center}
.td_bignum {width:100px;text-align:center}
.td_smallnum {width:30px;text-align:center}
.td_pt {text-align:right !important}
.td_time {width:130px;text-align:center}
.txt_true {color:#e8180c}
.txt_false {color:#ccc}

View File

@ -287,6 +287,7 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
`cf_cert_hp` varchar(255) NOT NULL DEFAULT '',
`cf_cert_kcb_cd` varchar(255) NOT NULL DEFAULT '',
`cf_cert_kcp_cd` varchar(255) NOT NULL DEFAULT '',
`cf_cert_limit` int(11) NOT NULL DEFAULT '0',
`cf_googl_shorturl_apikey` varchar(255) NOT NULL DEFAULT '',
`cf_facebook_appid` varchar(255) NOT NULL,
`cf_facebook_secret` varchar(255) NOT NULL,
@ -317,6 +318,24 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
-- --------------------------------------------------------
--
-- Table structure for table `g4s_cert_history`
--
CREATE TABLE IF NOT EXISTS `g4s_cert_history` (
`cr_id` int(11) NOT NULL auto_increment,
`mb_id` varchar(255) NOT NULL DEFAULT '',
`cr_company` varchar(255) NOT NULL DEFAULT '',
`cr_method` varchar(255) NOT NULL DEFAULT '',
`cr_ip` varchar(255) NOT NULL DEFAULT '',
`cr_date` date NOT NULL DEFAULT '0000-00-00',
`cr_time` time NOT NULL DEFAULT '00:00:00',
PRIMARY KEY (`cr_id`),
KEY `mb_id` (`mb_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `g4s_group`
--

View File

@ -125,6 +125,7 @@ $sql = " insert into `{$table_prefix}config`
cf_movie_extension = 'asx|asf|wmv|wma|mpg|mpeg|mov|avi|mp3',
cf_formmail_is_member = '1',
cf_page_rows = '15',
cf_cert_limit = '2',
cf_stipulation = '해당 홈페이지에 맞는 회원가입약관을 입력합니다.',
cf_privacy = '해당 홈페이지에 맞는 개인정보취급방침을 입력합니다.'
";
@ -207,6 +208,7 @@ fwrite($f, "\$g4['visit_sum_table'] = G4_TABLE_PREFIX.'visit_sum'; // 방문자
fwrite($f, "\$g4['uniqid_table'] = G4_TABLE_PREFIX.'uniqid'; // 유니크한 값을 만드는 테이블\n");
fwrite($f, "\$g4['syndi_log_table'] = G4_TABLE_PREFIX.'syndi_log'; // 네이버 신디케이션 컨텐츠 삭제 로그 테이블\n");
fwrite($f, "\$g4['autosave_table'] = G4_TABLE_PREFIX.'autosave'; // 게시글 작성시 일정시간마다 글을 임시 저장하는 테이블\n");
fwrite($f, "\$g4['cert_history_table'] = G4_TABLE_PREFIX.'cert_history'; // 인증내역 테이블\n");
fwrite($f, "?>");
fclose($f);

53
js/certify.js Normal file
View File

@ -0,0 +1,53 @@
// 본인확인 인증창 호출
function certify_win_open(type, url)
{
if(type == 'kcb-ipin')
{
var popupWindow = window.open( url, "kcbPop", "left=200, top=100, status=0, width=450, height=550" );
popupWindow.focus();
}
else if(type == 'kcb-hp')
{
var popupWindow = window.open( url, "auth_popup", "left=200, top=100, width=430, height=590, scrollbar=yes" );
popupWindow.focus();
}
else if(type == 'kcp-hp')
{
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) == false ) // 스마트폰이 아닌경우
{
var return_gubun;
var width = 410;
var height = 500;
var leftpos = screen.width / 2 - ( width / 2 );
var toppos = screen.height / 2 - ( height / 2 );
var winopts = "width=" + width + ", height=" + height + ", toolbar=no,status=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
var position = ",left=" + leftpos + ", top=" + toppos;
var AUTH_POP = window.open(url,'auth_popup', winopts + position);
}
}
}
// 인증체크
function cert_confirm()
{
var type;
var val = document.fregisterform.cert_type.value
switch(val) {
case "ipin":
type = "아이핀";
break;
case "hp":
type = "휴대폰";
break;
default:
return true;
}
if(confirm("이미 "+type+"으로 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
return true;
else
return false;
}

View File

@ -2305,4 +2305,57 @@ function autosave_count($mb_id)
return 0;
}
}
// 본인확인내역 기록
function insert_cert_history($mb_id, $company, $method)
{
global $g4;
$sql = " insert into {$g4['cert_history_table']}
set mb_id = '$mb_id',
cr_company = '$company',
cr_method = '$method',
cr_ip = '{$_SERVER['REMOTE_ADDR']}',
cr_date = '".G4_TIME_YMD."',
cr_time = '".G4_TIME_HIS."' ";
sql_query($sql);
}
// 인증시도회수 체크
function certify_count_check($mb_id, $type)
{
global $g4, $config;
if($config['cf_cert_use'] != 2)
return;
if($config['cf_cert_limit'] == 0)
return;
$sql = " select count(*) as cnt from {$g4['cert_history_table']} ";
if($mb_id) {
$sql .= " where mb_id = '$mb_id' ";
} else {
$sql .= " where cr_ip = '{$_SERVER['REMOTE_ADDR']}' ";
}
$sql .= " and cr_method = '".$type."' and cr_date = '".G4_TIME_YMD."' ";
$row = sql_fetch($sql);
switch($type) {
case 'hp':
$cert = '휴대폰';
break;
case 'ipin':
$cert = '아이핀';
break;
default:
break;
}
if((int)$row['cnt'] >= (int)$config['cf_cert_limit'])
alert_close('오늘 '.$cert.' 본인확인을 '.$row['cnt'].'회 이용하셔서 더 이상 이용할 수 없습니다.');
}
?>

View File

@ -3,6 +3,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<script src="<?php echo G4_JS_URL ?>/jquery.register_form.js"></script>
<?php if($config['cf_cert_use'] && ($config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>
<script src="<?php echo G4_JS_URL ?>/certify.js"></script>
<?php } ?>
<form name="fregisterform" id="fregisterform" action="<?php echo $register_action_url ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w ?>">
@ -263,46 +266,43 @@ $(function() {
$("#reg_zip_find").css("display", "inline-block");
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
<?php if($config['cf_cert_use']) { ?>
<?php if($config['cf_cert_ipin'] == 'kcb') { ?>
// KCB 아이핀인증
<?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>
// 아이핀인증
$("#win_ipin_cert").click(function() {
if(!cert_confirm())
return false;
var url = "<?php echo G4_OKNAME_URL; ?>/ipin1.php";
var popupWindow = window.open( url, "kcbPop", "left=200, top=100, status=0, width=450, height=550" );
popupWindow.focus();
certify_win_open('kcb-ipin', url);
return;
});
<?php } ?>
<?php if($config['cf_cert_hp'] == 'kcb') { ?>
// KCB 휴대폰인증
<?php } ?>
<?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
// 휴대폰인증
$("#win_hp_cert").click(function() {
if(!cert_confirm())
return false;
var url = "<?php echo G4_OKNAME_URL; ?>/hpcert1.php";
var popupWindow = window.open( url, "auth_popup", "left=200, top=100, width=430, height=590, scrollbar=yes" );
popupWindow.focus();
<?php
switch($config['cf_cert_hp']) {
case 'kcb':
$cert_url = G4_OKNAME_URL.'/hpcert1.php';
$cert_type = 'kcb-hp';
break;
case 'kcp':
$cert_url = G4_KCPCERT_URL.'/kcpcert_form.php';
$cert_type = 'kcp-hp';
break;
default:
break;
}
?>
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>");
return;
});
<?php } ?>
<?php if($config['cf_cert_hp'] == 'kcp') { ?>
// KCP 휴대폰인증
$("#win_hp_cert").click(function() {
if(!cert_confirm())
return false;
auth_type_check($("#reg_mb_name").val());
return false;
});
<?php } ?>
<?php } ?>
});
// 인증체크
@ -322,7 +322,7 @@ function cert_confirm()
return true;
}
if(confirm("이미 "+type+" 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
if(confirm("이미 "+type+"으로 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
return true;
else
return false;

View File

@ -1,5 +1,8 @@
<?php
include_once('./_common.php');
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 금일 인증시도 회수 체크
certify_count_check($member['mb_id'], 'hp');
// 서버상 bin 폴더 이전까지 경로
$home_dir = G4_KCPCERT_PATH; // ct_cli 절대경로 ( bin 전까지 )

View File

@ -1,5 +1,8 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once('./_common.php');
// 금일 인증시도 회수 체크
certify_count_check($member['mb_id'], 'hp');
// kcp 휴대폰인증파일
include_once(G4_KCPCERT_PATH.'/kcpcert_config.php');
@ -48,36 +51,5 @@ if(!$ordr_idxx)
</form>
<script>
// 인증창 호출 함수
function auth_type_check(user_name)
{
var auth_form = document.form_auth;
//auth_form.user_name.value = encodeURIComponent(user_name);
if( auth_form.ordr_idxx.value == "" )
{
alert( "주문번호는 필수 입니다." );
return false;
}
else
{
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) == false ) // 스마트폰이 아닌경우
{
var return_gubun;
var width = 410;
var height = 500;
var leftpos = screen.width / 2 - ( width / 2 );
var toppos = screen.height / 2 - ( height / 2 );
var winopts = "width=" + width + ", height=" + height + ", toolbar=no,status=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
var position = ",left=" + leftpos + ", top=" + toppos;
var AUTH_POP = window.open('','auth_popup', winopts + position);
}
auth_form.submit();
}
}
document.form_auth.submit();
</script>

View File

@ -1,5 +1,6 @@
<?php
include_once('./kcpcert_config.php');
include_once('./_common.php');
include_once(G4_KCPCERT_PATH.'/kcpcert_config.php');
$site_cd = "";
$ordr_idxx = "";
@ -87,6 +88,9 @@ include_once(G4_PATH.'/head.sub.php');
if( $cert_enc_use == "Y" )
{
// 인증내역기록
@insert_cert_history($member['mb_id'], 'kcp', 'hp');
if( $res_cd == "0000" )
{
// dn_hash 검증
@ -175,7 +179,7 @@ $(function() {
var $opener = window.opener;
// 인증정보
$opener.$("input[name=mb_name]").val("<?php echo $user_name; ?>");
$opener.$("input[name=mb_name]").val("<?php echo $user_name; ?>").attr("readonly", true);
$opener.$("input[name=mb_hp]").val("<?php echo $phone_no; ?>").attr("readonly", true);
alert("본인의 휴대폰번호로 확인 되었습니다.");
window.close();

View File

@ -1,5 +1,9 @@
<?php
include_once('./_common.php');
// 금일 인증시도 회수 체크
certify_count_check($member['mb_id'], 'hp');
include_once('./hpcert.config.php');
/**************************************************************************

View File

@ -52,6 +52,9 @@ $cmd = "$exe $keypath $idcfMbrComCd $endPointUrl $WEBPUBKEY $WEBSIGNATURE $encIn
// 실행
exec($cmd, $out, $ret);
// 인증내역기록
@insert_cert_history($member['mb_id'], 'kcb', 'hp');
if($ret == 0) {
// 결과라인에서 값을 추출
foreach($out as $a => $b) {
@ -124,6 +127,7 @@ $(function() {
$opener.$("input[name=cert_type]").val("<?php echo $cert_type; ?>");
$opener.$("input[name=mb_name]").val("<?php echo $mb_name; ?>").attr("readonly", true);
$opener.$("input[name=mb_hp]").val("<?php echo $phone_no; ?>").attr("readonly", true);
alert("본인의 휴대폰번호로 확인 되었습니다.");
window.close();
});
</script>

View File

@ -1,5 +1,9 @@
<?php
include_once('./_common.php');
// 금일 인증시도 회수 체크
certify_count_check($member['mb_id'], 'ipin');
include_once('./ipin.config.php');
$option = "C";// Option

View File

@ -23,6 +23,9 @@ $cmd = "$exe $keypath $memid $EndPointURL $cpubkey $csig $encdata $logpath $opti
// 실행
exec($cmd, $out, $ret);
// 인증내역기록
@insert_cert_history($member['mb_id'], 'kcb', 'ipin');
if($ret != 0) {
if($ret <=200)
$resultCd=sprintf("B%03d", $ret);

View File

@ -5,6 +5,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<!-- 회원정보 입력/수정 시작 { -->
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<script src="<?php echo G4_JS_URL ?>/jquery.register_form.js"></script>
<?php if($config['cf_cert_use'] && ($config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>
<script src="<?php echo G4_JS_URL ?>/certify.js"></script>
<?php } ?>
<form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w ?>">
@ -251,84 +254,52 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</div>
</form>
<?php
if ($config['cf_cert_use']) {
// KCP 휴대폰인증 form
if($config['cf_cert_hp'] == 'kcp')
include_once(G4_KCPCERT_PATH.'/kcpcert_form.php');
}
?>
<script>
$(function() {
$("#reg_zip_find").css("display", "inline-block");
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
<?php if($config['cf_cert_use']) { ?>
<?php if($config['cf_cert_ipin'] == 'kcb') { ?>
// KCB 아이핀인증
<?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>
// 아이핀인증
$("#win_ipin_cert").click(function() {
if(!cert_confirm())
return false;
var url = "<?php echo G4_OKNAME_URL; ?>/ipin1.php";
var popupWindow = window.open( url, "kcbPop", "left=200, top=100, status=0, width=450, height=550" );
popupWindow.focus();
certify_win_open('kcb-ipin', url);
return;
});
<?php } ?>
<?php if($config['cf_cert_hp'] == 'kcb') { ?>
// KCB 휴대폰인증
<?php } ?>
<?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
// 휴대폰인증
$("#win_hp_cert").click(function() {
if(!cert_confirm())
return false;
var url = "<?php echo G4_OKNAME_URL; ?>/hpcert1.php";
var popupWindow = window.open( url, "auth_popup", "left=200, top=100, width=430, height=590, scrollbar=yes" );
popupWindow.focus();
<?php
switch($config['cf_cert_hp']) {
case 'kcb':
$cert_url = G4_OKNAME_URL.'/hpcert1.php';
$cert_type = 'kcb-hp';
break;
case 'kcp':
$cert_url = G4_KCPCERT_URL.'/kcpcert_form.php';
$cert_type = 'kcp-hp';
break;
default:
echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';
echo 'return false;';
break;
}
?>
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>");
return;
});
<?php } ?>
<?php if($config['cf_cert_hp'] == 'kcp') { ?>
// KCP 휴대폰인증
$("#win_hp_cert").click(function() {
if(!cert_confirm())
return false;
auth_type_check($("#reg_mb_name").val());
return false;
});
<?php } ?>
<?php } ?>
});
// 인증체크
function cert_confirm()
{
var val = document.fregisterform.cert_type.value;
var type;
switch(val) {
case "ipin":
type = "아이핀";
break;
case "hp":
type = "휴대폰";
break;
default:
return true;
}
if(confirm("이미 "+type+" 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
return true;
else
return false;
}
// submit 최종 폼체크
function fregisterform_submit(f)
{