<?php
include_once('./_common.php');

// 이미 로그인 중이라면
if ($is_member) goto_url(APMS_PARTNER_URL);

$returnUrl = isset($_GET['returnUrl']) ? trim((string)$_GET['returnUrl']) : '';
$action_url = APMS_PARTNER_HTTPS_URL.'/login_check.php';
if ($returnUrl !== '') {
    $action_url .= '?returnUrl=' . urlencode($returnUrl);
}

// $action_url = "/shop/partner/login_check.php"

define('G5_IS_ADMIN', true);
include_once(G5_ADMIN_PATH.'/admin.head.sub.php');
include_once($skin_path.'/_head.php');
include_once($skin_path.'/login.skin.php');
include_once($skin_path.'/_tail.php');
include_once(G5_PATH.'/tail.sub.php');

?>