사용자: 멤버스킨 basic kcpcert 동기화

This commit is contained in:
whitedot
2013-03-13 16:49:11 +09:00
parent 639e2eba42
commit 8078e36e06
24 changed files with 213 additions and 161 deletions

View File

@ -19,16 +19,16 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<? if (!$is_member) { ?>
<tr>
<th scope="row"><label for="fnick">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="fnick" name="fnick" required class="frm_input required"></td>
<td><input type="text"name="fnick" id="fnick" required class="frm_input required"></td>
</tr>
<tr>
<th scope="row"><label for="fmail">E-mail<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="fmail" name="fmail" required class="frm_input required"></td>
<td><input type="text" name="fmail" id="fmail" required class="frm_input required"></td>
</tr>
<? } ?>
<tr>
<th scope="row"><label for="subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="subject" name="subject" required class="frm_input required"></td>
<td><input type="text" name="subject" id="subject" required class="frm_input required"></td>
</tr>
<tr>
<th scope="row">형식</th>
@ -44,7 +44,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row"><label for="file1">첨부 1</label></th>
<td><input type="file" name="file1" id="file1" class="frm_input"></td>
<td><input type="file"name="file1" id="file1" class="frm_input"></td>
</tr>
<tr>
<th scope="row"><label for="file2">첨부 2</label></th>

View File

@ -10,9 +10,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<fieldset class="cbg">
<label for="login_id" class="login_id">회원아이디<strong class="sound_only">필수</strong></label>
<input type="text" name="mb_id" id="login_id" required class="required fs_input" size="20" maxLength="20">
<input type="text" name="mb_id" id="login_id" required class="frm_input required" size="20" maxLength="20">
<label for="login_pw" class="login_pw">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" name="mb_password" id="login_pw" required class="required fs_input" size="20" maxLength="20">
<input type="password" name="mb_password" id="login_pw" required class="frm_input required" size="20" maxLength="20">
<input type="submit" value="로그인" class="btn_submit">
<input type="checkbox" name="auto_login" id="login_auto_login">
<label for="login_auto_login">자동로그인</label>

View File

