회원정보수정시 경로 오류 해결
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
define('G4_CAPTCHA', 1);
|
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||||
include_once(G4_PATH.'/lib/register.lib.php');
|
include_once(G4_PATH.'/lib/register.lib.php');
|
||||||
|
|
||||||
// 불법접근을 막도록 토큰생성
|
// 불법접근을 막도록 토큰생성
|
||||||
@ -108,9 +108,10 @@ $mb_icon = G4_PATH.'/data/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_
|
|||||||
include_once('./_head.php');
|
include_once('./_head.php');
|
||||||
|
|
||||||
if ($g4['https_url'])
|
if ($g4['https_url'])
|
||||||
$register_action_url = "{$g4['https_url']}/{$g4['bbs']}/register_form_update.php";
|
//$register_action_url = "{$g4['https_url']}/{$g4['bbs']}/register_form_update.php";
|
||||||
|
$register_action_url = G4_BBS_URL.'/register_form_update.php';
|
||||||
else
|
else
|
||||||
$register_action_url = "{$g4['url']}/{$g4['bbs']}/register_form_update.php";
|
$register_action_url = G4_BBS_URL.'/register_form_update.php';
|
||||||
|
|
||||||
$req_nick = !isset($member['mb_nick_date']) || (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400)));
|
$req_nick = !isset($member['mb_nick_date']) || (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400)));
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
define('G4_CAPTCHA', 1);
|
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||||
include_once(G4_PATH.'/lib/register.lib.php');
|
include_once(G4_PATH.'/lib/register.lib.php');
|
||||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||||
|
|
||||||
@ -307,23 +307,23 @@ if ($w == '') {
|
|||||||
|
|
||||||
|
|
||||||
// 사용자 코드 실행
|
// 사용자 코드 실행
|
||||||
@include_once (G4_PATH.'/skin/member/'.$config['cf_member_skin'].'/register_update.skin.php');
|
@include_once ($member_skin_path.'/register_update.skin.php');
|
||||||
|
|
||||||
|
|
||||||
if ($msg)
|
if ($msg)
|
||||||
echo '<script>alert(\''.$msg.'\');</script>';
|
echo '<script>alert(\''.$msg.'\');</script>';
|
||||||
|
|
||||||
if ($w == "") {
|
if ($w == "") {
|
||||||
goto_url($g4['bbs_url'].'/register_result.php');
|
goto_url(G4_BBS_URL.'/register_result.php');
|
||||||
} else if ($w == 'u') {
|
} else if ($w == 'u') {
|
||||||
$row = sql_fetch(" select mb_password from {$g4['member_table']} where mb_id = '{$member[mb_id]}' ");
|
$row = sql_fetch(" select mb_password from {$g4['member_table']} where mb_id = '{$member[mb_id]}' ");
|
||||||
$tmp_password = $row['mb_password'];
|
$tmp_password = $row['mb_password'];
|
||||||
|
|
||||||
if ($old_email != $mb_email && $config['cf_use_email_certify']) {
|
if ($old_email != $mb_email && $config['cf_use_email_certify']) {
|
||||||
set_session("ss_mb_id", "");
|
set_session("ss_mb_id", "");
|
||||||
alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', G4_PATH);
|
alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', G4_URL);
|
||||||
} else {
|
} else {
|
||||||
alert('회원 정보가 수정 되었습니다.', $g4['url']);
|
alert('회원 정보가 수정 되었습니다.', G4_URL);
|
||||||
/*
|
/*
|
||||||
echo '
|
echo '
|
||||||
<html><title>회원정보수정</title><meta http-equiv="Content-Type" content="text/html; charset=$g4[charset]"></html><body>
|
<html><title>회원정보수정</title><meta http-equiv="Content-Type" content="text/html; charset=$g4[charset]"></html><body>
|
||||||
|
|||||||
@ -1429,18 +1429,10 @@ function check_string($str, $options)
|
|||||||
|
|
||||||
// 한글
|
// 한글
|
||||||
if ($oc >= 0xA0 && $oc <= 0xFF) {
|
if ($oc >= 0xA0 && $oc <= 0xFF) {
|
||||||
if (strtoupper($g4['charset']) == 'UTF-8') {
|
if ($options & G4_HANGUL) {
|
||||||
if ($options & G4_HANGUL) {
|
$s .= $c . $str[$i+1] . $str[$i+2];
|
||||||
$s .= $c . $str[$i+1] . $str[$i+2];
|
|
||||||
}
|
|
||||||
$i+=2;
|
|
||||||
} else {
|
|
||||||
// 한글은 2바이트 이므로 문자하나를 건너뜀
|
|
||||||
$i++;
|
|
||||||
if ($options & G4_HANGUL) {
|
|
||||||
$s .= $c . $str[$i];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
$i+=2;
|
||||||
}
|
}
|
||||||
// 숫자
|
// 숫자
|
||||||
else if ($oc >= 0x30 && $oc <= 0x39) {
|
else if ($oc >= 0x30 && $oc <= 0x39) {
|
||||||
|
|||||||
@ -206,7 +206,7 @@ var member_skin_path = "<?=$member_skin_path?>";
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="btn_confirm">
|
<div class="btn_confirm">
|
||||||
<input type="submit" class="btn_submit" value="회원가입" accesskey="s">
|
<input type="submit" class="btn_submit" value="<?=$w==''?'회원가입':'정보수정';?>" accesskey="s">
|
||||||
<a href="<?=$g4['path']?>/" class="btn_cancel">취소</a>
|
<a href="<?=$g4['path']?>/" class="btn_cancel">취소</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user