true, 'local'=>true) ); // +-----------------------------------------------------------------------+ // | Main | // +-----------------------------------------------------------------------+ if (isset($_GET['subscribe']) and preg_match('/^[A-Za-z0-9]{16}$/', $_GET['subscribe'])) { subscribe_notification_by_mail(false, array($_GET['subscribe'])); } else if (isset($_GET['unsubscribe']) and preg_match('/^[A-Za-z0-9]{16}$/', $_GET['unsubscribe'])) { unsubscribe_notification_by_mail(false, array($_GET['unsubscribe'])); } else { array_push($page['errors'], l10n('Unknown identifier')); } // +-----------------------------------------------------------------------+ // | template initialization | // +-----------------------------------------------------------------------+ $title = l10n('Notification'); $page['body_id'] = 'theNBMPage'; $template->set_filenames(array('nbm'=>'nbm.tpl')); // include menubar $themeconf = $template->get_template_vars('themeconf'); if (!isset($themeconf['hide_menu_on']) OR !in_array('theNBMPage', $themeconf['hide_menu_on'])) { include( PHPWG_ROOT_PATH.'include/menubar.inc.php'); } // +-----------------------------------------------------------------------+ // | html code display | // +-----------------------------------------------------------------------+ include(PHPWG_ROOT_PATH.'include/page_header.php'); include(PHPWG_ROOT_PATH.'include/page_messages.php'); $template->parse('nbm'); include(PHPWG_ROOT_PATH.'include/page_tail.php'); ?>