Execute($sql); $newsletter_recipients_history = $oostable['newsletter_recipients_history']; $dbconn->Execute("INSERT INTO $newsletter_recipients_history (recipients_id, new_value, date_added) VALUES ('" . intval($sID) . "', '1', now())"); oos_redirect(oos_href_link($aContents['newsletter'], 'subscribe=success')); } $oBreadcrumb->add($aLang['navbar_title'], oos_href_link($aContents['newsletter'])); $sCanonical = oos_href_link($aContents['newsletter'], '', FALSE, TRUE); $aTemplate['page'] = $sTheme . '/page/newsletter.html'; $sPagetitle = $aLang['heading_title'] . ' ' . OOS_META_TITLE; $nPageType = OOS_PAGE_TYPE_SERVICE; require_once MYOOS_INCLUDE_PATH . '/includes/system.php'; if (!isset($option)) { require_once MYOOS_INCLUDE_PATH . '/includes/message.php'; require_once MYOOS_INCLUDE_PATH . '/includes/blocks.php'; } // assign Smarty variables; $smarty->assign( array( 'breadcrumb' => $oBreadcrumb->trail(), 'heading_title' => $aLang['navbar_title'], 'canonical' => $sCanonical ) ); // display the template $smarty->display($aTemplate['page']);