Unsubscribe'; if (!isset($pageHeaderText)) $pageHeaderText = 'Unsubscribe'; if (!isset($mainContentText)) $mainContentText = '

You have been successfully unsubscribed from our email marketing promotional emails. We appreciate your time and please contact us if we can be of service in the future.

If you used this link in error and would like to re-subscribe to our email marketing program, please click here to re-subscribe.

'; if (!isset($mainContent2Text)) $mainContent2Text = ''; // Template defaults if (!isset($TemplateParser)) $TemplateParser = $Root.'/inc/OpenTemplateParser.class.php'; if (!isset($TEMPLATEDOCTITLE)) $TEMPLATEDOCTITLE = 'doctitle'; if (!isset($TEMPLATEPAGEHEADER)) $TEMPLATEPAGEHEADER = 'PageHeader'; if (!isset($TEMPLATEHEAD)) $TEMPLATEHEAD = 'head'; if (!isset($TEMPLATEMAINCONTENT01)) $TEMPLATEMAINCONTENT01 = 'MainContent01'; if (!isset($TEMPLATEMAINCONTENT02)) $TEMPLATEMAINCONTENT02 = 'MainContent02'; if (is_file($TemplateParser)) include_once($TemplateParser); else error_out('Template Parser not Found: '.$TemplateParser."\n"); // check for clientVDSID, could have a $ClientID in the Config.php if (!$clientVDSID) if (!$ClientID) error_out('No ClientID or clientVDSID given'); else $clientVDSID=$ClientID; // check for EToken - spiders don't use URL variables if ((!isset($URL_ET) && !isset($URL_FT) && !isset($URL_mid)) || ($URL_ET=='' && $URL_FT=='' && $URL_mid=='')) { exit('

Unsubscribe cannot be used without a tracking link at this time. Please refer to your email for the link.

'); } $TemplateName = get_web_page('http://smart-capture.vdsys.com/services/curl-unsubscribe.php?cid='.$clientVDSID.'&ET='.$URL_ET.'&FT='.$URL_FT.'&mid='.$URL_mid.'&Reason='.$Reason); if ($TemplateName != 'none') { $Template = $Root.'/Templates/'.$TemplateName; if (is_file($Template))$page = new TemplateParser($Template); else { echo $mainContentText.'

'; } $page->setSection($TEMPLATEDOCTITLE, $docTitleText); $page->setSection($TEMPLATEPAGEHEADER, $pageHeaderText); $page->setSection($TEMPLATEMAINCONTENT01, $mainContentText); $page->setSection($TEMPLATEMAINCONTENT02, $mainContent2Text); if (is_array($addTemplateSection)) { foreach ($addTemplateSection as $section=>$content) { $page->setSection($section, $content); } } $page->printPage(); } else { echo $mainContentText.'

'; } exit();