Source: site.view [edit]
Function name: team
Arguments:
Description:
Page type: webl
Render function:  
Module: maybeathome

Page source:

// OPTIONALARGS will contain Key on first login, or nil to logout

var sessionkey = wubinfo.cookies.sessionkey ? nil;
if (sessionkey == nil) then
   if (Size(OPTIONALARGS) > 0) then
      sessionkey = OPTIONALARGS[0]
   end
end;
if (Size(OPTIONALARGS) > 0) and (OPTIONALARGS[0] == "nil") then
   sessionkey = nil;
end;
var userInfo = WubCall("siteutil.getSessionInfo", ["maybeathome", sessionkey]);

var ret;

if (userInfo != nil) then
   ret = WubCall("maybeathome.team3", OPTIONALARGS);
else
   ret = WubCall("maybeathome.comingSoon", OPTIONALARGS);
end;