array("#ACTIVATION-URL","#USERNAME#"), "subjectStrs" => array($activation_url,$userdetails["display_name"]) ); if(!$mail->newTemplateMsg("resend-activation.txt",$hooks)) { $errors[] = lang("MAIL_TEMPLATE_BUILD_ERROR"); } else { if(!$mail->sendMail($userdetails["email"],"Activate your ".$websiteName." Account")) { $errors[] = lang("MAIL_ERROR"); } else { //Success, user details have been updated in the db now mail this information out. $successes[] = lang("ACCOUNT_NEW_ACTIVATION_SENT"); } } } } } } } } //Prevent the user visiting the logged in page if he/she is already logged in if(isUserLoggedIn()) { header("Location: account.php"); die(); } require_once("models/header.php"); echo "

UserCake

Resend Activation

"; include("left-nav.php"); echo "
"; echo resultBlock($errors,$successes); echo "
"; //Show disabled if email activation not required if(!$emailActivation) { echo lang("FEATURE_DISABLED"); } else { echo "

"; } echo "
"; ?>