WiiMart/source_code/jsp/CheckRegistered.jsp
2025-03-17 16:03:23 +00:00

770 lines
33 KiB
Text

<%@ page import = "java.io.*,java.util.*" %>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<a href="https://oss-auth.blinklab.com/oss/serv/debug.jsp">debug</a>
<!-- -->
<!-- This software contains confidential information and -->
<!-- trade secrets of Acer Cloud Technology, Inc. -->
<!-- Use, disclosure or reproduction is prohibited without -->
<!-- the prior express written permission of Acer Cloud -->
<!-- Technology, Inc. -->
<!-- ----------------------------------------------------- -->
<!-- ----------------------------------------------------- -->
<!-- Copyright 2005-2014 Acer Cloud Technology, Inc. -->
<!-- All Rights Reserved. -->
<!-- -->
<!-- This software contains confidential information and -->
<!-- trade secrets of Acer Cloud Technology, Inc. -->
<!-- Use, disclosure or reproduction is prohibited without -->
<!-- the prior express written permission of Acer Cloud -->
<!-- Technology, Inc. -->
<!-- ----------------------------------------------------- -->
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Flush buffer before setting locale to ensure encoding is preserved -->
<!-- Main page -->
<html>
<head>
<!-- ----------------------------------------------------- -->
<!-- Copyright 2005-2014 Acer Cloud Technology, Inc. -->
<!-- All Rights Reserved. -->
<!-- -->
<!-- This software contains confidential information and -->
<!-- trade secrets of Acer Cloud Technology, Inc. -->
<!-- Use, disclosure or reproduction is prohibited without -->
<!-- the prior express written permission of Acer Cloud -->
<!-- Technology, Inc. -->
<!-- ----------------------------------------------------- -->
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="shortcut icon" href="/oss/favicon.ico" />
<link href="/oss/oss/common/css/oss.css" rel="stylesheet" type="text/css" />
<link href="/oss/oss/common/css/error.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var ecCheck = false;
var errorCheck = false;
var buttonsCheck = false;
var imagesCheck = false;
var soundCheck = false;
var shopCheck = false;
var ossCheck = false;
//-->
</script>
<script language="javascript" src="/oss/oss/common/js//ec.js"></script>
<script language="javascript" src='/oss/oss/common/js//error.js'></script>
<script language="javascript" src="/oss/oss/common/js//buttons.js"></script>
<script language="javascript" src="/oss/oss/common/js//images.js"></script>
<script language="javascript" src='/oss/oss/common/js//sound.js'></script>
<script language="javascript" src="/oss/oss/common/js//shop.js"></script>
<script language="javascript" src="/oss/oss/common/js//oss.js"></script>
<script type="text/javascript">
var testMode = 'false';
function getMethod()
{
return 'GET';
}
function getPostParams()
{
var params = "";
return params;
}
function isConnectingPage()
{
var isConnecting = 'true';
return (isConnecting == 'true');
}
function initPageCommon()
{
var isShoppingManualEnabled = "true";
if (ecSupportsSession()) {
isShoppingManualEnabled = ec.getSessionValue("isShopManEnabled");
}
if (isShoppingManualEnabled != "true") {
hideElement("tophelpshadow");
hideElement("help");
}
var ecsUrl = null;
var iasUrl = null;
var ccsUrl = null;
var ucsUrl = null;
var currBalance = null;
// js file loading check
var shopErrCheck = new wiiShop();
if (shopErrCheck != null && "error" in shopErrCheck) {
// shopErrCheck.error(209620, 1);
if (!ecCheck) {
shopErrCheck.error(209620, 1);
} else if (!errorCheck) {
shopErrCheck.error(209620, 1);
} else if (!buttonsCheck) {
shopErrCheck.error(209620, 1);
} else if (!imagesCheck) {
shopErrCheck.error(209620, 1);
} else if (!soundCheck) {
shopErrCheck.error(209620, 1);
} else if (!shopCheck) {
shopErrCheck.error(209620, 1);
} else if (!ossCheck) {
shopErrCheck.error(209620, 1);
}
}
init();
// Cancel any ongoing async ops
ec.cancelOperation();
ecsUrl = 'https://oss-auth.blinklab.com/oss/ecs/services/ECommerceSOAP';
iasUrl = 'https://oss-auth.blinklab.com/oss/ias/services/IdentityAuthenticationSOAP';
ccsUrl = 'http://oss-auth.blinklab.com/ccs/download';
ucsUrl = 'http://oss-auth.blinklab.com/ccs/download';
ec.setWebSvcUrls(ecsUrl, iasUrl);
ec.setContentUrls (ccsUrl, ucsUrl);
imagesPath = "/oss/oss/common/images/";
htmlPath = "/oss/oss/common/html";
ossPath = "https://oss-auth.blinklab.com/oss/serv/";
secureOssPath = "https://oss-auth.blinklab.com/oss/serv/";
ecTimeout = new ECTimeout(parseInt("60000"));
currBalance = document.getElementById("currentBalance");
if(currBalance) {
currBalance.innerHTML = getBalance();
}
setLogUrl("Log.jsp");
if(shop.isCompatibleMode)
{
setEulaUrl("L_01.jsp");
}
else
{
setEulaUrl("L_03_UA_1.jsp");
}
MM_preloadImages('/oss/oss/common/images//banner/under_banner_a.gif');
var supportsCreditCard = 'false';
if (ecSupportsSession()) {
ec.setSessionValue("supportsCreditCard", supportsCreditCard);
}
updateHistory();
var isConnecting = isConnectingPage();
setConnectingToServer(isConnecting);
if (isHRPDisablePage()) {
wiiEnableHRP();
} else {
wiiEnableHRP();
}
}
// Takes a progress object and returns the OSS error message to be displayed to the user
function getOssErrorMsg(progress)
{
if (progress.status >= 0) { return ""; }
var status = progress.status;
var errCode = progress.errCode;
var errInfo = progress.errInfo;
var msg;
var a = new Array();
// EC lib Errors
//a[-(EC_ERROR_CANCELED)] = "???OSS_ERROR_NETWORK_TIMEOUT???";
a[-(EC_ERROR_NET_NA)] = "There was a network error. Please check your Internet settings and your network configuration.<BR><BR>Visit support.nintendo.com for assistance.";
a[-(EC_ERROR_ECARD)] = "The Wii Points Card activation number you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.";
a[-(EC_ERROR_REGISTER)] = "The Wii Number you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.";
a[-(EC_ERROR_ALREADY_OWN)] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
msg = a[-status];
if (status == EC_ERROR_WS_REPORT) {
msg = getWebServiceErrorMsg(errCode, errInfo);
} else if (status == EC_ERROR_NET_CONTENT ||
status == EC_ERROR_FAIL ||
status == EC_ERROR_WS_RECV) {
if (errCode != null && errCode < 0) {
var httpStatus = errCodeToHTTPStatus(errCode);
var nhttpStatus = errCodeToNHTTPStatus(errCode);
if (nhttpStatus == 0 && shop.isCompatibleMode) {
msg = "There was a network error. Check your settings under the Internet option in System Settings on the Wii U Menu.";
} else if (nhttpStatus == 0) {
msg = "There was a network error. Please check your Internet settings and your network configuration.<BR><BR>Visit support.nintendo.com for assistance.";
} else if (nhttpStatus != 0) {
msg = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
}
}
}
if (msg == null || msg == '') {
msg = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
}
return msg;
}
function setErrorHtmlMsg(elem, errorCode, errorMsg)
{
var html =
'<span class="warningRed">'
+ "Error Code: <span id='errorCode'></span></span>"
+ '<BR><span class="contentsRedM">' + errorMsg + '</span>';
elem.innerHTML = html;
document.getElementById("errorCode").innerHTML = errorCode;
}
function setErrorHtml(elem, progress)
{
if (elem != null) {
var errorCode = getOssErrorCode(progress);
var errorMsg = getOssErrorMsg(progress);
setErrorHtmlMsg(elem, errorCode, errorMsg);
}
}
// Web service error messages
// (only include message that may potentially be displayed to user)
// (errCode is progress.errCode from a web service)
// (errInfo is progress.errInfo from a web service)
function getWebServiceErrorMsg(errCode, errInfo)
{
var a = new Array();
// ECS Errors
a[617] = "The Wii Points Card activation number you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.";
a[618] = "This Wii Points Card cannot be used in your country.<BR><BR>Visit support.nintendo.com for assistance.";
a[621] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[623] = "You have downloaded this title before, and your trial period has expired. You cannot redownload it.<BR><BR>Visit support.nintendo.com for assistance.";
a[642] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[643] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[644] = "Credit cards cannot be used on this console.<BR><BR>Please visit support.nintendo.com for assistance.";
a[645] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
// ECS Gift Errors
a[646] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[621] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[626] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[625] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
// ETS Errors
a[705] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[706] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[707] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
// PAS Errors
a[810] = "An error has occurred while redeeming your Wii Download Ticket.<BR><BR>Visit support.nintendo.com for assistance.";
a[811] = "The Wii Points Card you entered has expired.";
//a[812] = "???OSS_ERROR_ECARD_NOT_USABLE???";
//a[813] = "???OSS_ERROR_ECARD_NOT_USABLE???";
//a[814] = "???OSS_ERROR_ECARD_NOT_USABLE???";
a[815] = "This Wii Points Card has already been redeemed.<BR><BR>Visit support.nintendo.com for assistance.";
a[819] = "The Wii Points Card activation number you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.";
a[826] = "The server is busy.<BR><BR>Please try again later.";
a[829] = "The server is busy.<BR><BR>Please try again later.";
a[830] = "The Wii Points Card activation number you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.";
a[831] = "This Wii Points Card cannot be used in your country.<BR><BR>Visit support.nintendo.com for assistance.";
// IAS Errors
a[901] = "The Wii Number you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.";
a[903] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[928] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[958] = "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[942] = "Unable to confirm the Username at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
a[943] = "An error occurred while linking the Username. Please check the Username and password and try again.<BR><BR>If you have forgotten your Username or password, please visit club.nintendo.com.";
a[941] = "An error occurred while linking the Username. Please check the Username and password and try again.<BR><BR>If you have forgotten your Username or password, please visit club.nintendo.com.";
// More IAS Errors
a[1401] = "An error occurred while linking the Username. Please check the Username and password and try again.<BR><BR>If you have forgotten your Username or password, please visit club.nintendo.com.";
a[1402] = "Due to restrictions on your Club Nintendo Membership, it cannot be linked to this WiiMart account.<BR><BR>Visit support.nintendo.com for assistance.";
a[1403] = "Due to restrictions on your Club Nintendo Membership, it cannot be linked to this WiiMart account.<BR><BR>Visit support.nintendo.com for assistance.";
a[1499] = "Unable to confirm the Username at this time. The server is currently undergoing maintenance.<BR><BR>Sorry for the inconvenience. Please try again later.";
// OSS Errors
a[1610] = "The Wii Download Ticket you entered has expired.";
a[1611] = "The Wii Download Ticket code you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.";
a[1612] = "This Wii Download Ticket cannot be used in your country.<BR><BR>Visit support.nintendo.com for assistance.";
a[1613] = "There is no software available at this time for the Wii Download Ticket code you entered. Please check that you have entered the correct code.<BR><BR>NOTE: If you have activated Parental Controls, you may not be able to view all available software in the WiiMart. Please check your Parental Controls settings.";
var msg = a[errCode];
if(msg == null || msg == "") { // default errors
if ((errCode >= 1400 &&
errCode <= 1499)) {
msg = "Unable to confirm the Username at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.";
}
}
return msg;
}
// NOA errors
function getNOAError(code)
{
var a=new Array();
a[NOA_ERROR_CountyRequired] = "County is required.<BR><BR>Please try again.";
a[NOA_ERROR_FoundOnBlacklist] = "Unable to process.<BR><BR>For more information, visit support.nintendo.com.";
a[NOA_ERROR_BillingAddress] = "The information you&rsquo;ve entered regarding your credit-card billing address is incorrect.<BR><BR>Please verify the information and try again.";
a[NOA_ERROR_InvalidCardType] = "This credit-card number is invalid.<BR><BR>Please verify the information and try again.";
a[NOA_ERROR_InvalidVfyValue] = "The credit-card information you&rsquo;ve entered is incorrect.<BR><BR>Please verify the information and try again.";
a[NOA_ERROR_InvalidCcNumberAndExpDate] = "The credit-card information you&rsquo;ve entered is incorrect.<BR><BR>Please verify the information and try again.";
a[NOA_ERROR_InvalidCreditCardNumber] = "This credit-card number is invalid.<BR><BR>Please verify the information and try again.";
a[NOA_ERROR_InvalidExpDate] = "The credit-card information you&rsquo;ve entered is incorrect.<BR><BR>Please verify the information and try again.";
a[NOA_ERROR_InvalidPostalCode] = "The postal code does not match the country settings entered in your Wii Settings.<BR><BR>Please verify the information and try again.";
a[NOA_ERROR_TechnicalDifficulties] = "Unable to confirm credit-card information at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance.";
a[NOA_ERROR_TryAgainLater] = "Unable to confirm credit-card information at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance.";
a[NOA_RESULT_ERROR_CreditCardDeclined] = "This credit card can&rsquo;t be used.<BR><BR>Please contact your credit-card company for more information.";
a[NOA_RESULT_ERROR_CreditCardDeclined_Funds] = "This credit card can&rsquo;t be used.<BR><BR>Please contact your credit-card company for more information.";
a[NOA_RESULT_ERROR_CreditCardDeclined_Inactive] = "This credit card can&rsquo;t be used.<BR><BR>Please contact your credit-card company for more information.";
a[NOA_RESULT_ERROR_CreditCardDeclined_Exp] = "The credit-card expiration date is invalid.";
a[NOA_RESULT_ERROR_CreditCardDeclined_Code] = "The credit-card information you&rsquo;ve entered is incorrect.<BR><BR>Please verify the information and try again.";
a[NOA_RESULT_ERROR_CreditCardDeclined_CCNum] = "This credit-card number is invalid.<BR><BR>Please verify the information and try again.";
a[NOA_RESULT_ERROR_CreditCardDeclined_Limit] = "This credit card can&rsquo;t be used.<BR><BR>Please contact your credit-card company for more information.";
a[NOA_RESULT_ERROR_CreditCardDeclined_Invalid] = "The credit-card information you&rsquo;ve entered is incorrect.<BR><BR>Please verify the information and try again.";
a[NOA_RESULT_ERROR_CreditCardDeclined_AVS] = "Billing zip/postal code is invalid. Please verify the information and try again. ";
a[NOA_ERROR_EmptyVfyValue] = "Please enter the three-digit security code.";
var msg = a[code];
return msg;
}
// IAS errors
function isLoyaltyError(progress)
{
if (progress.status == EC_ERROR_WS_REPORT) {
if ((progress.errCode >= 1400 &&
progress.errCode <= 1499) ||
(progress.errCode == 942) ||
(progress.errCode == 943) ||
(progress.errCode == 941)) {
return true;
}
}
return false;
}
function needCheckRegistration(progress)
{
if (progress.status == EC_ERROR_WS_REPORT) {
if ((progress.errCode == 903) ||
(progress.errCode == 642) ||
(progress.errCode == 625)) {
return true;
}
}
return false;
}
function needSyncEticket(progress)
{
if (progress.status == EC_ERROR_WS_REPORT) {
if (progress.errCode == 621) {
return true;
}
}
return false;
}
//-->
</script>
<title>WiiMart</title>
<style type="text/css">
/* F_01: Connecting to Server */
/* NOTE: used by index.jsp, Register.jsp, CheckRegistered.jsp, and CheckBalance.jsp */
#text01-01 {
position:absolute;
left:29px;
top:28px;
width:546px;
height:28px;
z-index:27;
}
#text02-01 {
position:absolute;
left:25px;
top:100px;
width:560px;
height:180px;
z-index:31;
}</style>
</head>
<script type="text/javascript">
function listPurchaseHistory() {
trace("hi")
var progress = ec.getPurchaseInfo();
opName = "list purchase history";
opDesc = "listing purchase history for device";
finishOp(opName, opDesc, progress, "listPurchaseHistoryDone");
}
function listPurchaseHistoryDone (progress)
{
showResult (progress, opName, opDesc);
if (progress.status >= 0) {
return;
} else {
handleError(progress);
}
}
function checkRegistration()
{
var progress = ec.checkRegistration ();
opName = "Check Registration";
opDesc = "Checking Registration";
finishOp(opName, opDesc, progress, "onCheckRegistrationDone");
}
function onCheckRegistrationDone (progress)
{
showResult (progress, opName, opDesc);
if (progress.status >= 0) {
var r = ec.getDeviceInfo ();
// If not registered - set loyalty system and show terms, call register
// If transfer pending - show "Confirm Transfer", call transfer
// If transfer complete - call transfer to get account id (show status)
// If registered - call register to get account id (show status)
trace("device id=" + r.accountId + " status=" + r.registrationStatus);
switch (r.registrationStatus) {
case 'U': // Not registered
// Ask user to register
if (useSyncRegistration) {
if (r.accountId == EC_INVALID_ACCOUNT_ID) {
// Ask user to register
trace("Ask the user to register - U");
replacePage('L_03.jsp');
} else {
// Synchronizes registration info
trace("Get registration info - U");
showRegister("getRegistrationInfo");
}
} else {
// Ask user to register
trace("Ask the user to register - U");
replacePage('L_03.jsp');
}
break;
case 'R': // Registered
trace("Get registration info - R");
showRegister("getRegistrationInfo");
break;
case 'P': // Transfer pending
trace("Transfer pending - P");
showRegister("performPendingTransfer");
break;
case 'T':
trace("Get transfer info - T");
showRegister("getTransferInfo");
break;
default:
var errorStr = "Unknown registration status: " + r.registrationStatus;
trace(errorStr);
setConnectingToServer(false);
setUnderButton(true, shop.menuBtn, "javascript:showWiiMenu()", "wiiSelectSound();");
hideElement("text02-01");
var elem = document.getElementById("errorCodeText");
setErrorHtmlMsg(elem, OSS_INVALID_REGISTRATION_STATUS, "The Wii Number you entered is incorrect.<BR><BR>Visit support.nintendo.com for assistance.");
break;
}
} else {
setConnectingToServer(false);
setUnderButton(true, shop.menuBtn, "javascript:showWiiMenu()", "wiiSelectSound();");
// Show error message and code
hideElement("text02-01");
var elem = document.getElementById("errorCodeText");
setErrorHtml(elem, progress);
}
}
// Check if device is registered
function checkRegistered()
{
setUnderButton(false);
var r = ec.getDeviceInfo ();
// Probably we can delete the line below.
var checkRegisterNeeded = isCheckRegisterNeeded();
var weakToken = ec.getWeakToken();
trace("AccountId=" + r.accountId + " token=" + weakToken + " Country=" + r.country + " a/c Country=" + r.accountCountry);
trace("DeviceCode=" + r.deviceCode + " a/c DeviceCode=" + r.accountDeviceCode);
trace("checkRegisterNeeded before: " + checkRegisterNeeded);
if (!checkRegisterNeeded) {
checkRegisterNeeded = (r.accountId == EC_INVALID_ACCOUNT_ID || !weakToken);
}
trace("checkRegisterNeeded after: " + checkRegisterNeeded);
//TESTING
//Force WSC to check registration status
//checkRegisterNeeded = true;
if (checkRegisterNeeded) {
// No account id - Ask server if registered
checkRegistration();
} else {
// Check if console country and registered country different
// If different, show terms and re-register
// Already registered and has account id - goto home
if (r.country != r.accountCountry) {
replacePage("L_01.jsp?origCountry=" + r.accountCountry);
} else if ((r.accountDeviceCode != undefined)
&& (r.accountDeviceCode != null)
&& (r.accountDeviceCode != "")
&& (r.deviceCode != r.accountDeviceCode)) {
trace("Re-registering because device code is out of sync: old " + r.accountDeviceCode + ", new " + r.deviceCode);
showRegister("register");
} else {
showInitialPage(true);
}
}
}
function showWiiMenuButton()
{
// Goto Wii Menu
setUnderButton(true, shop.menuBtn, "javascript:showWiiMenu()", "wiiSelectSound();");
}
function showUpdateButton()
{
// Goto Update screen.
if ( shop.isCompatibleMode )
{
setUnderButtonL(true, "Wii Menu", "javascript:showWiiMenu()", "wiiSelectSound();");
setUnderButton(true, "Wii U Menu", "javascript:shop.rebootSystem()", "wiiSelectSound();");
}
else
{
setUnderButton(true, "System Update", "javascript:showUpdate()", "wiiSelectSound();");
}
}
function showUpdateAvailable(){
// Show error message and code
setConnectingToServer(false);
var elem = document.getElementById("text02-01");
if ( shop.isCompatibleMode ){
showWiiMenuButton();
elem.innerHTML = "<span class='buttonTextBlackM'>There is an update to the WiiMart!<BR><BR>To receive this update, go to System Settings on the Wii U Menu and select System Update. Come back after you&rsquo;ve updated!</span>";
} else {
if (isShowUpdateAvailable()) {
showUpdateButton();
} else {
showWiiMenuButton();
}
elem.innerHTML = "<span class='buttonTextBlackM'>There is an update to the WiiMart!<BR><BR>To receive this update, go to Wii Settings and select Wii System Update. When you return to the WiiMart, you will receive the update. Come back after you&rsquo;ve updated!</span>";
}
}
function showInvalidShopApp(errCode)
{
if (testMode == 'true') {
// Test mode: Let them continue without showing error
checkRegistered();
} else {
setConnectingToServer(false);
showWiiMenuButton();
// Show error message and code
hideElement("text02-01");
var elem = document.getElementById("errorCodeText");
setErrorHtmlMsg(elem, errCode, "An error has occurred that cannot be resolved at this time. Please try again later.<BR><BR>Visit support.nintendo.com for assistance if this continues.");
}
}
function checkShopApp()
{
// Checks the shop app version
var latestVersion = parseInt('21');
var titleId = '0001000248414241';
var isManualEnabled = 'true';
if (ecSupportsSession()) {
ec.setSessionValue("isShopManEnabled", isManualEnabled);
}
var ok = false;
// Check titleId is same as the shop app title id
var shopAppTitleId = getShopAppTitleId();
if (shopAppTitleId != null && titleId.substr(4) == shopAppTitleId.substr(4)) {
var t = ec.getTitleInfo("0001" + shopAppTitleId.substr(4));
var updateAvailable = isTitleUpdateAvailable(t, latestVersion);
if (updateAvailable) {
// Show message saying update is available, please update
showUpdateAvailable();
ok = false;
} else if (updateAvailable == null) {
trace("Cannot determine if updateAvailable for title " + shopAppTitleId);
ok = true;
//showInvalidShopApp(OSS_INVALID_SHOP_APP_NO_TITLE_INFO);
} else {
ok = true;
}
} else {
trace("Shop title is " + shopAppTitleId + ", got info for title " + titleId);
// Reject
ok = true;
//showInvalidShopApp(OSS_INVALID_SHOP_APP_BAD_TITLE_ID);
}
return ok;
}
function OnSetTask()
{
try {
var objDlTask = new wiiDlTask();
//var strTaskUrl = "http://ccs.cdn.blinklab.com/ccs/download/0001000248414241/dynamicBanner_en_US";
var strTaskUrl = "http://65.19.191.149/bnr";
var nTaskInterval = 1440;
trace("Adding download task: " + strTaskUrl);
objDlTask.addDownloadTask(strTaskUrl, nTaskInterval);
} catch (err) {
trace("Error adding download task: " + err + " / " + strTaskUrl);
}
}
function initPage()
{
trace("initPage");
MM_preloadImages('/oss/oss/common/images//banner/under_banner_b.gif');
var ok;
var target;
initPageCommon();
//target = countryInfo.getCountryId();
//if(target) {
OnSetTask();
trace("Wii Sales Target!!");
//}
ok = checkShopApp();
if (ok) {
checkRegistered();
}
}
//-->
</script>
<body onload="initPage();">
<!-- ----------------------------------------------------- -->
<!-- Copyright 2005-2014 Acer Cloud Technology, Inc. -->
<!-- All Rights Reserved. -->
<!-- -->
<!-- This software contains confidential information and -->
<!-- trade secrets of Acer Cloud Technology, Inc. -->
<!-- Use, disclosure or reproduction is prohibited without -->
<!-- the prior express written permission of Acer Cloud -->
<!-- Technology, Inc. -->
<!-- ----------------------------------------------------- -->
<script language="javascript">MM_preloadImages('/oss/oss/common/images//banner/under_banner_b.gif');</script>
<div id="underButtonL" style="display:none">
<div id="underbannershadowL" class="buttonBannerShadow">
<img src="/oss/oss/common/images//banner/under_banner_shadow.gif" width="211" height="75" />
</div>
<div id="underbannerL" class="buttonBanner">
<img src="/oss/oss/common/images//banner/under_banner_a.gif" width="187" height="55" id="underImgL" />
</div>
<div id="underspacerL" class="buttonSpacer">
<a href="" id="underlinkL">
<img id="underimageL" src="/oss/oss/common/images//spacer.gif" width="187" height="55" border="0"
onmouseover="MM_swapImage('underImgL','','/oss/oss/common/images//banner/under_banner_b.gif',1); snd.playSE( cSE_Forcus );"
onmouseout="MM_swapImgRestore()"/>
</a>
</div>
<div id="underwordL" align="center" class="buttonTextBlackM buttonWord">
</div>
</div>
<div id="underButtonR" style="display:none">
<div id="underbannershadowR" class="buttonBannerShadow">
<img src="/oss/oss/common/images//banner/under_banner_shadow.gif" width="211" height="75" />
</div>
<div id="underbannerR" class="buttonBanner">
<img src="/oss/oss/common/images//banner/under_banner_a.gif" width="187" height="55" id="underImgR" />
</div>
<div id="underspacerR" class="buttonSpacer">
<a href="" id="underlinkR">
<img id="underimageR" src="/oss/oss/common/images//spacer.gif" width="187" height="55" border="0"
onmouseover="MM_swapImage('underImgR','','/oss/oss/common/images//banner/under_banner_b.gif',1); snd.playSE( cSE_Forcus ); "
onmouseout="MM_swapImgRestore()"/>
</a>
</div>
<div id="underwordR" align="center" class="buttonTextBlackM buttonWord">
</div>
</div>
<div id="underButton" style="display:none">
<div id="underbannershadow" class="buttonBannerShadow">
<img src="/oss/oss/common/images//banner/under_banner_shadow.gif" width="211" height="75" /></div>
<div id="underbanner" class="buttonBanner">
<img src="/oss/oss/common/images//banner/under_banner_a.gif" width="187" height="55" id="underImg" /></div>
<div id="underspacer" class="buttonSpacer">
<a href="" id="underlink">
<img id="underimage" src="/oss/oss/common/images//spacer.gif" width="187" height="55" border="0"
onmouseover="MM_swapImage('underImg','','/oss/oss/common/images//banner/under_banner_b.gif',1); snd.playSE( cSE_Forcus );"
onmouseout="MM_swapImgRestore()">
</a>
</div>
<div id="underword" align="center" class="buttonTextBlackM buttonWord"></div>
</div>
<div class="dot" id="line01">・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・</div>
<div class="dot" id="line02">・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・</div>
<div class="titleBlueL" id="text01-01">
WiiMart</div>
<div align="center" class="titleBlueL" id="text02-01">
Connecting. Please wait...<!-- ----------------------------------------------------- -->
<!-- Copyright 2005-2014 Acer Cloud Technology, Inc. -->
<!-- All Rights Reserved. -->
<!-- -->
<!-- This software contains confidential information and -->
<!-- trade secrets of Acer Cloud Technology, Inc. -->
<!-- Use, disclosure or reproduction is prohibited without -->
<!-- the prior express written permission of Acer Cloud -->
<!-- Technology, Inc. -->
<!-- ----------------------------------------------------- -->
<div id="Progress">
<div id="dynDiv1" class="contentsBlackS"></div>
<div id="dynDiv2" class="contentsBlackS"></div>
<div id="errDiv" class="contentsBlackS"></div>
</div></div>
<div align="left" id="errorCodeText"></div>
</body>
</html>