captcha 적용중

This commit is contained in:
gnuboard
2013-01-08 09:04:13 +09:00
parent 3dfea05d47
commit 7feb58aeab
10 changed files with 41 additions and 89 deletions

View File

@ -1,6 +1,6 @@
<?
include_once('./_common.php');
include_once($g4['path'].'/plugin/captcha/captcha.lib.php');
if ($captcha->lib) include_once($captcha->lib);
// 불법접근을 막도록 토큰생성
$token = md5(uniqid(rand(), true));

View File

@ -15,8 +15,8 @@ if ($w == 'u' && $is_admin == 'super') {
alert('데모 화면에서는 하실(보실) 수 없는 작업입니다.');
}
if (!chk_tcaptcha("user_answer")) {
alert("정상적인 접근이 아닌것 같습니다.");
if (!chk_captcha("wr_key")) {
alert("자동등록방지 코드에 오류가 있습니다.");
}
$mb_id = trim(strip_tags(mysql_escape_string($_POST[mb_id])));

View File

@ -1,12 +1,14 @@
<?
include_once('./_common.php');
$mb = get_member($_SESSION[ss_mb_reg]);
if (isset($_SESSION['ss_mb_reg']))
$mb = get_member($_SESSION['ss_mb_reg']);
// 회원정보가 없다면 초기 페이지로 이동
if (!$mb[mb_id])
if (!$mb['mb_id'])
goto_url($g4['path']);
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
$g4['title'] = '회원가입결과';
include_once('./_head.php');