"); define("PROMOS","Periodical Special Promotions, Updates and Announcements"); define("HEALTH","Healthy Lifestyle News"); define("LIFESTYLES","Inspired Lifestyles Newsletter"); define("BIZNEWS","Inspired Biz News"); include("exitconfig.php"); $confirm = $_GET['confirm']; if( $confirm == "yes" ) : $userid = $_GET['id']; $special = $_GET['s']; $hlnews = $_GET['h']; $ilnews = $_GET['i']; $ibnews = $_GET['b']; // now we need to set the confirmed field in phplist_user_user to 1 connect_database(); use_database(); $result = @mysql_query("SELECT * FROM phplist_user_user WHERE id=\"$userid\" "); if (!$result) { echo("Unable to update database at this time (7)."); exit(); } $row = mysql_fetch_array($result); $email = $row["email"]; $result = @mysql_query("UPDATE phplist_user_user SET confirmed=1 WHERE id=\"$userid\" "); if (!$result) { echo("Unable to update database at this time (8)."); exit(); } $subscription = ""; $message = ""; if( $s == "yes" ) { $subscription = $subscription . PROMOS . EOLHTML . EOLHTML; $message = $message . PROMOS . EOL; } if( $h == "yes" ) { $subscription = $subscription . HEALTH . EOLHTML . EOLHTML; $message = $message . HEALTH . EOL; } if( $i == "yes" ) { $subscription = $subscription . LIFESTYLES . EOLHTML . EOLHTML; $message = $message . LIFESTYLES . EOL; } if( $b == "yes" ) { $subscription = $subscription . BIZNEWS . EOLHTML . EOLHTML;\ $message = $message . BIZNEWS . EOL; } mail($sysemail, "Subscription Confirmed!"," A visitor at $email just confirmed subscription(s) to $message ","From: $email"); ?>
Thank You!
You are successfully subscribed to:
=$subscription?>
You have subscribed to:
");
store_in_table(NEWS, $newuser); // Save in NEWS table
$partial = $partial . "&s=yes";
$subscriptions = $subscriptions . PROMOS . EOL;
}
if( $hlnews == "yes" ) {
echo("* " . HEALTH . "
");
store_in_table(HEALTHYLIFESTYLE, $newuser); // Save in HEALTHYLIFESTYLE table
$partial = $partial . "&h=yes";
$subscriptions = $subscriptions . HEALTH . EOL;
}
if( $ilnews == "yes" ) {
echo("* " . LIFESTYLES . "
");
store_in_table(INSPIREDLIFESTYLE, $newuser); // Save in INSPIREDLIFESTYLE table
$partial = $partial . "&i=yes";
$subscriptions = $subscriptions . LIFESTYLES . EOL;
}
if( $ibnews == "yes" ) {
echo("* " . BIZNEWS . "
");
store_in_table(BIZ, $newuser); // Save in BIZ table
$partial = $partial . "&b=yes";
$subscriptions = $subscriptions . BIZNEWS . EOL;
}
?>
Please check your inbox for a confirmation email. When you click on the link in that email, your subscription(s) will be confirmed. If you do not wish to be subscribed, you need do nothing.
Thank You!
|
Thank
you for visiting =$titleurl?>. |