Please follow the link in the message to confirm your subscription.
require_once("_innards/d.inc.common.php"); require_once("_innards/d.class.subscriber.php"); // display switching $show = 'signup'; $subscriber = new subscriber; // check to see if were confirming a sub if ( isset( $_GET['confirm'] ) && $_GET['confirm'] != '' ) { $hash = cleanText($_GET['confirm']); if ( !$hash ) { $errors[] = 'Missing confirmation code, please check you have entered the whole link from the message'; } $result = $subscriber->confirmSubscriptionByHash( $hash ); if ($result == MODERATED) { $show = 'moderated'; } else if ( $result ) { // ooh, something annoyingly bad happened } else { // all good, yeye! $show = 'confirmed'; } // check to see if we have any data coming in to save } else if ( isset($_POST['dataPosted']) ) { $result = $subscriber->readFromArray($_POST); if ( ! $result ) { $subscriber->sendAddressConfirmationMessage(); if ( isset($_POST['redirect']) ) { $url = eregi_replace('"\';', '', $_POST['redirect']); redirect( $url ); } $show = 'confirm'; } } $subscriber->getAllMessages(); ?>
@print(file_get_contents('_stationary/customisation/pageHeadPublic.html')); ?> switch ($show) { case 'confirm': ?>Please follow the link in the message to confirm your subscription.
Thanks for confirming your subscription! You are subcribed with the email address = $subscriber->_emailAddress ?>
Thanks for confirming your email address, your subscription is pending moderation. if ( $d_sendWelcomeMessage ) { ?> You will recieve a welcome message if your subscription is approved. } ?>