겸손한 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

@ -11,7 +11,7 @@ if ((isset($p['scheme']) && $p['scheme']) ||
}
// 이미 로그인 중이라면
if ($member['mb_id']) {
if ($is_member) {
if ($url)
goto_url($url);
else
@ -23,6 +23,31 @@ if ($url)
else
$urlencode = urlencode($_SERVER['REQUEST_URI']);
if ($g4['https_url']) {
$login_url = $_GET['url'];
if ($login_url) {
if (preg_match("/^\.\.\//", $url)) {
$login_url = urlencode($g4['url']."/".preg_replace("/^\.\.\//", "", $login_url));
} else {
$purl = parse_url($g4['url']);
if ($purl['path']) {
$path = urlencode($purl['path']);
$urlencode = preg_replace("/".$path."/", "", $urlencode);
}
$login_url = $g4[url].$urlencode;
}
} else {
$login_url = $g4[url];
}
} else {
$login_url = $urlencode;
}
if ($g4['https_url'])
$login_action_url = "{$g4['https_url']}/$g4[bbs]/login_check.php";
else
$login_action_url = "{$g4['bbs_url']}/login_check.php";
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
include_once($member_skin_path.'/login.skin.php');