Merge branch 'g4s'

This commit is contained in:
chicpro
2013-05-08 17:45:41 +09:00
11 changed files with 37 additions and 39 deletions

View File

@ -85,7 +85,7 @@ include_once('./admin.head.php');
</select> 에서
<select name="mb_level_to" id="mb_level_to" title="최대권한">
<?php for ($i=1; $i<=10; $i++) { ?>
<option value="<?php echo $i ?>"><?php echo $i ?></option>
<option value="<?php echo $i ?>"<?php echo $i==10 ? " selected" : ""; ?>><?php echo $i ?></option>
<?php } ?>
</select> 까지
</td>
@ -98,8 +98,7 @@ include_once('./admin.head.php');
<?php
$sql = " select gr_id, gr_subject from {$g4['group_table']} order by gr_subject ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
for ($i=0; $row=sql_fetch_array($result); $i++) {
echo '<option value="'.$row['gr_id'].'">'.$row['gr_subject'].'</option>';
}
?>

View File

@ -74,7 +74,6 @@ include_once('./admin.head.php');
<form name="fmailselectlist" id="fmailselectlist" method="post" action="./mail_select_update.php">
<input type="hidden" name="token" value="<?php echo $token ?>">
<input type="hidden" name="ma_id" value="<?php echo $ma_id ?>">
<input type="hidden" name="ma_list" value="<?php echo $ma_list ?>">
<table>
<thead>
<tr>
@ -93,8 +92,7 @@ include_once('./admin.head.php');
$i=0;
$ma_list = "";
$cr = "";
while ($row=sql_fetch_array($result))
{
while ($row=sql_fetch_array($result)) {
$i++;
$ma_list .= $cr . $row['mb_email'] . "||" . $row['mb_id'] . "||" . $row['mb_name'] . "||" . $row['mb_nick'] . "||" . $row['mb_datetime'];
$cr = "\n";
@ -110,6 +108,7 @@ include_once('./admin.head.php');
<?php } ?>
</tbody>
</table>
<textarea name="ma_list" style="display:none"><?=$ma_list?></textarea>
</div>
<div class="btn_confirm">

View File

@ -151,13 +151,10 @@ $colspan = 15;
if ($row2['cnt'])
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
if ($is_admin == 'group')
{
if ($is_admin == 'group') {
$s_mod = '';
$s_del = '';
}
else
{
} else {
$s_mod = '<a href="./member_form.php?'.$qstr.'&amp;w=u&amp;mb_id='.$row['mb_id'].'">수정</a>';
//$s_del = '<a href="javascript:post_delete(\'member_delete.php\', \''.$row['mb_id'].'\');">삭제</a>';
}
@ -197,10 +194,8 @@ $colspan = 15;
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
</td>
<td class="td_name"><?php echo $mb_id ?></td>
<td class="td_mbname">
<?php echo $row['mb_name'] ?>
</td>
<td><?php echo hyphen_hp_number($row['mb_hp']); ?></td>
<td class="td_mbname"><?php echo $row['mb_name']; ?></td>
<td><?php echo $row['mb_hp']; ?></td>
<td colspan="6" class="td_addr"><?php echo $address; ?></td>
<td><?php echo substr($row['mb_today_login'],2,8); ?></td>
<td 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>

View File

@ -64,7 +64,7 @@ if (isset($wr_id) && $wr_id) {
}
if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) {
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL);
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을 다시 해주시기 바랍니다.', G4_URL);
}
}

View File

@ -6,16 +6,14 @@ $row = sql_fetch($sql);
if (!$row[mb_id])
alert('존재하는 회원이 아닙니다.', G4_PATH);
if ($mb_md5)
{
if ($mb_md5) {
$tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]);
if ($mb_md5 == $tmp_md5)
{
if ($mb_md5 == $tmp_md5) {
sql_query(" update {$g4[member_table]} set mb_mailling = 0 where mb_id = '{$mb_id}' ");
alert('정보메일을 보내지 않도록 수신거부 하였습니다.', G4_PATH);
alert('정보메일을 보내지 않도록 수신거부 하였습니다.', G4_URL);
}
}
alert('제대로 된 값이 넘어오지 않았습니다.', G4_PATH);
alert('제대로 된 값이 넘어오지 않았습니다.', G4_URL);
?>

View File

