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 "
\n"; print "Thanks for joining the site, you're one of us now!

\n"; print "We've just begun to refurbish the site so that users can add content. There is just one person programming this as a side-job, so please "; print "be patient but don't hesitate to contact me to tell me if something is wrong "; print "or just to pester me to code faster!"; print "
\n"; $content = ob_get_contents(); ob_end_clean(); return $content; } } // end class WelcomeModule ?>