id); // add true as a second param if u wanna use usernames instead $username = $info->username; $email = $info->email; $obfuscatedemail = obfuscate_email($info->email); $blurb = $info->blurb; $verified = (int)$info->verified; //blurb stuff if(isset($_POST['blurbtext'])) { setBlurb($_POST['blurbtext']); $alert = ""; //redirect("settings.php"); } // ... //theme stuff if(isset($_POST['submittheme'])) { if(isset($_POST['theme'])) { if (!setTheme($_POST['theme'])) { $alert = ""; } } else { $alert = ""; } } // ... //canjoin stuff if(isset($_POST['submitcanjoin'])) { if(isset($_POST['canjoin'])) { if (!setCanJoinUser($_POST['canjoin'])) { $alert = ""; } } else { $alert = ""; } } // ... //email verification stuff if(isset($_POST['verifyemail'])) { $send = sendVerificationEmail("info@alphaland.cc", $email); if ($send == 3) { $alert = ""; } elseif ($send == 2) { $alert = ""; } elseif ($send == 1) { $alert = ""; } //redirect("settings.php"); } //referral program stuff $referralbuttonhtml = ""; //i know this is a terrible implementation but this page isnt js powered yet if (inReferralProgram($GLOBALS['user']->id)) { $referralbuttonhtml = 'Referrals'; } $verified_html = ''; if ($verified == 1) { $verified_html = ' Verified

'; } elseif ($verified == 0) { $verified_html = ''; } // ... $currentcanjoinstatus = getCurrentCanJoinStatus(); $currenttheme = getCurrentTheme(); $body = <<
{$alert}
Settings
Account Settings
Username:

{$username}


Email:

{$obfuscatedemail} Change {$verified_html}


Password:

Blurb:
Security Settings
More advanced security features coming soon!
Privacy Settings
Who can send me trades:

Who can join me:

Theme Settings
Current Theme:

Referral Program
Maximum of two referral codes every 2 weeks.


Date Generated Signup Key
EOT; pageHandler(); $ph->pageTitle("Settings"); $ph->body = $body; $ph->output();