assign("site_directory", $include_path . "/site"); $site->nocache(); /* Load customer information */ $cookie_info =& new INSPIRE21_COOKIE_TRACKER_CLASS(); $member_id = $cookie_info->get_member_id(); $site->set_member_id($member_id); $check_id = $site->get_member_id(); /* if ($member_id <> $check_id) { print ('m'.$member_id); print ('c'.$check_id); print ("This is a bug in the email software.
We are working to fix it.
Webmaster
September 28th, 2008"); $temp_id = $member_info->get_member_id(); $cookie_info->set_member_id($member_info->get_member_id()); $cookie_info->save(); } */ // Make sure member is not the guest record if ($site->is_member_guest()) { $member_info->create_new_record(); $cookie_info->set_member_id($member_info->get_member_id()); $cookie_info->save(); // header("Location:/newadmin/new_subscribe_win.html"); // header("Location:/Oops-Sorry.html"); // Need to set to a valid user } /* Removed ezine requirement // If member set but does not subscribe to the ezine // just send member to the member edit page if ($site->is_ezine_subscribed() == FALSE) { header("Location:/Oops-Sorry.html"); } */ $site->add_hit(); $site->save_customer_record(); $site->check_new_postcard_information(); $site->check_postcards_to_be_sent(); $POST_VARS = &$GLOBALS["HTTP_POST_VARS"]; $action = "Display Postcard Form"; if (isset($POST_VARS["actionbutton"])) { $action = $POST_VARS["actionbutton"]; } if (isset($POST_VARS["send_now_x"])) { $action = "SEND NOW"; } if (isset($POST_VARS["see_ecard_x"])) { $action = "SEE eCARD"; } if (isset($POST_VARS["send_on_date_x"])) { $action = "Send on Date"; } switch ($action) { case "SEE eCARD": $site->display_postcard_preview(); break; case "SEND NOW": /* Add Check to see if email address in database */ if ($site->send_postcard("now")) { header("Location: /site/ecards/ecard_sent.html"); } else { $site->display_postcard_form(); } break; case "Display Postcard Form": $site->display_postcard_form(); break; case "Send on Date": /* Add Check to see if email address in database */ $return = $site->send_postcard("on_date"); if ($return == 1) { header("Location: /site/ecards/ecard_tobesent.html"); } if ($return == -1) { header("Location: /site/ecards/ecard_sent.html"); } $site->display_postcard_form(); break; default: $site->display_postcard_form(); break; } ?>