requiresVerification()?" Please click the link in the email we just sent you to verify your email address.":""));
class WelcomeModule extends Module{
private $isFirstTime;
////
// If isFirstTime is set to false, then it is assumed this is being used in a different context (such as the 'help' seciton) and should not
// be collapsable or contain the success-message from registration.
////
public function WelcomeModule($isFirstTime=false){
$moduleClass = "welcome";
parent::Module($moduleClass, ucfirst(STR_WELCOME_TO_SITE), "$moduleClass.png", nextNum());
$this->isFirstTime = $isFirstTime;
$showStyle = $this->isFirstTime ? " style='display:none'" : "";
$hideStyle = $this->isFirstTime ? "" : " style='display:none'";
$this->setTitleBarSuffix("hideshow");
}
public function getContent(){
ob_start();
if($this->isFirstTime){
$msg = STR_WIN_REGISTRATION;
if((getPost('returnTo') != "") && (getPost('returnTo') != "/home.php")){
// NOTE: Since this generally will only occur when ppl are signing up just to access a specific account, it may be worthwhile to log 'returnTo' to find out who is drawing users to the site.
$msg .= "
If you would like, you can return to the page that sent you here.";
}
dispMsg($msg, 'success');
}
$username = getUser()->getUsername();
$displayStyle = $this->isFirstTime ? "" : "display: none;";
print "