* SOURCE: http://pommo.sourceforge.net/ * * :: RESTRICTIONS :: * 1. This header must accompany all portions of code contained within. * 2. You must notify the above author of modifications to contents within. * ** [END HEADER]**/ /********************************** INITIALIZATION METHODS *********************************/ define('_IS_VALID', TRUE); define('_poMMo_embed', TRUE); if (!defined('_smartyDisplayType')){ define('_smartyDisplayType', 'Display'); } $dirname = dirname(__FILE__); require($dirname.'/bootstrap.php'); $poMMo = & fireup('install'); $dbo = & $poMMo->_dbo; /********************************** SETUP TEMPLATE, PAGE *********************************/ $smarty = & bmSmartyInit(); // subscription forms will be activated from this template // Function $smarty->prepareForSubscribeForm(); // assign referer since this is an embedded form $smarty->assign('referer',htmlspecialchars($_SERVER['PHP_SELF'])); if (_smartyDisplayType == 'Display'){ $smarty->display('subscribe/form.subscribe.tpl'); } else{ $smartyOutput = $smarty->fetch('subscribe/form.subscribe.tpl'); } ?>