Merge branch 'inicis-cert-sa' of https://github.com/seeoya/gnuboard5 into inicis-cert-sa

Conflicts:
	adm/config_form.php
This commit is contained in:
seeoya
2021-09-15 12:21:46 +09:00
59 changed files with 2693 additions and 920 deletions

View File

@ -1,5 +1,17 @@
password_reset.php<br>
- skin/member/basic/password_reset.skin.php<br>
- mobile/skin/member/basic/password_reset.skin.php<br>
- theme/basic/skin/member/basic/password_reset.skin.php<br>
- theme/basic/mobile/skin/member/basic/password_reset.skin.php
<?php
include_once('./_common.php');
//include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
if ($is_member) { alert("이미 로그인중입니다."); goto_url(G5_URL); }
if(!$_POST['mb_id']) { alert("잘못된 접근입니다."); goto_url(G5_URL); }
if($config['cf_cert_find'] != 1) alert("본인인증을 이용하여 아이디/비밀번호 찾기를 할 수 없습니다. 관리자에게 문의 하십시오.");
$g5['title'] = '패스워드 변경';
include_once(G5_PATH.'/_head.php');
$action_url = G5_HTTPS_BBS_URL."/password_reset_update.php";
include_once($member_skin_path.'/password_reset.skin.php');
include_once(G5_PATH.'/_tail.php');

View File

@ -0,0 +1,28 @@
<?php
include_once('./_common.php');
global $g5;
$_POST['mb_id'];
if($w == '')
$mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : '';
else
alert('잘못된 접근입니다', G5_URL);
if(!$mb_id)
alert('회원아이디 값이 없습니다. 올바른 방법으로 이용해 주십시오.');
$mb_password = isset($_POST['mb_password']) ? trim($_POST['mb_password_re']) : '';
$mb_password_re = isset($_POST['mb_password_re']) ? trim($_POST['mb_password_re']) : '';
if ($w == '' && !$mb_password)
alert('비밀번호가 넘어오지 않았습니다.');
if($w == '' && $mb_password != $mb_password_re)
alert('비밀번호가 일치하지 않습니다.');
$sql_password = "";
if ($mb_password)
$sql_password = "mb_password = '".get_encrypt_string($mb_password)."' ";
sql_fetch("update {$g5['member_table']} set {$sql_password} where mb_id = '{$mb_id}'");
goto_url(G5_BBS_URL.'/login.php');

View File

@ -110,7 +110,7 @@ if ($w == '' || $w == 'u') {
if ($msg = prohibit_mb_email($mb_email))alert($msg, "", true, true);
// 휴대폰 필수입력일 경우 휴대폰번호 유효성 체크
if (($config['cf_use_hp'] || $config['cf_cert_hp']) && $config['cf_req_hp']) {
if ($config['cf_use_hp'] || ($config['cf_cert_hp'] || $config['cf_cert_sa']) && $config['cf_req_hp']) {
if ($msg = valid_mb_hp($mb_hp)) alert($msg, "", true, true);
}