<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.*" import="com.tootsville.user.*" import="org.starhope.appius.user.*" import="org.starhope.appius.mb.Messages" import="org.starhope.appius.types.AgeBracket" import="org.starhope.appius.mb.UserEnrolment" import="com.tootsville.WebUtil" %><% String url = "/membership/"; //---------- Universal Declarations: Place this on every page. /** * Parent/User object. On myAccount this should be declared User and on parent this should be declared Parent */ Toot sessionUser=null; /** * Error message list */ HashMap err = new HashMap (); %><% //----------- Verify the session and create a User or Parent Object //----------- This should be placed on any of the 'logged in' sections on the website. String userID=session.getAttribute("sUserID").toString(); String userPassword=session.getAttribute("sUserPassword").toString(); String userType=session.getAttribute("sUserType").toString(); if (userType.equals(WebUtil.USER)) { sessionUser=WebUtil.verifyUserLogin(userID, userPassword); } else if (userType.equals(WebUtil.PARENT)) { System.err.println("A parent is snooping around."); url = "/membership/"; } if (null==sessionUser) { System.err.println ("User (" + userID + ") is unable to get a reference."); err.put("username", Messages.getText("login_invalid")); session.setAttribute("sError", err); url = "/membership/"; } else if (null==sessionUser.getResponsibleMail()) { System.err.println(sessionUser.getUserName() + " doesn't have an e-mail! Redirecting to prompt."); err.put("email", Messages.getText("mail_not_on_file")); session.setAttribute("sError", err); url = "/membership/register/email"; } if (err.size() > 0) { session.setAttribute("sError", err); response.sendRedirect(url); } else { %> Tootsville™ Membership

Manage My Player Account

Welcome to Manage My Player Account.

Manage My Account

<%= sessionUser.getDisplayName() %>'s Profile Current Peanuts: <%= sessionUser.getPeanuts() %>
E-mail: <%= sessionUser.getResponsibleMail() %>
Status: <%= sessionUser.isActive() ? "Active" : ""%> <%= sessionUser.isCanceled() ? "Canceled" : ""%> <%= sessionUser.isBanned() ? "Banned" : "" %> <%= sessionUser.isKicked() ? "Kicked: "+ sessionUser.getKickedMessage() + "" : "" %>
<% if (!sessionUser.isApproved()) { if (AgeBracket.Kid==sessionUser.getAgeGroup()) { %>Pending Parent Approval
Chat feature disabled. Parent Approval is required to chat in world.
Please have your parent check their email.
<% } else { %>Pending E-mail Verification
Chat feature disabled. E-mail verification is required to chat in world.
Please verify your email.
<% } } %>

<% if (!sessionUser.isPaidMember()) {%>
<% } UserEnrolment[] enrolments = sessionUser.getUserEnrolmentsAsArray (); if (enrolments.length > 0) { %>
Subscription Information
<% for ( UserEnrolment enrolment : enrolments ) { if (enrolment.isActive ()) {%>
<% } else {%>
Expired:
<% }%> Start Date: <%= Messages.prettyDate(enrolment.getBegins()) %> Expiration Date: <%= Messages.prettyDate(enrolment.getExpires()) %>
Membership Type: <%= enrolment.getEnrolment ().getTitle() %>
<%= enrolment.isRecurring() && enrolment.isActive () ? "Automatically Renewing" : "" %>
<% } %>
<% } %>

Would you like to update your password? Please enter your old password then enter your new password twice and hit submit!

Old Password:

New Password:
Confirm New Password:

Peanut codes contain special, online values to be used in Tootsville™.com.
Do you have a peanut code?

Please enter your peanut code to redeem its value.
Peanut Code:

Do you have a Chase-It eCode?

If you have purchased a Chase-It eCode and you wish to apply its value to this account, please enter it below.
Chase-It eCode:
<% } %>