겸손한 javascript 로 수정중

This commit is contained in:
gnuboard
2013-01-14 17:25:50 +09:00
parent 49036302da
commit 39cafe9ffc
19 changed files with 649 additions and 772 deletions

View File

@ -1,23 +1,14 @@
<?
define('_CAPTCHA_', 1);
include_once('./_common.php');
include_once($g4['path'].'/lib/mailer.lib.php');
if ($member[mb_id])
{
?>
<script>
alert('이미 로그인중입니다.');
window.close();
opener.document.location.reload();
</script>
<?
exit;
if ($is_member) {
alert("이미 로그인중입니다.");
}
$key = get_session("captcha_keystring");
if (!($key && $key == $_POST[wr_key])) {
session_unregister("captcha_keystring");
alert_close('정상적인 접근이 아닌것 같습니다.');
if (!chk_captcha()) {
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
}
$email = trim($_POST['mb_email']);
@ -25,16 +16,16 @@ $email = trim($_POST['mb_email']);
if (!$email)
alert_close('메일주소 오류입니다.');
$sql = " select count(*) as cnt from {$g4[member_table]} where mb_email = '{$email}' ";
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '{$email}' ";
$row = sql_fetch($sql);
if ($row[cnt] > 1)
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}' ";
$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])
if (!$mb['mb_id'])
alert('존재하지 않는 회원입니다.');
else if (is_admin($mb[mb_id]))
else if (is_admin($mb['mb_id']))
alert('관리자 아이디는 접근 불가합니다.');
// 난수 발생