@ -32,8 +32,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</div>
<script>
document.onload = document.fmemberconfirm.mb_password.focus();
function fmemberconfirm_submit(f)
{
document.getElementById("btn_submit").disabled = true;

View File

@ -26,7 +26,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><div><?=$list[$i]['name']?></div></td>
<td><?=$list[$i]['name']?></td>
<td class="td_datetime"><a href="<?=$list[$i]['view_href']?>"><?=$list[$i]['send_datetime']?></font></td>
<td class="td_datetime"><a href="<?=$list[$i]['view_href']?>"><?=$list[$i]['read_datetime']?></font></td>
<td class="td_mng"><a href="<?=$list[$i]['del_href']?>" onclick="del(this.href); return false;">삭제</a></td>

View File

@ -12,7 +12,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</ul>
<div class="cbox">
<form name="fmemoform" action="./memo_form_update.php" onsubmit="return fmemoform_submit(this);"method="post" autocomplete="off">
<form name="fmemoform" action="./memo_form_update.php" onsubmit="return fmemoform_submit(this);" method="post" autocomplete="off">
<table class="frm_tbl">
<caption>쪽지쓰기</caption>
<tbody>
@ -25,7 +25,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row"><label for="me_memo">내용</label></th>
<td><textarea name="me_memo" id="me_memo" required><?=$content?></textarea></td>
<td><textarea name="me_memo" id="me_memo" required class="required"><?=$content?></textarea></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>

View File

@ -32,9 +32,9 @@ else $g4['title'] = $g4['title'];
<input type="hidden" name="page" value="<?=$page?>">
<fieldset>
<label for="password_wr_password">패스워드<strong class="sound_only">필수</strong></label>
<label for="pw_wr_password">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" name="wr_password" id="password_wr_password" required class="fs_input required" size="15" maxLength="20">
<input type="submit" class="fs_submit" value="확인">
<input type="submit" value="확인" class="fs_submit">
</fieldset>
</form>
@ -43,7 +43,3 @@ else $g4['title'] = $g4['title'];
</div>
</div>
<script>
document.fboardpassword.wr_password.focus();
</script>

View File

@ -2,7 +2,9 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<form name="fregister" id="fregister" action="<?=$register_action_url?>" onsubmit="return fregister_submit(this);" method="POST" autocomplete="off">
<form name="fregister" id="fregister" action="<?=$register_action_url?>" onsubmit="return fregister_submit(this);" method="POST" autocomplete="off">
<p>회원가입약관 및 개인정보수집이용안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.</p>
<section id="fregister_term">
<h2>회원가입약관</h2>
@ -23,8 +25,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</section>
<div class="btn_confirm">
<p>회원가입약관 및 개인정보수집이용안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.</p>
<input type="submit" value="회원가입" class="btn_submit">
<input type="submit" class="btn_submit" value="회원가입">
</div>
</form>

View File

@ -1,54 +1,5 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
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);
/* ======================================================================================================= */
/* = 휴대폰인증 및 성인인증 = */
/* ======================================================================================================= */
if($w == '') {
// 본인인증체크
$kcpcert_no = trim($_POST['kcpcert_no']);
if(!$kcpcert_no)
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', "", true, true);
// 본인인증 hash 체크
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
if(get_session('ss_kcpcert_hash') != $reg_hash)
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
// 성인인증을 사용한다면
if($config['cf_adult_check']) {
if(get_session('ss_adult_check') != 'Y')
alert('성인인증이 되지 않았습니다. 다음에 다시 가입해 주세요.', "", true, true);
}
} else if($w == 'u') {
// 휴대폰번호 변경체크
$old_hp = preg_replace("/[^0-9]/", "", $_POST['old_mb_hp']);
if($old_hp != $reg_hp) {
// 본인인증체크
$kcpcert_no = trim($_POST['kcpcert_no']);
if(!$kcpcert_no)
alert('휴대폰번호가 변경됐습니다. 휴대폰인증을 해주세요.', "", true, true);
// 본인인증 hash 체크
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
if(get_session('ss_kcpcert_hash') != $reg_hash)
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
}
}
/* ======================================================================================================= */
?>
?>

View File

@ -1,28 +1,5 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
// 휴대폰번호 포맷(010-0000-0000) 변경해서 기록
// $reg_mb_hp 는 rigister_form_update.head.skin.php 파일
$sql = " update {$g4['member_table']}
set mb_hp = '$reg_mb_hp'
where mb_id = '$mb_id' ";
sql_query($sql);
/* =========================================================================== */
/* = 휴대폰인증 및 성인인증 = */
/* =========================================================================== */
if($_POST['kcpcert_no']) {
$mb_adult = 'N';
if(get_session('ss_adult_check') == 'Y')
$mb_adult = 'Y';
$sql = " update {$g4['member_table']}
set mb_hp_certify = '{$_POST['kcpcert_time']}',
mb_adult = '$mb_adult'
where mb_id = '$mb_id' ";
sql_query($sql);
}
/* =========================================================================== */
?>

View File

@ -19,7 +19,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="wr_content">댓글</label></th>
<td><textarea name="wr_content" id="wr_content"></textarea></td>
</tr>
</tr>
</tbody>
</table>
@ -28,7 +28,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</p>
<div class="btn_win">
<input type="submit" value="스크랩" class="btn_submit">
<input type="submit" value="스크랩 확인" class="btn_submit">
</div>
</form>
</div>

View File

@ -14,7 +14,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<fieldset>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" name="addr1" value="<?=$addr1?>" id="addr1" required class="fs_input" minlength="2">
<input type="text" name="addr1" value="<?=$addr1?>" id="addr1" required class="required fs_input" minlength="2">
<input type="submit" value="검색" class="fs_submit">
</fieldset>