"/") {$defaults .= "/";} $defaults .= "defaults.inc"; include $defaults; load_site_module("database"); load_site_class("site"); load_site_class("ezine_signup"); $site = new SITE_INFORMATION(); $site->assign("site_directory", $include_path . "/site"); $site->nocache(); $site->add_hit(); $site->save_customer_record(); $ezine = new EZINE_SIGNUP_CLASS(); $HTTP_POST_VARS = &$GLOBALS["HTTP_POST_VARS"]; if (isset($HTTP_POST_VARS["customer_email"])) { $email = $HTTP_POST_VARS["customer_email"]; } $action_msg = ""; if ($actionbutton == "UNSUBSCRIBE") { if ($ezine->remove_customer($email)) { $action_msg = "Email Address removed from Ezine mailing list"; } else { $ezine_error = $ezine->error(); $ezine_error_string = $ezine->get_error_string(); $ezine->reset_error; } } if ($actionbutton == "ENABLE MAILINGS") { if ($ezine->enable_mailings($email)) { $action_msg = "Ezine mailing enabled for address"; } else { $ezine_error = $ezine->error(); $ezine_error_string = $ezine->get_error_string(); $ezine->reset_error; } } if ($actionbutton == "DISABLE MAILINGS") { if ($ezine->disable_mailings($email)) { $action_msg = "Ezine mailing disabled for address"; } else { $ezine_error = $ezine->error(); $ezine_error_string = $ezine->get_error_string(); $ezine->reset_error; } } if (isset($ezine_error)) { switch ($ezine_error) { case 10001: $action_msg = "* Email Address is Required"; break; case 10003: $action_msg = "* Email Address not registered"; break; } } ?> display_head(); ?>
">
INSPIRING WORDS
EZINE MAINTENANCE FORM
"") { ?>
*\n"); } ?> Email Address
Go back to previous page