@ -86,7 +86,7 @@ if ($w == "") {
$member['mb_password_a'] = get_text($member['mb_password_a']);
$member['mb_birth'] = get_text($member['mb_birth']);
$member['mb_tel'] = get_text($member['mb_tel']);
$member['mb_hp'] = hyphen_hp_number($member['mb_hp']);
$member['mb_hp'] = get_text($member['mb_hp']);
$member['mb_addr1'] = get_text($member['mb_addr1']);
$member['mb_addr2'] = get_text($member['mb_addr2']);
$member['mb_signature'] = get_text($member['mb_signature']);

View File

@ -269,9 +269,8 @@ if ($w == '') {
/////////////////////////////////////////////////////////////////
$sql_hp_certify = "";
$md5_cert_no = get_session("ss_kcpcert_no");
$hidden_hp = preg_replace("/[^0-9]/", "", $mb_hp);
if ($config['cf_kcpcert_use'] && $md5_cert_no) {
$hash_data = md5($hidden_hp.$mb_name.$md5_cert_no);
$hash_data = md5($mb_hp.$mb_name.$md5_cert_no);
// 해시값이 틀린 경우에는 휴대폰 인증 값을 무효화 한다.
if (get_session("ss_kcpcert_hash") != $hash_data) {
$sql_hp_certify .= " , mb_hp = '' ";
@ -280,7 +279,7 @@ if ($w == '') {
}
} else {
if (get_session("ss_reg_mb_name") != $mb_name ||
get_session("ss_reg_mb_hp") != $hidden_hp) {
get_session("ss_reg_mb_hp") != $mb_hp) {
$sql_hp_certify .= " , mb_hp = '{$mb_hp}' ";
$sql_hp_certify .= " , mb_hp_certify = 0 ";
$sql_hp_certify .= " , mb_adult = 0 ";

View File

@ -24,7 +24,7 @@ if (PHP_VERSION >= '5.3.0') {
보안서버주소가 없다면 공란으로 두시면 되며 보안서버주소 뒤에 / 는 붙이지 않습니다.
입력예) https://www.domain.com:443/gnuboard4s
*/
define('G4_DOMAIN', '');
define('G4_DOMAIN', ''); // 사용하지 않습니다.
define('G4_HTTPS_DOMAIN', '');
/*
@ -62,6 +62,12 @@ if (G4_DOMAIN) {
define('G4_URL', '');
}
if (G4_HTTPS_DOMAIN) {
define('G4_URL', G4_HTTPS_DOMAIN);
} else {
define('G4_URL', G4_DOMAIN);
}
if (isset($g4_path['path'])) {
define('G4_PATH', $g4_path['path']);
} else {

View File

@ -132,6 +132,8 @@ if( $cert_enc_use == "Y" )
if(!$phone_no)
alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요.");
$phone_no = hyphen_hp_number($phone_no);
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
$row = sql_fetch($sql);
if ($row['cnt']) {
@ -174,7 +176,7 @@ $(function() {
// 인증정보
$opener.$("input[name=mb_name]").val("<?php echo $user_name; ?>");
$opener.$("input[name=mb_hp]").val("<?php echo hyphen_hp_number($phone_no); ?>").attr("readonly", true);
$opener.$("input[name=mb_hp]").val("<?php echo $phone_no; ?>").attr("readonly", true);
alert("본인의 휴대폰번호로 확인 되었습니다.");
window.close();
});

View File

@ -1,25 +1,25 @@
<?php
/* ====================================================================== */
/* = PAGE : <EFBFBD><EFBFBD><EFBFBD><EFBFBD> PHP <EFBFBD><EFBFBD><EFBFBD>̺귯<EFBFBD><EFBFBD> 1.0.1 = */
/* = PAGE : 인증 PHP 라이브러리 1.0.1 = */
/* = ------------------------------------------------------------------ = */
/* = Copyright (c) 2012 KCP Inc. All Rights Reserverd. = */
/* ====================================================================== */
/* ====================================================================== */
/* = <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> CLASS = */
/* = 인증 연동 CLASS = */
/* ====================================================================== */
class C_CT_CLI
{
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>κ<EFBFBD>
// 변수 선언 부분
var $m_dec_data;
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ <20><><EFBFBD><EFBFBD>
// 변수 초기화 영역
function mf_clear()
{
$this->m_dec_data="";
}
// hash ó<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
// hash 처리 영역
function make_hash_data( $home_dir , $str )
{
$hash_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" ,
@ -32,7 +32,7 @@ class C_CT_CLI
return $hash_data;
}
// dn_hash üũ <20>Լ<EFBFBD>
// dn_hash 체크 함수
function check_valid_hash ($home_dir , $hash_data , $str )
{
$ret_val = $this -> mf_exec( $home_dir . "/bin/ct_cli" ,
@ -46,7 +46,7 @@ class C_CT_CLI
return $ret_val;
}
// <EFBFBD><EFBFBD>ȣȭ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȣȭ
// 암호화 인증데이터 복호화
function decrypt_enc_cert ( $home_dir, $site_cd , $cert_no , $enc_cert_data , $opt)
{
$dec_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" ,
@ -62,7 +62,7 @@ class C_CT_CLI
parse_str( str_replace( chr( 31 ), "&", $dec_data ), $this->m_dec_data );
}
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> get data
// 인증데이터 get data
function mf_get_key_value( $name )
{
return $this->m_dec_data[ $name ];

View File

@ -47,11 +47,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰 본인확인</button>
<noscript>휴대폰 본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
<?php } ?>
<div id="msg_hp_certify">
<?php if ($member['mb_hp_certify']) { ?>
<div id="msg_hp_certify">
휴대폰 <strong>본인확인</strong><?php if ($member['mb_hp_certify']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
<?php } ?>
</div>
<?php } ?>
</td>
</tr>
<?php if ($req_nick) { ?>
@ -100,7 +100,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label></th>
<td><input type="text" name="mb_hp" value="<?php echo $member[mb_hp] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20"></td>
<td><input type="text" name="mb_hp" value="<?php echo $member['mb_hp'] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20"></td>
</tr>
<?php } ?>