스킨 파일 정리
This commit is contained in:
@ -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메일을 확인하여 주십시오.');
|
||||
?>
|
||||
@ -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메일을 확인하여 주십시오.');
|
||||
?>
|
||||
@ -2,17 +2,17 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<script src="<?php echo G4_JS_URL ?>/jquery.register_form.js"></script>
|
||||
<script src="<?php echo G4_JS_URL; ?>/jquery.register_form.js"></script>
|
||||
|
||||
<form name="fregisterform" id="fregisterform" action="<?php echo $register_action_url ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
|
||||
<input type="hidden" name="agree" value="<?php echo $agree ?>">
|
||||
<input type="hidden" name="agree2" value="<?php echo $agree2 ?>">
|
||||
<?php if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?php echo $member['mb_sex'] ?>"><?php } ?>
|
||||
<form name="fregisterform" id="fregisterform" action="<?php echo $register_action_url; ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode; ?>">
|
||||
<input type="hidden" name="agree" value="<?php echo $agree; ?>">
|
||||
<input type="hidden" name="agree2" value="<?php echo $agree2; ?>">
|
||||
<?php if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?php echo $member['mb_sex']; ?>"><?php } ?>
|
||||
<?php if (isset($member['mb_nick_date']) && $member['mb_nick_date'] > date("Y-m-d", G4_SERVER_TIME - ($config['cf_nick_modify'] * 86400))) { // 별명수정일이 지나지 않았다면 ?>
|
||||
<input type="hidden" name="mb_nick_default" value="<?php echo $member['mb_nick'] ?>">
|
||||
<input type="hidden" name="mb_nick" value="<?php echo $member['mb_nick'] ?>">
|
||||
<input type="hidden" name="mb_nick_default" value="<?php echo $member['mb_nick']; ?>">
|
||||
<input type="hidden" name="mb_nick" value="<?php echo $member['mb_nick']; ?>">
|
||||
<?php } ?>
|
||||
|
||||
<table class="frm_tbl">
|
||||
@ -21,17 +21,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="reg_mb_id">아이디<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<span class="frm_info">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
|
||||
<input type="text" name="mb_id" value="<?php echo $member['mb_id'] ?>" id="reg_mb_id" class="frm_input minlength_3 <?php echo $required ?> <?php echo $readonly ?>" maxlength="20" <?php echo $required ?> <?php echo $readonly ?>>
|
||||
<input type="text" name="mb_id" value="<?php echo $member['mb_id']; ?>" id="reg_mb_id" class="frm_input minlength_3 <?php echo $required; ?> <?php echo $readonly; ?>" maxlength="20" <?php echo $required; ?> <?php echo $readonly; ?>>
|
||||
<span id="msg_mb_id"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_password">패스워드<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="password" name="mb_password" id="reg_mb_password" class="frm_input minlength_3 <?php echo $required ?>" maxlength="20" <?php echo $required ?>></td>
|
||||
<td><input type="password" name="mb_password" id="reg_mb_password" class="frm_input minlength_3 <?php echo $required; ?>" maxlength="20" <?php echo $required; ?>></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_password_re">패스워드 확인<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="password" name="mb_password_re" id="reg_mb_password_re" class="frm_input minlength_3 <?php echo $required ?>" maxlength="20" <?php echo $required ?>></td>
|
||||
<td><input type="password" name="mb_password_re" id="reg_mb_password_re" class="frm_input minlength_3 <?php echo $required; ?>" maxlength="20" <?php echo $required; ?>></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -43,7 +43,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($w=="u" && $config['cf_kcpcert_use']) { ?>
|
||||
<span class="frm_info">휴대폰 본인확인 후에는 이름과 휴대폰번호가 자동 입력되며 수동으로 입력할수 없게 됩니다.</span>
|
||||
<?php } ?>
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name']; ?>" <?php echo $required; ?> <?php if ($w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required; ?> <?php echo $readonly; ?>" size="10">
|
||||
<?php if ($w=="u" && $config['cf_kcpcert_use']) { ?>
|
||||
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰 본인확인</button>
|
||||
<noscript>휴대폰 본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
|
||||
@ -61,7 +61,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<td>
|
||||
<span class="frm_info">
|
||||
공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br>
|
||||
별명을 바꾸시면 앞으로 <?php echo (int)$config['cf_nick_modify'] ?>일 이내에는 변경 할 수 없습니다.
|
||||
별명을 바꾸시면 앞으로 <?php echo (int)$config['cf_nick_modify']; ?>일 이내에는 변경 할 수 없습니다.
|
||||
</span>
|
||||
<input type="hidden" name="mb_nick_default" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>">
|
||||
<input type="text" name="mb_nick" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>" id="reg_mb_nick" required class="frm_input required nospace" maxlength="20">
|
||||
@ -79,7 +79,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<input type="hidden" name="old_email" value="<?php echo $member['mb_email'] ?>">
|
||||
<input type="hidden" name="old_email" value="<?php echo $member['mb_email']; ?>">
|
||||
<input type="text" name="mb_email" value='<?php echo isset($member['mb_email'])?$member['mb_email']:''; ?>' <?php echo $config['cf_use_email_certify']?"required":""; ?> id="reg_mb_email" class="frm_input email <?php echo $config['cf_use_email_certify']?"required":""; ?>" maxlength="100">
|
||||
</td>
|
||||
</tr>
|
||||
@ -101,7 +101,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($config['cf_use_hp']) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label></th>
|
||||
<td><input type="text" name="mb_hp" value="<?php echo $member[mb_hp] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20"></td>
|
||||
<td><input type="text" name="mb_hp" value="<?php echo $member['mb_hp'] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -113,18 +113,18 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</th>
|
||||
<td>
|
||||
<label for="reg_mb_zip1" class="sound_only">우편번호 앞자리<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
|
||||
<input type="text" name="mb_zip1" value="<?php echo $member['mb_zip1'] ?>" id="reg_mb_zip1" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="3" maxlength="3">
|
||||
<input type="text" name="mb_zip1" value="<?php echo $member['mb_zip1']; ?>" id="reg_mb_zip1" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="3" maxlength="3">
|
||||
-
|
||||
<label for="reg_mb_zip2" class="sound_only">우편번호 뒷자리<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
|
||||
<input type="text" name="mb_zip2" value="<?php echo $member['mb_zip2'] ?>" id="reg_mb_zip2" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="3" maxlength="3">
|
||||
<input type="text" name="mb_zip2" value="<?php echo $member['mb_zip2']; ?>" id="reg_mb_zip2" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="3" maxlength="3">
|
||||
<span id="reg_win_zip" style="display:block"></span>
|
||||
<label for="reg_mb_addr1" class="sound_only">주소<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
|
||||
<input type="text" name="mb_addr1" value="<?php echo $member['mb_addr1'] ?>" id="reg_mb_addr1" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input frm_address <?php echo $config['cf_req_addr']?"required":""; ?>" size="50">
|
||||
<input type="text" name="mb_addr1" value="<?php echo $member['mb_addr1']; ?>" id="reg_mb_addr1" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input frm_address <?php echo $config['cf_req_addr']?"required":""; ?>" size="50">
|
||||
<label for="reg_mb_addr2" class="sound_only">상세주소<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
|
||||
<input type="text" name="mb_addr2" value="<?php echo $member['mb_addr2'] ?>" id="reg_mb_addr2" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input frm_address <?php echo $config['cf_req_addr']?"required":""; ?>" size="50">
|
||||
<input type="text" name="mb_addr2" value="<?php echo $member['mb_addr2']; ?>" id="reg_mb_addr2" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input frm_address <?php echo $config['cf_req_addr']?"required":""; ?>" size="50">
|
||||
<script>
|
||||
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
|
||||
$('<a href="<?php echo G4_BBS_URL ?>/zip.php?frm_name=fregisterform&frm_zip1=mb_zip1&frm_zip2=mb_zip2&frm_addr1=mb_addr1&frm_addr2=mb_addr2" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#reg_win_zip');
|
||||
$('<a href="<?php echo G4_BBS_URL; ?>/zip.php?frm_name=fregisterform&frm_zip1=mb_zip1&frm_zip2=mb_zip2&frm_addr1=mb_addr1&frm_addr2=mb_addr2" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#reg_win_zip');
|
||||
$("#reg_win_zip").css("display", "inline");
|
||||
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr('readonly', 'readonly');
|
||||
</script>
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($config['cf_kcpcert_use']) {
|
||||
include_once(G4_KCPCERT_PATH.'/kcpcert.head.skin.php');
|
||||
}
|
||||
?>
|
||||
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($config['cf_kcpcert_use']) {
|
||||
include_once(G4_KCPCERT_PATH.'/kcpcert.tail.skin.php');
|
||||
}
|
||||
?>
|
||||
@ -2,14 +2,14 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="reg_result">
|
||||
|
||||
<div id="reg_result_logo"><img src="<?php echo $member_skin_url ?>/img/reg_result_logo.jpg" alt=""></div>
|
||||
<div id="reg_result_logo"><img src="<?php echo $member_skin_url; ?>/img/reg_result_logo.jpg" alt=""></div>
|
||||
|
||||
<p>
|
||||
<strong><?php echo $mb['mb_name'] ?></strong>님의 회원가입을 진심으로 축하합니다.<br>
|
||||
<strong><?php echo $mb['mb_name']; ?></strong>님의 회원가입을 진심으로 축하합니다.<br>
|
||||
</p>
|
||||
|
||||
<?php if ($config['cf_use_email_certify']) { ?>
|
||||
@ -19,9 +19,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</p>
|
||||
<div id="reg_result_email">
|
||||
<span>아이디</span>
|
||||
<strong><?php echo $mb['mb_id'] ?></strong><br>
|
||||
<strong><?php echo $mb['mb_id']; ?></strong><br>
|
||||
<span>이메일 주소</span>
|
||||
<strong><?php echo $mb['mb_email'] ?></strong>
|
||||
<strong><?php echo $mb['mb_email']; ?></strong>
|
||||
</div>
|
||||
<p>
|
||||
이메일 주소를 잘못 입력하셨다면, 사이트 관리자에게 문의해주시기 바랍니다.
|
||||
@ -39,7 +39,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</p>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<a href="<?php echo G4_URL ?>/" class="btn02">메인으로</a>
|
||||
<a href="<?php echo G4_URL; ?>/" class="btn02">메인으로</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="scrap" class="new_win">
|
||||
<h1><?php echo $g4['title'] ?></h1>
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<caption>스크랩 목록</caption>
|
||||
@ -19,8 +19,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<tbody>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td class="td_board"><a href="<?php echo $list[$i]['opener_href'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href'] ?>'; return false;"><?php echo $list[$i]['bo_subject'] ?></a></td>
|
||||
<td><a href="<?php echo $list[$i]['opener_href_wr_id'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href_wr_id'] ?>'; return false;"><?php echo $list[$i]['subject'] ?></a></td>
|
||||
<td class="td_board"><a href="<?php echo $list[$i]['opener_href']; ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href']; ?>'; return false;"><?php echo $list[$i]['bo_subject']; ?></a></td>
|
||||
<td><a href="<?php echo $list[$i]['opener_href_wr_id']; ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href_wr_id']; ?>'; return false;"><?php echo $list[$i]['subject']; ?></a></td>
|
||||
<td class="td_mng"><a href="<?php echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -2,21 +2,21 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="scrap_do" class="new_win">
|
||||
<h1>스크랩하기</h1>
|
||||
|
||||
<form name="f_scrap_popin" action="./scrap_popin_update.php" method="post">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<caption>제목 확인 및 댓글 쓰기</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">제목</th>
|
||||
<td><?php echo get_text(cut_str($write['wr_subject'], 255)) ?></td>
|
||||
<td><?php echo get_text(cut_str($write['wr_subject'], 255)); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_content">댓글</label></th>
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="post_code" class="new_win">
|
||||
<h1><?php echo $g4['title'] ?></h1>
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
|
||||
<form name="fzip" method="get" autocomplete="off">
|
||||
<input type="hidden" name="frm_name" value="<?php echo $frm_name ?>">
|
||||
<input type="hidden" name="frm_zip1" value="<?php echo $frm_zip1 ?>">
|
||||
<input type="hidden" name="frm_zip2" value="<?php echo $frm_zip2 ?>">
|
||||
<input type="hidden" name="frm_addr1" value="<?php echo $frm_addr1 ?>">
|
||||
<input type="hidden" name="frm_addr2" value="<?php echo $frm_addr2 ?>">
|
||||
<input type="hidden" name="frm_name" value="<?php echo $frm_name; ?>">
|
||||
<input type="hidden" name="frm_zip1" value="<?php echo $frm_zip1; ?>">
|
||||
<input type="hidden" name="frm_zip2" value="<?php echo $frm_zip2; ?>">
|
||||
<input type="hidden" name="frm_addr1" value="<?php echo $frm_addr1; ?>">
|
||||
<input type="hidden" name="frm_addr2" value="<?php echo $frm_addr2; ?>">
|
||||
|
||||
<fieldset>
|
||||
<input type="text" name="addr1" value="<?php echo $addr1 ?>" id="addr1" placeholder="동/읍/면/리(필수)" required class="frm_input" minlength=2>
|
||||
<input type="text" name="addr1" value="<?php echo $addr1; ?>" id="addr1" placeholder="동/읍/면/리(필수)" required class="frm_input" minlength=2>
|
||||
<input type="submit" class="btn_submit" value="검색">
|
||||
</fieldset>
|
||||
|
||||
@ -32,7 +32,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<dd>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li><a href='javascript:;' onclick="find_zip('<?php echo $list[$i]['zip1'] ?>', '<?php echo $list[$i]['zip2'] ?>', '<?php echo $list[$i]['addr'] ?>');"><span class="post_code"><?php echo $list[$i]['zip1'] ?>-<?php echo $list[$i]['zip2'] ?></span> <?php echo $list[$i]['addr'] ?> <?php echo $list[$i]['bunji'] ?></a></li>
|
||||
<li><a href='javascript:;' onclick="find_zip('<?php echo $list[$i]['zip1']; ?>', '<?php echo $list[$i]['zip2']; ?>', '<?php echo $list[$i]['addr']; ?>');"><span class="post_code"><?php echo $list[$i]['zip1']; ?>-<?php echo $list[$i]['zip2']; ?></span> <?php echo $list[$i]['addr']; ?> <?php echo $list[$i]['bunji']; ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
<?
|
||||
$g4_path = "../../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
?>
|
||||
@ -1,72 +0,0 @@
|
||||
<?
|
||||
include_once("./_common.php");
|
||||
|
||||
if (!function_exists('convert_charset'))
|
||||
{
|
||||
/*
|
||||
-----------------------------------------------------------
|
||||
Charset 을 변환하는 함수
|
||||
-----------------------------------------------------------
|
||||
iconv 함수가 있으면 iconv 로 변환하고
|
||||
없으면 mb_convert_encoding 함수를 사용한다.
|
||||
둘다 없으면 사용할 수 없다.
|
||||
*/
|
||||
function convert_charset($from_charset, $to_charset, $str)
|
||||
{
|
||||
|
||||
if( function_exists('iconv') )
|
||||
return iconv($from_charset, $to_charset, $str);
|
||||
elseif( function_exists('mb_convert_encoding') )
|
||||
return mb_convert_encoding($str, $to_charset, $from_charset);
|
||||
else
|
||||
die("Not found 'iconv' or 'mbstring' library in server.");
|
||||
}
|
||||
}
|
||||
|
||||
header("Content-Type: text/html; charset=$g4[charset]");
|
||||
|
||||
$subject = strtolower($_POST['subject']);
|
||||
$content = strtolower(strip_tags($_POST['content']));
|
||||
|
||||
//euc-kr 일 경우 $config['cf_filter'] 를 utf-8로 변환한다.
|
||||
if (strtolower($g4[charset]) == 'euc-kr')
|
||||
{
|
||||
//$subject = convert_charset('utf-8', 'cp949', $subject);
|
||||
//$content = convert_charset('utf-8', 'cp949', $content);
|
||||
$config['cf_filter'] = convert_charset('cp949', 'utf-8', $config['cf_filter']);
|
||||
}
|
||||
|
||||
//$filter = explode(",", strtolower(trim($config['cf_filter'])));
|
||||
// strtolower 에 의한 한글 변형으로 아래 코드로 대체 (곱슬최씨님이 알려 주셨습니다.)
|
||||
$filter = explode(",", trim($config['cf_filter']));
|
||||
for ($i=0; $i<count($filter); $i++)
|
||||
{
|
||||
$str = $filter[$i];
|
||||
|
||||
// 제목 필터링 (찾으면 중지)
|
||||
$subj = "";
|
||||
$pos = strpos($subject, $str);
|
||||
if ($pos !== false)
|
||||
{
|
||||
if (strtolower($g4[charset]) == 'euc-kr')
|
||||
$subj = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
||||
else
|
||||
$subj = $str;
|
||||
break;
|
||||
}
|
||||
|
||||
// 내용 필터링 (찾으면 중지)
|
||||
$cont = "";
|
||||
$pos = strpos($content, $str);
|
||||
if ($pos !== false)
|
||||
{
|
||||
if (strtolower($g4[charset]) == 'euc-kr')
|
||||
$cont = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
||||
else
|
||||
$cont = $str;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
die("{\"subject\":\"$subj\",\"content\":\"$cont\"}");
|
||||
?>
|
||||
@ -1,5 +0,0 @@
|
||||
<?
|
||||
$g4_path = "../../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
header("Content-Type: text/html; charset=$g4[charset]");
|
||||
?>
|
||||
@ -1,20 +0,0 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
|
||||
if (trim($reg_mb_email)=='') {
|
||||
echo "110"; // 입력이 없습니다.
|
||||
} else if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $reg_mb_email)) {
|
||||
echo "120"; // E-mail 주소 형식에 맞지 않음
|
||||
} else {
|
||||
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id <> '$reg_mb_id' and mb_email = '$reg_mb_email' ");
|
||||
if ($row[cnt]) {
|
||||
echo "130"; // 이미 존재하는 회원아이디
|
||||
} else {
|
||||
//if (preg_match("/[\,]?{$reg_mb_email}\,/i", $config[cf_prohibit_id].","))
|
||||
if (preg_match("/[\,]?{$reg_mb_email}/i", $config[cf_prohibit_id]))
|
||||
echo "140"; // 예약어로 금지된 회원아이디
|
||||
else
|
||||
echo "000"; // 정상
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
|
||||
// echo "한글"로 출력하지 않는 이유는 Ajax 는 euc_kr 에서 한글을 제대로 인식하지 못하기 때문
|
||||
// 여기에서 영문으로 echo 하여 Request 된 값을 Javascript 에서 한글로 메세지를 출력함
|
||||
|
||||
if (preg_match("/[^0-9a-z_]+/i", $reg_mb_id)) {
|
||||
echo "110"; // 유효하지 않은 회원아이디
|
||||
} else if (strlen($reg_mb_id) < 3) {
|
||||
echo "120"; // 3보다 작은 회원아이디
|
||||
} else {
|
||||
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id = '$reg_mb_id' ");
|
||||
if ($row[cnt]) {
|
||||
echo "130"; // 이미 존재하는 회원아이디
|
||||
} else {
|
||||
if (preg_match("/[\,]?{$reg_mb_id}/i", $config[cf_prohibit_id]))
|
||||
echo "140"; // 예약어로 금지된 회원아이디
|
||||
else
|
||||
echo "000"; // 정상
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,40 +0,0 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
|
||||
if (!function_exists('convert_charset')) {
|
||||
/*
|
||||
-----------------------------------------------------------
|
||||
Charset 을 변환하는 함수
|
||||
-----------------------------------------------------------
|
||||
iconv 함수가 있으면 iconv 로 변환하고
|
||||
없으면 mb_convert_encoding 함수를 사용한다.
|
||||
둘다 없으면 사용할 수 없다.
|
||||
*/
|
||||
function convert_charset($from_charset, $to_charset, $str) {
|
||||
|
||||
if( function_exists('iconv') )
|
||||
return iconv($from_charset, $to_charset, $str);
|
||||
elseif( function_exists('mb_convert_encoding') )
|
||||
return mb_convert_encoding($str, $to_charset, $from_charset);
|
||||
else
|
||||
die("Not found 'iconv' or 'mbstring' library in server.");
|
||||
}
|
||||
}
|
||||
|
||||
if (strtolower($g4[charset]) == 'euc-kr')
|
||||
$reg_mb_nick = convert_charset('UTF-8','CP949',$reg_mb_nick);
|
||||
|
||||
// 별명은 한글, 영문, 숫자만 가능
|
||||
if (!check_string($reg_mb_nick, _G4_HANGUL_ + _G4_ALPHABETIC_ + _G4_NUMERIC_)) {
|
||||
echo "110"; // 별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.
|
||||
} else if (strlen($reg_mb_nick) < 4) {
|
||||
echo "120"; // 4글자 이상 입력
|
||||
} else {
|
||||
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_nick = '$reg_mb_nick' ");
|
||||
if ($row[cnt]) {
|
||||
echo "130"; // 이미 존재하는 별명
|
||||
} else {
|
||||
echo "000"; // 정상
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,70 +0,0 @@
|
||||
var reg_mb_id_check = function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: member_skin_path+'/ajax_mb_id_check.php',
|
||||
data: {
|
||||
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val())
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function(result) {
|
||||
var msg = $('#msg_mb_id');
|
||||
switch(result) {
|
||||
case '110' : msg.html('영문자, 숫자, _ 만 입력하세요.').css('color', 'red'); break;
|
||||
case '120' : msg.html('최소 3자이상 입력하세요.').css('color', 'red'); break;
|
||||
case '130' : msg.html('이미 사용중인 아이디 입니다.').css('color', 'red'); break;
|
||||
case '140' : msg.html('예약어로 사용할 수 없는 아이디 입니다.').css('color', 'red'); break;
|
||||
case '000' : msg.html('사용하셔도 좋은 아이디 입니다.').css('color', 'blue'); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('#mb_id_enabled').val(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var reg_mb_nick_check = function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: member_skin_path+'/ajax_mb_nick_check.php',
|
||||
data: {
|
||||
'reg_mb_nick': ($('#reg_mb_nick').val())
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function(result) {
|
||||
var msg = $('#msg_mb_nick');
|
||||
switch(result) {
|
||||
case '110' : msg.html('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').css('color', 'red'); break;
|
||||
case '120' : msg.html('한글 2글자, 영문 4글자 이상 입력 가능합니다.').css('color', 'red'); break;
|
||||
case '130' : msg.html('이미 존재하는 별명입니다.').css('color', 'red'); break;
|
||||
case '000' : msg.html('사용하셔도 좋은 별명 입니다.').css('color', 'blue'); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('#mb_nick_enabled').val(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var reg_mb_email_check = function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: member_skin_path+'/ajax_mb_email_check.php',
|
||||
data: {
|
||||
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val()),
|
||||
'reg_mb_email': $('#reg_mb_email').val()
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function(result) {
|
||||
var msg = $('#msg_mb_email');
|
||||
switch(result) {
|
||||
case '110' : msg.html('E-mail 주소를 입력하십시오.').css('color', 'red'); break;
|
||||
case '120' : msg.html('E-mail 주소가 형식에 맞지 않습니다.').css('color', 'red'); break;
|
||||
case '130' : msg.html('이미 존재하는 E-mail 주소입니다.').css('color', 'red'); break;
|
||||
case '000' : msg.html('사용하셔도 좋은 E-mail 주소입니다.').css('color', 'blue'); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('#mb_email_enabled').val(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1,113 +0,0 @@
|
||||
/*
|
||||
** 2010.03.12 : jQuery 로 대체하여 앞으로 사용하지 않습니다.
|
||||
*/
|
||||
|
||||
// 회원아이디 검사
|
||||
function reg_mb_id_check() {
|
||||
var url = member_skin_path + "/ajax_mb_id_check.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_id_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_id_check(req) {
|
||||
var msg = $('msg_mb_id');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('영문자, 숫자, _ 만 입력하세요.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('최소 3자이상 입력하세요.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 사용중인 아이디 입니다.').setStyle({ color: 'red' }); break;
|
||||
case '140' : msg.update('예약어로 사용할 수 없는 아이디 입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 아이디 입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_id_enabled').value = result;
|
||||
}
|
||||
|
||||
// 별명 검사
|
||||
function reg_mb_nick_check() {
|
||||
var url = member_skin_path + "/ajax_mb_nick_check.php";
|
||||
var para = "reg_mb_nick="+encodeURIComponent($F('reg_mb_nick'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_nick_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_nick_check(req) {
|
||||
var msg = $('msg_mb_nick');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('한글 2글자, 영문 4글자 이상 입력 가능합니다.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 존재하는 별명입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 별명 입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_nick_enabled').value = result;
|
||||
}
|
||||
|
||||
|
||||
// E-mail 주소 검사
|
||||
function reg_mb_email_check() {
|
||||
var url = member_skin_path + "/ajax_mb_email_check.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
para += "®_mb_email="+encodeURIComponent($F('reg_mb_email'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_email_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_email_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_email_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_email_check(req) {
|
||||
var msg = $('msg_mb_email');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('E-mail 주소를 입력하십시오.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('E-mail 주소가 형식에 맞지 않습니다.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 존재하는 E-mail 주소입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 E-mail 주소입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_email_enabled').value = result;
|
||||
}
|
||||
|
||||
// 세션에 저장된 토큰을 얻는다.
|
||||
function get_token() {
|
||||
var url = member_skin_path + "/ajax_get_token.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
para += "®_mb_email="+encodeURIComponent($F('reg_mb_email'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_get_token
|
||||
});
|
||||
}
|
||||
|
||||
function return_get_token(req) {
|
||||
var result = req.responseText;
|
||||
$('mb_token').value = result;
|
||||
}
|
||||
@ -1,105 +0,0 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<table border=0 cellpadding=4 align=center width=100%>
|
||||
<form name=fcalendar autocomplete=off>
|
||||
<input type=hidden name=fld value='<?=$fld?>'>
|
||||
<input type=hidden name=cur_date value='<?=$cur_date?>'>
|
||||
<input type=hidden id=delimiter name=delimiter value='<?=$delimiter?>'>
|
||||
<tr><td align=center height=30>
|
||||
<a href='<?=$yyyy_before_href?>'><<</a>
|
||||
<a href='<?=$mm_before_href?>'><</a>
|
||||
<?=$yyyy_select?>
|
||||
<?=$mm_select?>
|
||||
<a href='<?=$mm_after_href?>'>></a>
|
||||
<a href='<?=$yyyy_after_href?>'>>></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<table border=0 cellpadding=4 cellspacing=0 width=100%>
|
||||
<tr align=center>
|
||||
<td width=14% style="color:<?=$sunday_color?>"><?=$yoil[0];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[1];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[2];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[3];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[4];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[5];?></td>
|
||||
<td width=14% style="color:<?=$saturday_color?>"><?=$yoil[6];?></td>
|
||||
</tr>
|
||||
<?
|
||||
$cnt = $day = 0;
|
||||
for ($i=0; $i<6; $i++)
|
||||
{
|
||||
echo "<tr>";
|
||||
for ($k=0; $k<7; $k++)
|
||||
{
|
||||
$cnt++;
|
||||
|
||||
echo "<td align=center>";
|
||||
|
||||
if ($cnt > $dt[wday])
|
||||
{
|
||||
$day++;
|
||||
if ($day <= $last_day)
|
||||
{
|
||||
$mm2 = substr("0".$mm,-2);
|
||||
$day2 = substr("0".$day,-2);
|
||||
|
||||
echo "<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td id='id$i$k' onclick=\"date_send('$yyyy', '$mm2', '$day2', '$k', '$yoil[$k]');\" align=center style='cursor:pointer;'>$day</td></tr></table>";
|
||||
|
||||
if ($k==0)
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$sunday_color';</script>";
|
||||
else if ($k==6)
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$saturday_color';</script>";
|
||||
else
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$weekday_color';</script>";
|
||||
|
||||
$tmp_date = $yyyy.substr("0".$mm,-2).substr("0".$day,-2);
|
||||
|
||||
$tmp = $mm2."-".$day2;
|
||||
if ($nal[$tmp])
|
||||
{
|
||||
$title = trim($nal[$tmp][1]);
|
||||
//echo $title;
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').title='{$title}';</script>";
|
||||
if (trim($nal[$tmp][2]) == "*")
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$sunday_color';</script>";
|
||||
}
|
||||
|
||||
// 오늘이라면
|
||||
if ($today[year] == $yyyy && $today[mon] == $mm && $today[mday] == $day)
|
||||
{
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.backgroundColor='$today_bgcolor';</script>";
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').title+='[오늘]';</script>";
|
||||
}
|
||||
// 선택일(넘어온 값) 이라면
|
||||
else if ($tmp_date == $cur_date)
|
||||
{
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.backgroundColor='$select_bgcolor';</script>";
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').title+='[선택일]';</script>";
|
||||
}
|
||||
} else
|
||||
echo " ";
|
||||
} else
|
||||
echo " ";
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
if ($day >= $last_day)
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center height=30>
|
||||
<span style='background-color:<?=$today_bgcolor?>;'>
|
||||
<?="<a href=\"javascript:date_send('{$today[year]}', '{$mon}', '{$mday}', '{$today[wday]}', '{$yoil[$today[wday]]}');\">";?>
|
||||
오늘 : <?="{$today[year]}년 {$today[mon]}월 {$today[mday]}일 ({$yoil[$today[wday]]})";?></a>
|
||||
</span></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
@ -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메일을 확인하여 주십시오.');
|
||||
?>
|
||||
@ -239,7 +239,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
if ($config['cf_kcpcert_use']) {
|
||||
// 휴대폰인증 form
|
||||
include_once(G4_KCPCERT_PATH.'/kcpcert_form.php');
|
||||
@ -392,4 +392,4 @@ function fregisterform_submit(f)
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 회원정보 입력/수정 끝 -->
|
||||
<!-- } 회원정보 입력/수정 끝 -->
|
||||
@ -1,5 +0,0 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
@ -1,5 +0,0 @@
|
||||
<?
|
||||
$g4_path = "../../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
header("Content-Type: text/html; charset=$g4[charset]");
|
||||
?>
|
||||
@ -1,20 +0,0 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
|
||||
if (trim($reg_mb_email)=='') {
|
||||
echo "110"; // 입력이 없습니다.
|
||||
} else if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $reg_mb_email)) {
|
||||
echo "120"; // E-mail 주소 형식에 맞지 않음
|
||||
} else {
|
||||
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id <> '$reg_mb_id' and mb_email = '$reg_mb_email' ");
|
||||
if ($row[cnt]) {
|
||||
echo "130"; // 이미 존재하는 회원아이디
|
||||
} else {
|
||||
//if (preg_match("/[\,]?{$reg_mb_email}\,/i", $config[cf_prohibit_id].","))
|
||||
if (preg_match("/[\,]?{$reg_mb_email}/i", $config[cf_prohibit_id]))
|
||||
echo "140"; // 예약어로 금지된 회원아이디
|
||||
else
|
||||
echo "000"; // 정상
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,22 +0,0 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
|
||||
// echo "한글"로 출력하지 않는 이유는 Ajax 는 euc_kr 에서 한글을 제대로 인식하지 못하기 때문
|
||||
// 여기에서 영문으로 echo 하여 Request 된 값을 Javascript 에서 한글로 메세지를 출력함
|
||||
|
||||
if (preg_match("/[^0-9a-z_]+/i", $reg_mb_id)) {
|
||||
echo "110"; // 유효하지 않은 회원아이디
|
||||
} else if (strlen($reg_mb_id) < 3) {
|
||||
echo "120"; // 3보다 작은 회원아이디
|
||||
} else {
|
||||
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id = '$reg_mb_id' ");
|
||||
if ($row[cnt]) {
|
||||
echo "130"; // 이미 존재하는 회원아이디
|
||||
} else {
|
||||
if (preg_match("/[\,]?{$reg_mb_id}/i", $config[cf_prohibit_id]))
|
||||
echo "140"; // 예약어로 금지된 회원아이디
|
||||
else
|
||||
echo "000"; // 정상
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,40 +0,0 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
|
||||
if (!function_exists('convert_charset')) {
|
||||
/*
|
||||
-----------------------------------------------------------
|
||||
Charset 을 변환하는 함수
|
||||
-----------------------------------------------------------
|
||||
iconv 함수가 있으면 iconv 로 변환하고
|
||||
없으면 mb_convert_encoding 함수를 사용한다.
|
||||
둘다 없으면 사용할 수 없다.
|
||||
*/
|
||||
function convert_charset($from_charset, $to_charset, $str) {
|
||||
|
||||
if( function_exists('iconv') )
|
||||
return iconv($from_charset, $to_charset, $str);
|
||||
elseif( function_exists('mb_convert_encoding') )
|
||||
return mb_convert_encoding($str, $to_charset, $from_charset);
|
||||
else
|
||||
die("Not found 'iconv' or 'mbstring' library in server.");
|
||||
}
|
||||
}
|
||||
|
||||
if (strtolower($g4[charset]) == 'euc-kr')
|
||||
$reg_mb_nick = convert_charset('UTF-8','CP949',$reg_mb_nick);
|
||||
|
||||
// 별명은 한글, 영문, 숫자만 가능
|
||||
if (!check_string($reg_mb_nick, _G4_HANGUL_ + _G4_ALPHABETIC_ + _G4_NUMERIC_)) {
|
||||
echo "110"; // 별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.
|
||||
} else if (strlen($reg_mb_nick) < 4) {
|
||||
echo "120"; // 4글자 이상 입력
|
||||
} else {
|
||||
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_nick = '$reg_mb_nick' ");
|
||||
if ($row[cnt]) {
|
||||
echo "130"; // 이미 존재하는 별명
|
||||
} else {
|
||||
echo "000"; // 정상
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,70 +0,0 @@
|
||||
var reg_mb_id_check = function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: member_skin_path+'/ajax_mb_id_check.php',
|
||||
data: {
|
||||
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val())
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function(result) {
|
||||
var msg = $('#msg_mb_id');
|
||||
switch(result) {
|
||||
case '110' : msg.html('영문자, 숫자, _ 만 입력하세요.').css('color', 'red'); break;
|
||||
case '120' : msg.html('최소 3자이상 입력하세요.').css('color', 'red'); break;
|
||||
case '130' : msg.html('이미 사용중인 아이디 입니다.').css('color', 'red'); break;
|
||||
case '140' : msg.html('예약어로 사용할 수 없는 아이디 입니다.').css('color', 'red'); break;
|
||||
case '000' : msg.html('사용하셔도 좋은 아이디 입니다.').css('color', 'blue'); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('#mb_id_enabled').val(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var reg_mb_nick_check = function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: member_skin_path+'/ajax_mb_nick_check.php',
|
||||
data: {
|
||||
'reg_mb_nick': ($('#reg_mb_nick').val())
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function(result) {
|
||||
var msg = $('#msg_mb_nick');
|
||||
switch(result) {
|
||||
case '110' : msg.html('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').css('color', 'red'); break;
|
||||
case '120' : msg.html('한글 2글자, 영문 4글자 이상 입력 가능합니다.').css('color', 'red'); break;
|
||||
case '130' : msg.html('이미 존재하는 별명입니다.').css('color', 'red'); break;
|
||||
case '000' : msg.html('사용하셔도 좋은 별명 입니다.').css('color', 'blue'); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('#mb_nick_enabled').val(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var reg_mb_email_check = function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: member_skin_path+'/ajax_mb_email_check.php',
|
||||
data: {
|
||||
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val()),
|
||||
'reg_mb_email': $('#reg_mb_email').val()
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function(result) {
|
||||
var msg = $('#msg_mb_email');
|
||||
switch(result) {
|
||||
case '110' : msg.html('E-mail 주소를 입력하십시오.').css('color', 'red'); break;
|
||||
case '120' : msg.html('E-mail 주소가 형식에 맞지 않습니다.').css('color', 'red'); break;
|
||||
case '130' : msg.html('이미 존재하는 E-mail 주소입니다.').css('color', 'red'); break;
|
||||
case '000' : msg.html('사용하셔도 좋은 E-mail 주소입니다.').css('color', 'blue'); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('#mb_email_enabled').val(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1,113 +0,0 @@
|
||||
/*
|
||||
** 2010.03.12 : jQuery 로 대체하여 앞으로 사용하지 않습니다.
|
||||
*/
|
||||
|
||||
// 회원아이디 검사
|
||||
function reg_mb_id_check() {
|
||||
var url = member_skin_path + "/ajax_mb_id_check.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_id_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_id_check(req) {
|
||||
var msg = $('msg_mb_id');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('영문자, 숫자, _ 만 입력하세요.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('최소 3자이상 입력하세요.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 사용중인 아이디 입니다.').setStyle({ color: 'red' }); break;
|
||||
case '140' : msg.update('예약어로 사용할 수 없는 아이디 입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 아이디 입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_id_enabled').value = result;
|
||||
}
|
||||
|
||||
// 별명 검사
|
||||
function reg_mb_nick_check() {
|
||||
var url = member_skin_path + "/ajax_mb_nick_check.php";
|
||||
var para = "reg_mb_nick="+encodeURIComponent($F('reg_mb_nick'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_nick_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_nick_check(req) {
|
||||
var msg = $('msg_mb_nick');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('한글 2글자, 영문 4글자 이상 입력 가능합니다.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 존재하는 별명입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 별명 입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_nick_enabled').value = result;
|
||||
}
|
||||
|
||||
|
||||
// E-mail 주소 검사
|
||||
function reg_mb_email_check() {
|
||||
var url = member_skin_path + "/ajax_mb_email_check.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
para += "®_mb_email="+encodeURIComponent($F('reg_mb_email'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_email_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_email_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_email_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_email_check(req) {
|
||||
var msg = $('msg_mb_email');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('E-mail 주소를 입력하십시오.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('E-mail 주소가 형식에 맞지 않습니다.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 존재하는 E-mail 주소입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 E-mail 주소입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_email_enabled').value = result;
|
||||
}
|
||||
|
||||
// 세션에 저장된 토큰을 얻는다.
|
||||
function get_token() {
|
||||
var url = member_skin_path + "/ajax_get_token.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
para += "®_mb_email="+encodeURIComponent($F('reg_mb_email'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_get_token
|
||||
});
|
||||
}
|
||||
|
||||
function return_get_token(req) {
|
||||
var result = req.responseText;
|
||||
$('mb_token').value = result;
|
||||
}
|
||||
@ -1,105 +0,0 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<table border=0 cellpadding=4 align=center width=100%>
|
||||
<form name=fcalendar autocomplete=off>
|
||||
<input type=hidden name=fld value='<?=$fld?>'>
|
||||
<input type=hidden name=cur_date value='<?=$cur_date?>'>
|
||||
<input type=hidden id=delimiter name=delimiter value='<?=$delimiter?>'>
|
||||
<tr><td align=center height=30>
|
||||
<a href='<?=$yyyy_before_href?>'><<</a>
|
||||
<a href='<?=$mm_before_href?>'><</a>
|
||||
<?=$yyyy_select?>
|
||||
<?=$mm_select?>
|
||||
<a href='<?=$mm_after_href?>'>></a>
|
||||
<a href='<?=$yyyy_after_href?>'>>></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<table border=0 cellpadding=4 cellspacing=0 width=100%>
|
||||
<tr align=center>
|
||||
<td width=14% style="color:<?=$sunday_color?>"><?=$yoil[0];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[1];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[2];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[3];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[4];?></td>
|
||||
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[5];?></td>
|
||||
<td width=14% style="color:<?=$saturday_color?>"><?=$yoil[6];?></td>
|
||||
</tr>
|
||||
<?
|
||||
$cnt = $day = 0;
|
||||
for ($i=0; $i<6; $i++)
|
||||
{
|
||||
echo "<tr>";
|
||||
for ($k=0; $k<7; $k++)
|
||||
{
|
||||
$cnt++;
|
||||
|
||||
echo "<td align=center>";
|
||||
|
||||
if ($cnt > $dt[wday])
|
||||
{
|
||||
$day++;
|
||||
if ($day <= $last_day)
|
||||
{
|
||||
$mm2 = substr("0".$mm,-2);
|
||||
$day2 = substr("0".$day,-2);
|
||||
|
||||
echo "<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td id='id$i$k' onclick=\"date_send('$yyyy', '$mm2', '$day2', '$k', '$yoil[$k]');\" align=center style='cursor:pointer;'>$day</td></tr></table>";
|
||||
|
||||
if ($k==0)
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$sunday_color';</script>";
|
||||
else if ($k==6)
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$saturday_color';</script>";
|
||||
else
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$weekday_color';</script>";
|
||||
|
||||
$tmp_date = $yyyy.substr("0".$mm,-2).substr("0".$day,-2);
|
||||
|
||||
$tmp = $mm2."-".$day2;
|
||||
if ($nal[$tmp])
|
||||
{
|
||||
$title = trim($nal[$tmp][1]);
|
||||
//echo $title;
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').title='{$title}';</script>";
|
||||
if (trim($nal[$tmp][2]) == "*")
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$sunday_color';</script>";
|
||||
}
|
||||
|
||||
// 오늘이라면
|
||||
if ($today[year] == $yyyy && $today[mon] == $mm && $today[mday] == $day)
|
||||
{
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.backgroundColor='$today_bgcolor';</script>";
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').title+='[오늘]';</script>";
|
||||
}
|
||||
// 선택일(넘어온 값) 이라면
|
||||
else if ($tmp_date == $cur_date)
|
||||
{
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.backgroundColor='$select_bgcolor';</script>";
|
||||
echo "<script type='text/javascript'>document.getElementById('id$i$k').title+='[선택일]';</script>";
|
||||
}
|
||||
} else
|
||||
echo " ";
|
||||
} else
|
||||
echo " ";
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
if ($day >= $last_day)
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center height=30>
|
||||
<span style='background-color:<?=$today_bgcolor?>;'>
|
||||
<?="<a href=\"javascript:date_send('{$today[year]}', '{$mon}', '{$mday}', '{$today[wday]}', '{$yoil[$today[wday]]}');\">";?>
|
||||
오늘 : <?="{$today[year]}년 {$today[mon]}월 {$today[mday]}일 ({$yoil[$today[wday]]})";?></a>
|
||||
</span></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
@ -2,18 +2,18 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="formmail" class="new_win">
|
||||
<h1><?php echo $name ?>님께 메일보내기</h1>
|
||||
<h1><?php echo $name; ?>님께 메일보내기</h1>
|
||||
|
||||
<form name="fformmail" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" method="post" enctype="multipart/form-data" style="margin:0px;">
|
||||
<input type="hidden" name="to" value="<?php echo $email ?>">
|
||||
<input type="hidden" name="to" value="<?php echo $email; ?>">
|
||||
<input type="hidden" name="attach" value="2">
|
||||
<input type="hidden" name="token" value="<?php echo $token ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
<?php if ($is_member) { // 회원이면 ?>
|
||||
<input type="hidden" name="fnick" value="<?php echo $member['mb_nick'] ?>">
|
||||
<input type="hidden" name="fmail" value="<?php echo $member['mb_email'] ?>">
|
||||
<input type="hidden" name="fnick" value="<?php echo $member['mb_nick']; ?>">
|
||||
<input type="hidden" name="fmail" value="<?php echo $member['mb_email']; ?>">
|
||||
<?php } ?>
|
||||
<table class="frm_tbl">
|
||||
<caption>메일쓰기</caption>
|
||||
|
||||
@ -8,7 +8,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
|
||||
<form name="flogin" action="<?php echo $login_action_url; ?>" onsubmit="return flogin_submit(this);" method="post">
|
||||
<input type="hidden" name="url" value='<?php echo $login_url; ?>'>
|
||||
<input type="hidden" name="url" value="<?php echo $login_url; ?>">
|
||||
|
||||
<fieldset id="mb_login_fs">
|
||||
<legend>회원로그인</legend>
|
||||
@ -84,7 +84,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<form name="forderinquiry" method="post" action="<?php echo urldecode($url); ?>" autocomplete="off">
|
||||
|
||||
<label for="od_id" class="od_id">주문서번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_id" value="<? echo $od_id ?>" id="od_id" required class="frm_input required" size="20">
|
||||
<input type="text" name="od_id" value="<? echo $od_id; ?>" id="od_id" required class="frm_input required" size="20">
|
||||
<label for="id_pwd" class="od_pwd">패스워드<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="password" name="od_pwd" size="20" id="od_pwd" required class="frm_input required">
|
||||
<input type="submit" value="확인" class="btn_submit">
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="mb_confirm">
|
||||
<h1><?php echo $g4['title'] ?></h1>
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
|
||||
<p>
|
||||
<strong>패스워드를 한번 더 입력해주세요.</strong>
|
||||
@ -16,13 +16,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php } ?>
|
||||
</p>
|
||||
|
||||
<form name="fmemberconfirm" action="<?php echo $url ?>" onsubmit="return fmemberconfirm_submit(this);" method="post">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id'] ?>">
|
||||
<form name="fmemberconfirm" action="<?php echo $url; ?>" onsubmit="return fmemberconfirm_submit(this);" method="post">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id']; ?>">
|
||||
<input type="hidden" name="w" value="u">
|
||||
|
||||
<fieldset>
|
||||
회원아이디
|
||||
<span id="mb_confirm_id"><?php echo $member['mb_id'] ?></span>
|
||||
<span id="mb_confirm_id"><?php echo $member['mb_id']; ?></span>
|
||||
|
||||
<label for="confirm_mb_password">패스워드<strong class="sound_only">필수</strong></label>
|
||||
<input type="password" name="mb_password" id="confirm_mb_password" required class="required frm_input" size="15" maxLength="20">
|
||||
@ -32,7 +32,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</form>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<a href="<?php echo G4_URL ?>">메인으로 돌아가기</a>
|
||||
<a href="<?php echo G4_URL; ?>">메인으로 돌아가기</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="memo_list" class="new_win">
|
||||
<h1 id="new_win_title"><?php echo $g4['title'] ?></h1>
|
||||
<h1 id="new_win_title"><?php echo $g4['title']; ?></h1>
|
||||
|
||||
<ul class="new_win_ul">
|
||||
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
|
||||
@ -15,7 +15,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<table class="basic_tbl">
|
||||
<caption>
|
||||
전체 <?php echo $kind_title ?>쪽지 <?php echo $total_count ?>통<br>
|
||||
전체 <?php echo $kind_title; ?>쪽지 <?php echo $total_count; ?>통<br>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -28,10 +28,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<tbody>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td><?php echo $list[$i]['name'] ?></td>
|
||||
<td class="td_datetime"><a href="<?php echo $list[$i]['view_href'] ?>"><?php echo $list[$i]['send_datetime'] ?></font></td>
|
||||
<td class="td_datetime"><a href="<?php echo $list[$i]['view_href'] ?>"><?php echo $list[$i]['read_datetime'] ?></font></td>
|
||||
<td class="td_mng"><a href="<?php echo $list[$i]['del_href'] ?>" onclick="del(this.href); return false;">삭제</a></td>
|
||||
<td><?php echo $list[$i]['name']; ?></td>
|
||||
<td class="td_datetime"><a href="<?php echo $list[$i]['view_href']; ?>"><?php echo $list[$i]['send_datetime']; ?></font></td>
|
||||
<td class="td_datetime"><a href="<?php echo $list[$i]['view_href']; ?>"><?php echo $list[$i]['read_datetime']; ?></font></td>
|
||||
<td class="td_mng"><a href="<?php echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
|
||||
@ -39,7 +39,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</table>
|
||||
|
||||
<p class="new_win_desc">
|
||||
쪽지 보관일수는 최장 <strong><?php echo $config['cf_memo_del'] ?></strong>일 입니다.
|
||||
쪽지 보관일수는 최장 <strong><?php echo $config['cf_memo_del']; ?></strong>일 입니다.
|
||||
</p>
|
||||
|
||||
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="memo_write" class="new_win">
|
||||
<h1>쪽지보내기</h1>
|
||||
@ -21,13 +21,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<tr>
|
||||
<th scope="row"><label for="me_recv_mb_id">받는 회원아이디<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id ?>" id="me_recv_mb_id" required class="frm_input required" size="47">
|
||||
<input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id; ?>" id="me_recv_mb_id" required class="frm_input required" size="47">
|
||||
<span class="frm_info">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="me_memo">내용</label></th>
|
||||
<td><textarea name="me_memo" id="me_memo" required class="required"><?php echo $content ?></textarea></td>
|
||||
<td><textarea name="me_memo" id="me_memo" required class="required"><?php echo $content; ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
|
||||
<div id="find_info" class="new_win">
|
||||
<h1 id="new_win_title">회원정보 찾기</h1>
|
||||
|
||||
<form name="fpasswordlost" action="<?php echo $action_url ?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off">
|
||||
<form name="fpasswordlost" action="<?php echo $action_url; ?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off">
|
||||
<fieldset id="find_info_fs">
|
||||
<p>
|
||||
회원가입 시 등록하신 이메일 주소를 입력해 주세요.<br>
|
||||
|
||||
@ -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메일을 확인하여 주십시오.');
|
||||
?>
|
||||
@ -1,5 +0,0 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
@ -32,7 +32,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<dd>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li><a href='javascript:;' onclick="find_zip('<?php echo $list[$i][zip1] ?>', '<?php echo $list[$i][zip2] ?>', '<?php echo $list[$i][addr] ?>');"><span class="post_code"><?php echo $list[$i][zip1] ?>-<?php echo $list[$i][zip2] ?></span> <?php echo $list[$i][addr] ?> <?php echo $list[$i][bunji] ?></a></li>
|
||||
<li><a href='javascript:;' onclick="find_zip('<?php echo $list[$i]['zip1'] ?>', '<?php echo $list[$i]['zip2'] ?>', '<?php echo $list[$i]['addr'] ?>');"><span class="post_code"><?php echo $list[$i]['zip1'] ?>-<?php echo $list[$i]['zip2'] ?></span> <?php echo $list[$i]['addr'] ?> <?php echo $list[$i]['bunji'] ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
@ -9,7 +9,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<header id="ol_after_hd">
|
||||
<h2>나의 회원정보</h2>
|
||||
<strong><?php echo $nick; ?>님</strong>
|
||||
<? if ($is_admin == 'super' || $is_auth) { ?><a href="<?php echo G4_ADMIN_URL; ?>/shop_admin" class="btn_admin">관리자 모드</a><? } ?>
|
||||
<?php if ($is_admin == 'super' || $is_auth) { ?><a href="<?php echo G4_ADMIN_URL; ?>/shop_admin" class="btn_admin">관리자 모드</a><?php } ?>
|
||||
</header>
|
||||
<ul id="ol_after_private">
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user