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

You have been successfully subscribed to 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 unsubscribe from our email marketing program, please click here to unsubscribe.

'; 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($TemplateParser); else error_out("Template Parser not Found: $TemplateParser\n"); // check for clientVDSID, could have a $ClientID in config-subscribe.php if (!isset($clientVDSID)) { if (!isset($ClientID) || !is_numeric($ClientID) || $ClientID=0) 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('

Subscribe 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-subscribe.php?cid='.$clientVDSID.'&ET='.$URL_ET.'&FT='.$URL_FT.'&mid='.$URL_mid.'&Reason='.$Reason); if ( stristr($TemplateName,'Error getting')!==false ) { if (!isset($_SESSION[$_SERVER['REMOTE_ADDR']])) { $_SESSION[$_SERVER['REMOTE_ADDR']]=1; } if ($_SESSION[$_SERVER['REMOTE_ADDR']] > 10) { exit(); } else { $_SESSION[$_SERVER['REMOTE_ADDR']]++; error_out('Error is: '.$TemplateName); } } 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); } } $mainContentText = $page->getContents(); $mainContentText = str_replace('$EToken$',$URL_ET,$mainContentText); echo $mainContentText; } else { echo $mainContentText.'

'; } exit();