<?php include_once "_common.php"; $g4[title] = "회원가입"; include_once "_head.php"; include_once "../_lib.php"; $g4_path = $g4[path]; if (!check_string($member['mb_nick'], _G4_HANGUL_ + _G4_ALPHABETIC_ + _G4_NUMERIC_)) { $config[cf_nick_modify] = 0; } $is_sns = is_social_login(); if ($is_sns) { $member['mb_password'] = ''; } else { goto_url($g4['bbs_path'] . '/member_confirm.php?url=register_form.php'); } ob_start(); readfile($g4_path . "/bbs/register_form.php"); $skin = ob_get_contents(); ob_end_clean(); $skin = str_replace("<" . "?php", "", $skin); $skin = str_replace("<" . "?", "", $skin); $skin = str_replace("?" . ">", "", $skin); $skin = str_replace("include_once(\"\$member_skin_path/register_form.skin.php\");", "", $skin); $skin = str_replace("include_once(\"./_head.php\");", "", $skin); $skin = str_replace("include_once(\"./_tail.php\");", "", $skin); //g5 $_POST['mb_id'] = $member['mb_id']; $skin = str_replace("include_once(\$member_skin_path.'/register_form.skin.php');", "", $skin); $skin = str_replace("include_once('./_head.php');", "", $skin); $skin = str_replace("include_once('./_tail.php');", "", $skin);
if (is_social_login() && strstr($_SERVER['REQUEST_URI'], "member_confirm.php?url=register_form.php")) { goto_url($g4['path'] . "/plugin/social-login/bbs/register_form.php?w=u&mb_id=" . $member['mb_id']); } if (strstr($_SERVER['PHP_SELF'], $g4['bbs'] . '/login_check.php')) { $is_social_login = is_social_login($_POST['mb_id']); if ($is_social_login) { alert("{$is_social_login} 아이콘을 클릭해 {$is_social_login} 연동 계정으로 로그인 해주세요."); } } if (strstr($_SERVER['PHP_SELF'], $g4['bbs'] . '/password_lost2.php')) { $email = trim($_POST['mb_email']); if (!$email) { alert_close("메일주소 오류입니다."); } $mb = sql_fetch(" select mb_id from {$g4['member_table']} where mb_email = '{$email}' "); $is_social_login = is_social_login($mb['mb_id']); if ($is_social_login) { alert_close("{$is_social_login} 아이콘을 클릭해 {$is_social_login} 연동 계정으로 로그인 해주세요."); } } if (defined("G5_PATH") and verify_social_login($_GET['mb_id'])) { if (strstr($_SERVER['SCRIPT_NAME'], G5_BBS_DIR . "/new.php")) { ob_start(); readfile(G5_BBS_PATH . "/new.php"); $tmp = ob_get_clean(); $tmp = str_replace("<?php", "", $tmp); $tmp = str_replace("<?", "", $tmp); $tmp = str_replace("?" . ">", "", $tmp); $tmp = str_replace("\$mb_id = substr(preg_replace('#[^a-z0-9_]#i', '', \$mb_id), 0, 20);", "", $tmp); ob_start(); // 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면