*
*/
require_once "src/base.inc.php";
require_once "src/header.inc.php";
echo "
Email Verification
";
if (isset($_GET['id'])) {
$id = addslashes($_GET['id']);
$post = Post::getBySecretId($id);
if ($post) {
$post->verify();
$post->save();
echo "Your email address has been validated. Your post will be listed"
. " as soon as we approve the content. You will recieve an email when"
. " the post is approved.
";
} else {
echo "Invalid validation ID provided.
";
}
} else {
echo "No validation ID provided.
";
}
require_once "src/footer.inc.php";
?>