diff options
author | deva <deva> | 2010-02-28 13:11:16 +0000 |
---|---|---|
committer | deva <deva> | 2010-02-28 13:11:16 +0000 |
commit | 332821ecd772d6e2256c8504fe35d0900f1de931 (patch) | |
tree | d5591b907aedd520e9ff3632ddbcffaedae8a0d2 /utils/modules | |
parent | 9cff69d330760c133d2b22c96da7a89e319b2362 (diff) |
View receivers added to admin module.
Diffstat (limited to 'utils/modules')
-rw-r--r-- | utils/modules/newsletter.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/utils/modules/newsletter.php b/utils/modules/newsletter.php index 3ca3f41..3881794 100644 --- a/utils/modules/newsletter.php +++ b/utils/modules/newsletter.php @@ -116,7 +116,8 @@ class Newsletter { // Admin config public $admin_title = "Newsletter"; public $admin_submodules = array("Send newsletter" => "send", - "Config" => "config"); + "Config" => "config", + "View list" => "view"); public function admin_send($action, $vars) { @@ -185,6 +186,20 @@ class Newsletter { } } + public function admin_view($action, $vars) + { + switch($action) { + default: + echo "<p>There are " . sizeof($this->mailinglist->mailinglist) . " receivers:</p>\n"; + echo "<ul>\n"; + foreach($this->mailinglist->mailinglist as $m) { + echo " <li>".xmlenc($m->email)." (added ".date("M jS, Y - H:i:s", $m->timestamp).")</li>\n"; + } + echo "</ul>\n"; + break; + } + } + public function admin($sub, $action, $vars) { switch($sub) { @@ -195,6 +210,10 @@ class Newsletter { case "config": $this->admin_config($action, $vars); break; + + case "view": + $this->admin_view($action, $vars); + break; } } |