$this->make_hook('nl', AUTH_COOKIE, 'user'), 'epletter/out' => $this->make_hook('out', AUTH_COOKIE, 'user'), 'epletter/show' => $this->make_hook('nl_show', AUTH_COOKIE, 'user'), 'epletter/search' => $this->make_hook('nl_search', AUTH_COOKIE, 'user'), 'epletter/admin' => $this->make_hook('admin_nl', AUTH_PASSWD, 'user'), 'epletter/admin/edit' => $this->make_hook('admin_nl_edit', AUTH_PASSWD, 'user'), 'epletter/admin/edit/valid' => $this->make_hook('admin_nl_valid', AUTH_PASSWD, 'user'), 'epletter/admin/edit/cancel' => $this->make_hook('admin_nl_cancel', AUTH_PASSWD, 'user'), 'epletter/admin/edit/delete' => $this->make_hook('admin_nl_delete', AUTH_PASSWD, 'user'), 'epletter/admin/categories' => $this->make_hook('admin_nl_cat', AUTH_PASSWD, 'user'), 'epletter/stat' => $this->make_hook('stat_nl', AUTH_PASSWD, 'user') ); } protected function getNl() { require_once 'newsletter.inc.php'; return NewsLetter::forGroup(NewsLetter::GROUP_EP); } function handler_out($page, $hash = null, $issue_id = null) { $hash = ($hash == 'nohash') ? null : $hash; if (!$hash) { if (!S::logged()) { return PL_DO_AUTH; } } return $this->handler_nl($page, 'out', $hash, $issue_id); } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>