<?php
/***************************************************************************
- * Copyright (C) 2003-2011 Polytechnique.org *
+ * Copyright (C) 2003-2014 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
{
return array(
'fxletter' => $this->make_hook('nl', AUTH_COOKIE, 'user'),
- 'fxletter/out' => $this->make_hook('out', AUTH_PUBLIC),
+ 'fxletter/out' => $this->make_hook('out', AUTH_COOKIE, 'user'),
'fxletter/show' => $this->make_hook('nl_show', AUTH_COOKIE, 'user'),
'fxletter/search' => $this->make_hook('nl_search', AUTH_COOKIE, 'user'),
'fxletter/admin' => $this->make_hook('admin_nl', AUTH_PASSWD, 'user'),
function handler_out($page, $hash = null, $issue_id = null)
{
+ $hash = ($hash == 'nohash') ? null : $hash;
if (!$hash) {
if (!S::logged()) {
return PL_DO_AUTH;
}
}
-// 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:
?>