회원정보수정시 경로 오류 해결

This commit is contained in:
gnuboard
2013-01-30 16:18:36 +09:00
parent 24a5ac23d6
commit 9c34f21f39
4 changed files with 13 additions and 20 deletions

View File

@ -1,6 +1,6 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.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');
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
$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)));

View File

@ -1,6 +1,6 @@
<?
define('G4_CAPTCHA', 1);
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/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)
echo '<script>alert(\''.$msg.'\');</script>';
if ($w == "") {
goto_url($g4['bbs_url'].'/register_result.php');
goto_url(G4_BBS_URL.'/register_result.php');
} else if ($w == 'u') {
$row = sql_fetch(" select mb_password from {$g4['member_table']} where mb_id = '{$member[mb_id]}' ");
$tmp_password = $row['mb_password'];
if ($old_email != $mb_email && $config['cf_use_email_certify']) {
set_session("ss_mb_id", "");
alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', G4_PATH);
alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', G4_URL);
} else {
alert('회원 정보가 수정 되었습니다.', $g4['url']);
alert('회원 정보가 수정 되었습니다.', G4_URL);
/*
echo '
<html><title>회원정보수정</title><meta http-equiv="Content-Type" content="text/html; charset=$g4[charset]"></html><body>

View File

@ -1429,18 +1429,10 @@ function check_string($str, $options)
// 한글
if ($oc >= 0xA0 && $oc <= 0xFF) {
if (strtoupper($g4['charset']) == 'UTF-8') {
if ($options & G4_HANGUL) {
$s .= $c . $str[$i+1] . $str[$i+2];
}
$i+=2;
} else {
// 한글은 2바이트 이므로 문자하나를 건너뜀
$i++;
if ($options & G4_HANGUL) {
$s .= $c . $str[$i];
}
if ($options & G4_HANGUL) {
$s .= $c . $str[$i+1] . $str[$i+2];
}
$i+=2;
}
// 숫자
else if ($oc >= 0x30 && $oc <= 0x39) {

View File

@ -206,7 +206,7 @@ var member_skin_path = "<?=$member_skin_path?>";
</table>
<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>
</div>
</form>