diff --git a/e107_plugins/newsletter/admin_config.php b/e107_plugins/newsletter/admin_config.php index b880e3150..38569ae43 100644 --- a/e107_plugins/newsletter/admin_config.php +++ b/e107_plugins/newsletter/admin_config.php @@ -11,21 +11,25 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/newsletter/admin_config.php,v $ -| $Revision: 1.5 $ -| $Date: 2007-01-27 17:47:29 $ +| $Revision: 1.6 $ +| $Date: 2008-09-22 20:38:26 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("../../class2.php"); -if (!getperms("P")) { +if (!getperms("P")) +{ header("location:".e_BASE."index.php"); - exit; + exit; } $e_sub_cat = 'newsletter'; require_once(e_ADMIN."auth.php"); -if (e_QUERY) { - list($action, $id) = explode(".", e_QUERY); +if (e_QUERY) +{ + list($action, $id, $key) = explode(".", e_QUERY); + $key = intval($key); + $id = intval($id); } else { @@ -42,13 +46,24 @@ if(!e_QUERY) } else { - $function = $action."Newsletter"; - $nl -> $function(); + if ($action == "vs") + { // View subscribers of a newsletter + $nl -> view_subscribers($id); + } + elseif ($action == "remove") + { // Remove subscriber + $nl -> remove_subscribers($id,$key); + } + else + { + $function = $action."Newsletter"; + $nl -> $function(); + } } + class newsletter { - var $message; @@ -100,7 +115,7 @@ class newsletter $text = "