Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -46,7 +46,7 @@ if (!isset($board['bo_mobile_content_head'])) {
|
||||
}
|
||||
|
||||
if (!isset($board['bo_use_cert'])) {
|
||||
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_use_cert` ENUM('none','cert','adult') NOT NULL DEFAULT 'none' AFTER `bo_use_email` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_use_cert` ENUM('','cert','adult') NOT NULL DEFAULT 'none' AFTER `bo_use_email` ", false);
|
||||
}
|
||||
|
||||
$required = "";
|
||||
@ -91,7 +91,6 @@ if ($w == '') {
|
||||
$board['bo_include_head'] = '_head.php';
|
||||
$board['bo_include_tail'] = '_tail.php';
|
||||
$board['bo_show_menu'] = true;
|
||||
$board['bo_use_cert'] = 'none';
|
||||
|
||||
} else if ($w == 'u') {
|
||||
|
||||
@ -555,8 +554,8 @@ $pg_anchor = '<ul class="anchor">
|
||||
<?php echo help("본인확인 여부에 따라 게시물을 조회 할 수 있도록 합니다."); ?>
|
||||
<select id="bo_use_cert" name="bo_use_cert">
|
||||
<?php
|
||||
echo option_selected("none", $board['bo_use_cert'], "사용안함");
|
||||
if ($config['cf_kcpcert_use'] != 'none') {
|
||||
echo option_selected("", $board['bo_use_cert'], "사용안함");
|
||||
if ($config['cf_kcpcert_use'] != '') {
|
||||
echo option_selected("cert", $board['bo_use_cert'], "본인확인된 회원전체");
|
||||
echo option_selected("adult", $board['bo_use_cert'], "본인확인된 성인회원만");
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ if(!isset($config['cf_kcpcert_site_cd'])) {
|
||||
|
||||
if(!isset($config['cf_kcpcert_use'])) {
|
||||
sql_query(" ALTER TABLE `{$g4['config_table']}`
|
||||
ADD `cf_kcpcert_use` ENUM('none','test','service') NOT NULL DEFAULT 'none' AFTER `cf_memo_send_point` ", TRUE);
|
||||
ADD `cf_kcpcert_use` ENUM('','test','service') NOT NULL DEFAULT 'none' AFTER `cf_memo_send_point` ", TRUE);
|
||||
}
|
||||
|
||||
if(!isset($config['cf_mobile_pages'])) {
|
||||
@ -548,7 +548,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<td>
|
||||
<?php echo help('KCP 사이트코드가 없으면 테스트만 가능합니다.') ?>
|
||||
<select name="cf_kcpcert_use" id="cf_kcpcert_use">
|
||||
<?php echo option_selected("none", $config['cf_kcpcert_use'], "사용안함"); ?>
|
||||
<?php echo option_selected("", $config['cf_kcpcert_use'], "사용안함"); ?>
|
||||
<?php echo option_selected("test", $config['cf_kcpcert_use'], "테스트"); ?>
|
||||
<?php echo option_selected("service", $config['cf_kcpcert_use'], "실서비스"); ?>
|
||||
</select>
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once('./_common.php');
|
||||
include_once("./_common.php");
|
||||
include_once(G4_LIB_PATH."/register.lib.php");
|
||||
|
||||
if ($w == 'u')
|
||||
check_demo();
|
||||
@ -13,60 +14,47 @@ if ($member['mb_password'] != sql_password($_POST['admin_password'])) {
|
||||
alert('패스워드가 다릅니다.');
|
||||
}
|
||||
|
||||
$mb_id = mysql_real_escape_string(trim($_POST['mb_id']));
|
||||
$mb_id = escape_trim($_POST['mb_id']);
|
||||
|
||||
// 핸드폰번호 체크
|
||||
$mb_hp = $_POST['mb_hp'];
|
||||
if($mb_hp) {
|
||||
$mb_hp = preg_replace("/[^0-9]/", "", $mb_hp);
|
||||
$hp_len = strlen($mb_hp);
|
||||
if($hp_len == 10) {
|
||||
$mb_hp = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $mb_hp);
|
||||
} else if($hp_len == 11) {
|
||||
$mb_hp = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $mb_hp);
|
||||
} else {
|
||||
alert('핸드폰번호를 올바르게 입력해 주십시오.');
|
||||
}
|
||||
|
||||
// 중복체크
|
||||
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_hp = '$mb_hp' and mb_id <> '$mb_id' ";
|
||||
|
||||
$row = sql_fetch($sql);
|
||||
if($row['cnt'])
|
||||
alert('다른 회원이 사용 중인 핸드폰번호입니다.');
|
||||
$result = exist_mb_hp($mb_hp, $mb_id);
|
||||
if ($result)
|
||||
alert($result);
|
||||
}
|
||||
|
||||
$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 = '$mb_hp',
|
||||
mb_zip1 = '{$_POST['mb_zip1']}',
|
||||
mb_zip2 = '{$_POST['mb_zip2']}',
|
||||
mb_addr1 = '{$_POST['mb_addr1']}',
|
||||
mb_addr2 = '{$_POST['mb_addr2']}',
|
||||
mb_birth = '{$_POST['mb_birth']}',
|
||||
mb_sex = '{$_POST['mb_sex']}',
|
||||
mb_signature = '{$_POST['mb_signature']}',
|
||||
mb_leave_date = '{$_POST['mb_leave_date']}',
|
||||
mb_intercept_date='{$_POST['mb_intercept_date']}',
|
||||
mb_memo = '{$_POST['mb_memo']}',
|
||||
mb_mailling = '{$_POST['mb_mailling']}',
|
||||
mb_sms = '{$_POST['mb_sms']}',
|
||||
mb_open = '{$_POST['mb_open']}',
|
||||
mb_profile = '{$_POST['mb_profile']}',
|
||||
mb_level = '{$_POST['mb_level']}',
|
||||
mb_1 = '{$_POST['mb_1']}',
|
||||
mb_2 = '{$_POST['mb_2']}',
|
||||
mb_3 = '{$_POST['mb_3']}',
|
||||
mb_4 = '{$_POST['mb_4']}',
|
||||
mb_5 = '{$_POST['mb_5']}',
|
||||
mb_6 = '{$_POST['mb_6']}',
|
||||
mb_7 = '{$_POST['mb_7']}',
|
||||
mb_8 = '{$_POST['mb_8']}',
|
||||
mb_9 = '{$_POST['mb_9']}',
|
||||
mb_10 = '{$_POST['mb_10']}' ";
|
||||
$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 = '$mb_hp',
|
||||
mb_zip1 = '{$_POST['mb_zip1']}',
|
||||
mb_zip2 = '{$_POST['mb_zip2']}',
|
||||
mb_addr1 = '{$_POST['mb_addr1']}',
|
||||
mb_addr2 = '{$_POST['mb_addr2']}',
|
||||
mb_birth = '{$_POST['mb_birth']}',
|
||||
mb_sex = '{$_POST['mb_sex']}',
|
||||
mb_signature = '{$_POST['mb_signature']}',
|
||||
mb_leave_date = '{$_POST['mb_leave_date']}',
|
||||
mb_intercept_date='{$_POST['mb_intercept_date']}',
|
||||
mb_memo = '{$_POST['mb_memo']}',
|
||||
mb_mailling = '{$_POST['mb_mailling']}',
|
||||
mb_sms = '{$_POST['mb_sms']}',
|
||||
mb_open = '{$_POST['mb_open']}',
|
||||
mb_profile = '{$_POST['mb_profile']}',
|
||||
mb_level = '{$_POST['mb_level']}',
|
||||
mb_1 = '{$_POST['mb_1']}',
|
||||
mb_2 = '{$_POST['mb_2']}',
|
||||
mb_3 = '{$_POST['mb_3']}',
|
||||
mb_4 = '{$_POST['mb_4']}',
|
||||
mb_5 = '{$_POST['mb_5']}',
|
||||
mb_6 = '{$_POST['mb_6']}',
|
||||
mb_7 = '{$_POST['mb_7']}',
|
||||
mb_8 = '{$_POST['mb_8']}',
|
||||
mb_9 = '{$_POST['mb_9']}',
|
||||
mb_10 = '{$_POST['mb_10']}' ";
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
|
||||
@ -52,6 +52,25 @@ if (isset($wr_id) && $wr_id) {
|
||||
alert('글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
|
||||
}
|
||||
|
||||
// 휴대폰 본인확인을 사용한다면
|
||||
if ($config['cf_kcpcert_use'] != '') {
|
||||
// 인증된 회원만 가능
|
||||
if ($board['bo_use_cert'] != '') {
|
||||
if ($is_guest) {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글 읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
|
||||
}
|
||||
|
||||
$hp_certify = substr($member['mb_hp_certify'],0,1) == '0' ? false : true;
|
||||
if ($hp_certify == false) {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글 읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G4_URL);
|
||||
}
|
||||
|
||||
if ($member['mb_adult'] != 'Y') {
|
||||
alert('이 게시판은 휴대폰 성인인증 하신 회원님만 글 읽기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 자신의 글이거나 관리자라면 통과
|
||||
if (($write['mb_id'] && $write['mb_id'] == $member['mb_id']) || $is_admin) {
|
||||
;
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
if ($is_member) {
|
||||
alert('이미 로그인중입니다.');
|
||||
@ -10,5 +11,63 @@ if (!chk_captcha()) {
|
||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||
}
|
||||
|
||||
include_once($member_skin_path.'/password_lost2.skin.php');
|
||||
$email = escape_trim($_POST['mb_email']);
|
||||
|
||||
if (!$email)
|
||||
alert_close('메일주소 오류입니다.');
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '$email' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt'] > 1)
|
||||
alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.');
|
||||
|
||||
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' ";
|
||||
$mb = sql_fetch($sql);
|
||||
if (!$mb['mb_id'])
|
||||
alert('존재하지 않는 회원입니다.');
|
||||
else if (is_admin($mb['mb_id']))
|
||||
alert('관리자 아이디는 접근 불가합니다.');
|
||||
|
||||
// 난수 발생
|
||||
srand(time());
|
||||
$change_password = rand(100000, 999999);
|
||||
$mb_lost_certify = sql_password($change_password);
|
||||
$mb_datetime = sql_password($mb['mb_datetime']);
|
||||
|
||||
$sql = " update {$g4['member_table']} set mb_lost_certify = '$mb_lost_certify' where mb_id = '{$mb['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
|
||||
$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_datetime='.$mb_datetime.'&mb_lost_certify='.$mb_lost_certify;
|
||||
|
||||
$subject = "[".$config['cf_title']."] 요청하신 회원 아이디/패스워드 정보입니다.";
|
||||
|
||||
$content = "";
|
||||
|
||||
$content .= '<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">';
|
||||
$content .= '<div style="border:1px solid #dedede">';
|
||||
$content .= '<h1 style="padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em">';
|
||||
$content .= '회원 패스워드가 변경되었습니다.';
|
||||
$content .= '</h1>';
|
||||
$content .= '<span style="display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right">';
|
||||
$content .= '<a href="'.G4_URL.'" target="_blank">'.$config['cf_title'].'</a>';
|
||||
$content .= '</span>';
|
||||
$content .= '<p style="margin:20px 0 0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em">';
|
||||
$content .= addslashes($mb['mb_name'])." (".addslashes($mb['mb_nick']).")"." 회원님은 ".G4_TIME_YMDHIS." 에 회원정보 찾기 요청을 하셨습니다.<br>";
|
||||
$content .= '저희 사이트는 관리자라도 회원님의 비밀번호를 알 수 없기 때문에, 비밀번호를 알려드리는 대신 새로운 비밀번호를 생성하여 안내 해드리고 있습니다.<br>';
|
||||
$content .= '아래에서 변경될 패스워드를 확인하신 후, <span style="color:#ff3061"><strong>패스워드 변경</strong> 링크를 클릭 하십시오.</span><br>';
|
||||
$content .= '패스워드가 변경되었다는 인증 메세지가 출력되면, 홈페이지에서 회원아이디와 변경된 패스워드를 입력하시고 로그인 하십시오.<br>';
|
||||
$content .= '로그인 후에는 정보수정 메뉴에서 새로운 패스워드로 변경해 주십시오.';
|
||||
$content .= '</p>';
|
||||
$content .= '<p style="margin:0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em">';
|
||||
$content .= '<span style="display:inline-block;width:100px">회원아이디</span> '.$mb['mb_id'].'<br>';
|
||||
$content .= '<span style="display:inline-block;width:100px">변경될 패스워드</span> <strong style="color:#ff3061">'.$change_password.'</strong>';
|
||||
$content .= '</p>';
|
||||
$content .= '<a href="'.$href.'" target="_blank" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center">패스워드 변경</a>';
|
||||
$content .= '</div>';
|
||||
$content .= '</div>';
|
||||
|
||||
$admin = get_admin('super');
|
||||
mailer($admin['mb_nick'], $admin['mb_email'], $mb['mb_email'], $subject, $content, 1);
|
||||
|
||||
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.');
|
||||
?>
|
||||
@ -96,7 +96,7 @@ CREATE TABLE IF NOT EXISTS `g4s_board` (
|
||||
`bo_notice` text NOT NULL,
|
||||
`bo_upload_count` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_email` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_cert` enum('none','cert','adult') NOT NULL DEFAULT 'none',
|
||||
`bo_use_cert` enum('','cert','adult') NOT NULL DEFAULT 'none',
|
||||
`bo_sort_field` varchar(255) NOT NULL default '',
|
||||
`bo_1_subj` varchar(255) NOT NULL default '',
|
||||
`bo_2_subj` varchar(255) NOT NULL default '',
|
||||
@ -278,7 +278,7 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
|
||||
`cf_mobile_member_skin` varchar(255) NOT NULL default'',
|
||||
`cf_gcaptcha_mp3` varchar(255) NOT NULL default'',
|
||||
`cf_kcpcert_site_cd` varchar(255) NOT NULL default '',
|
||||
`cf_kcpcert_use` tinyint(4) NOT NULL default '0',
|
||||
`cf_kcpcert_use` enum('','test','service') NOT NULL DEFAULT '',
|
||||
`cf_1_subj` varchar(255) NOT NULL default '',
|
||||
`cf_2_subj` varchar(255) NOT NULL default '',
|
||||
`cf_3_subj` varchar(255) NOT NULL default '',
|
||||
|
||||
@ -1969,4 +1969,12 @@ function html_end()
|
||||
}
|
||||
return preg_replace('#(</title>)#', "$1$stylesheet", $buffer);
|
||||
}
|
||||
|
||||
|
||||
// 휴대폰번호의 숫자만 취한 후 중간에 하이픈(-)을 넣는다.
|
||||
function hyphen_hp_number($hp)
|
||||
{
|
||||
$hp = preg_replace("/[^0-9]/", "", $hp);
|
||||
return preg_replace("/([0-9]{3})([0-9]{3,4})([0-9]{4})$/", "\\1-\\2-\\3", $hp);
|
||||
}
|
||||
?>
|
||||
@ -159,14 +159,8 @@ function valid_mb_hp($reg_mb_hp)
|
||||
function exist_mb_hp($reg_mb_hp, $reg_mb_id)
|
||||
{
|
||||
global $g4;
|
||||
$reg_mb_hp = preg_replace("/[^0-9]/", "", $reg_mb_hp);
|
||||
$len = strlen($reg_mb_hp);
|
||||
if($len == 10)
|
||||
$reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $reg_mb_hp);
|
||||
else if($len == 11)
|
||||
$reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $reg_mb_hp);
|
||||
else
|
||||
return "핸드폰번호를 올바르게 입력해 주십시오.";
|
||||
|
||||
$reg_mb_hp = hyphen_hp_number($reg_mb_hp);
|
||||
|
||||
$sql = "select count(*) as cnt from {$g4['member_table']} where mb_hp = '$reg_mb_hp' and mb_id <> '$reg_mb_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
@ -1,73 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$email = trim($_POST['mb_email']);
|
||||
|
||||
if (!$email)
|
||||
alert_close('메일주소 오류입니다.');
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '$email' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt'] > 1)
|
||||
alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.');
|
||||
|
||||
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' ";
|
||||
$mb = sql_fetch($sql);
|
||||
if (!$mb['mb_id'])
|
||||
alert('존재하지 않는 회원입니다.');
|
||||
else if (is_admin($mb['mb_id']))
|
||||
alert('관리자 아이디는 접근 불가합니다.');
|
||||
|
||||
// 난수 발생
|
||||
srand(time());
|
||||
$randval = rand(4, 6);
|
||||
|
||||
$change_password = substr(md5(get_microtime()), 0, $randval);
|
||||
|
||||
$mb_lost_certify = sql_password($change_password);
|
||||
$mb_datetime = sql_password($mb['mb_datetime']);
|
||||
|
||||
// 회원테이블에 필드를 추가
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false);
|
||||
|
||||
$sql = " update {$g4['member_table']}
|
||||
set mb_lost_certify = '$mb_lost_certify'
|
||||
where mb_id = '{$mb['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
|
||||
$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_datetime='.$mb_datetime.'&mb_lost_certify='.$mb_lost_certify;
|
||||
|
||||
$subject = "[".$config['cf_title']."] 요청하신 회원 아이디/패스워드 정보입니다.";
|
||||
|
||||
$content = "";
|
||||
|
||||
$content .= "<div style=\"margin:30px auto;width:600px;border:10px solid #f7f7f7\">";
|
||||
$content .= "<div style=\"border:1px solid #dedede\">";
|
||||
$content .= "<h1 style=\"padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em\">";
|
||||
$content .= "회원 패스워드가 변경되었습니다.";
|
||||
$content .= "</h1>";
|
||||
$content .= "<span style=\"display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right\">";
|
||||
$content .= "<a href=\"".G4_URL."\" target=\"_blank\">".$config['cf_title']."</a>";
|
||||
$content .= "</span>";
|
||||
$content .= "<p style=\"margin:20px 0 0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em\">";
|
||||
$content .= addslashes($mb['mb_name'])." (".addslashes($mb['mb_nick']).")"." 회원님은 ".G4_TIME_YMDHIS." 에 회원정보 찾기 요청을 하셨습니다.<br>";
|
||||
$content .= "저희 사이트는 관리자라도 회원님의 비밀번호를 알 수 없기 때문에, 비밀번호를 알려드리는 대신 새로운 비밀번호를 생성하여 안내 해드리고 있습니다.<br>";
|
||||
$content .= "다음에서 변경될 패스워드를 확인하신 후, <span style=\"color:#ff3061\"><strong>패스워드 변경</strong> 링크를 클릭 하십시오.</span><br>";
|
||||
$content .= "패스워드가 변경되었다는 인증 메세지가 출력되면, 홈페이지에서 회원아이디와 변경된 패스워드를 입력하시고 로그인 하십시오.<br>";
|
||||
$content .= "로그인 후에는 정보수정 메뉴에서 새 패스워드로 변경하십시오.";
|
||||
$content .= "</p>";
|
||||
$content .= "<p style=\"margin:0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em\">";
|
||||
$content .= "<span style=\"display:inline-block;width:100px\">회원아이디</span> ".$mb['mb_id']."<br>";
|
||||
$content .= "<span style=\"display:inline-block;width:100px\">변경될 패스워드</span> <strong style=\"color:#ff3061\">".$change_password."</strong>";
|
||||
$content .= "</p>";
|
||||
$content .= "<a href=\"".$href."\" target=\"_blank\" style=\"display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center\">패스워드 변경</a>";
|
||||
$content .= "</div>";
|
||||
$content .= "</div>";
|
||||
|
||||
$admin = get_admin('super');
|
||||
mailer($admin['mb_nick'], $admin['mb_email'], $mb['mb_email'], $subject, $content, 1);
|
||||
|
||||
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.');
|
||||
?>
|
||||
@ -41,7 +41,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="reg_mb_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php echo $config['cf_kcpcert_use'] ? '<span class="frm_info">이름과 휴대폰번호는 아래의 휴대폰 본인확인 기능을 사용하여 입력해 주십시오.</span>' : ''; ?>
|
||||
<?php echo ($config['cf_kcpcert_use']==-1) ? '<span class="frm_info">테스트의 경우 이동통신사는 반드시 KT를 선택해 주십시오. 나머지 항목은 임의로 입력하시면 됩니다.</span>' : ''; ?>
|
||||
<?php echo ($config['cf_kcpcert_use']=='test') ? '<span class="frm_info">테스트의 경우 이동통신사는 반드시 KT를 선택해 주십시오. 나머지 항목은 임의로 입력하시면 됩니다.</span>' : ''; ?>
|
||||
<input type="text" name="mb_name" value="<?php echo $member['mb_name'] ?>" id="reg_mb_name" class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" <?php echo $required ?> <?php echo $readonly ?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -5,13 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if ($msg = valid_mb_hp($mb_hp)) alert($msg, "", true, true);
|
||||
if ($msg = exist_mb_hp($mb_hp, $mb_id)) alert($msg, "", true, true);
|
||||
|
||||
$reg_hp = preg_replace("/[^0-9]/", "", $mb_hp);
|
||||
$hp_len = strlen($reg_hp);
|
||||
|
||||
if($hp_len == 10)
|
||||
$reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $reg_hp);
|
||||
else if($hp_len == 11)
|
||||
$reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $reg_hp);
|
||||
$reg_hp = hyphen_hp_number($mb_hp);
|
||||
|
||||
/* ======================================================================================================= */
|
||||
/* = 휴대폰인증 및 성인인증 = */
|
||||
|
||||
@ -1,26 +1,17 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
// /home/kcpcert_enc ( 서버상 bin 폴더 이전까지 경로)
|
||||
$home_dir = G4_PLUGIN_PATH.'/kcp'; // ct_cli 절대경로 ( bin 전까지 )
|
||||
// 서버상 bin 폴더 이전까지 경로
|
||||
$home_dir = G4_KCP_PATH; // ct_cli 절대경로 ( bin 전까지 )
|
||||
|
||||
// DI 를 위한 중복확인 식별 아이디
|
||||
//web_siteid 값이 없으면 KCP 에서 지정한 값으로 설정됨
|
||||
$web_siteid = '';
|
||||
|
||||
/*
|
||||
if($config['cf_kcpcert_site_cd'] && $config['cf_kcpcert_site_cd'] != 'S6186') { // 실인증
|
||||
$site_cd = $config['cf_kcpcert_site_cd'];
|
||||
$cert_url = 'https://cert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
} else { // 테스트인증
|
||||
$site_cd = 'S6186';
|
||||
$cert_url = 'https://testcert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
}
|
||||
*/
|
||||
if ($config['cf_kcpcert_use'] == 1) { // 실서비스
|
||||
if ($config['cf_kcpcert_use'] == 'service') { // 실서비스
|
||||
$site_cd = 'SM'.$config['cf_kcpcert_site_cd'];
|
||||
$cert_url = 'https://cert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
} else if ($config['cf_kcpcert_use'] == -1) { // 테스트사용
|
||||
} else if ($config['cf_kcpcert_use'] == 'test') { // 테스트사용
|
||||
$site_cd = 'S6186';
|
||||
$cert_url = 'https://testcert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
} else { // 사용안함
|
||||
|
||||
@ -163,13 +163,7 @@ else if( $cert_enc_use != "Y" )
|
||||
$ct_cert->mf_clear();
|
||||
|
||||
// 휴대폰번호 포맷변경
|
||||
$phone_no = preg_replace("/[^0-9]/", "", $phone_no);
|
||||
$hp_len = strlen($phone_no);
|
||||
|
||||
if($hp_len == 10)
|
||||
$phone_no = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $phone_no);
|
||||
else if($hp_len == 11)
|
||||
$phone_no = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $phone_no);
|
||||
$phone_no = hyphen_hp_number($phone_no);
|
||||
?>
|
||||
|
||||
<script>
|
||||
|
||||
@ -1,73 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$email = trim($_POST['mb_email']);
|
||||
|
||||
if (!$email)
|
||||
alert_close('메일주소 오류입니다.');
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '$email' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt'] > 1)
|
||||
alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.');
|
||||
|
||||
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' ";
|
||||
$mb = sql_fetch($sql);
|
||||
if (!$mb['mb_id'])
|
||||
alert('존재하지 않는 회원입니다.');
|
||||
else if (is_admin($mb['mb_id']))
|
||||
alert('관리자 아이디는 접근 불가합니다.');
|
||||
|
||||
// 난수 발생
|
||||
srand(time());
|
||||
$randval = rand(4, 6);
|
||||
|
||||
$change_password = substr(md5(get_microtime()), 0, $randval);
|
||||
|
||||
$mb_lost_certify = sql_password($change_password);
|
||||
$mb_datetime = sql_password($mb['mb_datetime']);
|
||||
|
||||
// 회원테이블에 필드를 추가
|
||||
sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false);
|
||||
|
||||
$sql = " update {$g4['member_table']}
|
||||
set mb_lost_certify = '$mb_lost_certify'
|
||||
where mb_id = '{$mb['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
|
||||
$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_datetime='.$mb_datetime.'&mb_lost_certify='.$mb_lost_certify;
|
||||
|
||||
$subject = "[".$config['cf_title']."] 요청하신 회원 아이디/패스워드 정보입니다.";
|
||||
|
||||
$content = "";
|
||||
|
||||
$content .= "<div style=\"margin:30px auto;width:600px;border:10px solid #f7f7f7\">";
|
||||
$content .= "<div style=\"border:1px solid #dedede\">";
|
||||
$content .= "<h1 style=\"padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em\">";
|
||||
$content .= "회원 패스워드가 변경되었습니다.";
|
||||
$content .= "</h1>";
|
||||
$content .= "<span style=\"display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right\">";
|
||||
$content .= "<a href=\"".G4_URL."\" target=\"_blank\">".$config['cf_title']."</a>";
|
||||
$content .= "</span>";
|
||||
$content .= "<p style=\"margin:20px 0 0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em\">";
|
||||
$content .= addslashes($mb['mb_name'])." (".addslashes($mb['mb_nick']).")"." 회원님은 ".G4_TIME_YMDHIS." 에 회원정보 찾기 요청을 하셨습니다.<br>";
|
||||
$content .= "저희 사이트는 관리자라도 회원님의 비밀번호를 알 수 없기 때문에, 비밀번호를 알려드리는 대신 새로운 비밀번호를 생성하여 안내 해드리고 있습니다.<br>";
|
||||
$content .= "다음에서 변경될 패스워드를 확인하신 후, <span style=\"color:#ff3061\"><strong>패스워드 변경</strong> 링크를 클릭 하십시오.</span><br>";
|
||||
$content .= "패스워드가 변경되었다는 인증 메세지가 출력되면, 홈페이지에서 회원아이디와 변경된 패스워드를 입력하시고 로그인 하십시오.<br>";
|
||||
$content .= "로그인 후에는 정보수정 메뉴에서 새 패스워드로 변경하십시오.";
|
||||
$content .= "</p>";
|
||||
$content .= "<p style=\"margin:0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em\">";
|
||||
$content .= "<span style=\"display:inline-block;width:100px\">회원아이디</span> ".$mb['mb_id']."<br>";
|
||||
$content .= "<span style=\"display:inline-block;width:100px\">변경될 패스워드</span> <strong style=\"color:#ff3061\">".$change_password."</strong>";
|
||||
$content .= "</p>";
|
||||
$content .= "<a href=\"".$href."\" target=\"_blank\" style=\"display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center\">패스워드 변경</a>";
|
||||
$content .= "</div>";
|
||||
$content .= "</div>";
|
||||
|
||||
$admin = get_admin('super');
|
||||
mailer($admin['mb_nick'], $admin['mb_email'], $mb['mb_email'], $subject, $content, 1);
|
||||
|
||||
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.');
|
||||
?>
|
||||
@ -41,10 +41,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php/* if ($w=='') { echo "<span class=\"frm_info\">공백없이 한글만 입력하세요.</span>"; } */ ?>
|
||||
<?php /* if ($w=='') { echo "<span class=\"frm_info\">공백없이 한글만 입력하세요.</span>"; } */ ?>
|
||||
<?php echo $config['cf_kcpcert_use'] ? '<span class="frm_info">이름과 휴대폰번호는 아래의 휴대폰 본인확인 기능을 사용하여 입력해 주십시오.</span>' : ''; ?>
|
||||
<?php echo ($config['cf_kcpcert_use']==-1) ? '<span class="frm_info">테스트의 경우 이동통신사는 반드시 KT를 선택해 주십시오. 나머지 항목은 임의로 입력하시면 됩니다.</span>' : ''; ?>
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($config['cf_kcpcert_use']||$w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
|
||||
<?php echo ($config['cf_kcpcert_use']=='test') ? '<span class="frm_info">테스트의 경우 이동통신사는 반드시 KT를 선택해 주십시오. 나머지 항목은 임의로 입력하시면 됩니다.</span>' : ''; ?>
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($config['cf_kcpcert_use']!='none'||$w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($req_nick) { ?>
|
||||
|
||||
Reference in New Issue
Block a user