X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Faxletter.php;h=3b19bc374dc70857bdde0e222506f45d7cb0a76e;hb=1aff3b59c0f46dafe3396c1123a252645805e233;hp=4ebf134ffecd632963e44a03cfd93588071ae57f;hpb=1ea2d001c2511d30bae13fe3aed0e698919380a8;p=platal.git diff --git a/modules/axletter.php b/modules/axletter.php index 4ebf134..3b19bc3 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -1,6 +1,6 @@ $this->make_hook('nl', AUTH_COOKIE, 'user'), - 'ax/out' => $this->make_hook('out', AUTH_PUBLIC), + 'ax/out' => $this->make_hook('out', AUTH_COOKIE, 'user'), 'ax/show' => $this->make_hook('nl_show', AUTH_COOKIE, 'user'), 'ax/search' => $this->make_hook('nl_search', AUTH_COOKIE, 'user'), 'ax/admin' => $this->make_hook('admin_nl', AUTH_PASSWD, 'user'), @@ -36,6 +36,7 @@ class AXLetterModule extends NewsletterModule 'ax/admin/edit/cancel' => $this->make_hook('admin_nl_cancel', AUTH_PASSWD, 'user'), 'ax/admin/edit/delete' => $this->make_hook('admin_nl_delete', AUTH_PASSWD, 'user'), 'ax/admin/categories' => $this->make_hook('admin_nl_cat', AUTH_PASSWD, 'user'), + 'ax/stat' => $this->make_hook('stat_nl', AUTH_PASSWD, 'user') ); } @@ -47,6 +48,7 @@ class AXLetterModule extends NewsletterModule function handler_out($page, $hash = null, $issue_id = null) { + $hash = ($hash == 'nohash') ? null : $hash; if (!$hash) { if (!S::logged()) { return PL_DO_AUTH; @@ -56,5 +58,5 @@ class AXLetterModule extends NewsletterModule } } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>