[pmwiki-users] Enabling search only for logged in

ABClf languefrancaise at gmail.com
Mon Feb 6 16:43:42 CST 2012


I assume
(:if auth admin:)
(:searchbox ....:)
(:ifend:)
will hide the search form ; in that case, search action is still
allowed in url (...?action=search...)


You may also be interested in using :
http://www.pmwiki.org/wiki/PmWiki/SecurityVariables#HandleAuth
(password protect any action), depending on what you want to do.
Should block non authentified user to access that action, whatever
they call in url.

Gilles.










2012/2/6 tamouse mailing lists <tamouse.lists at gmail.com>:
> On Mon, Feb 6, 2012 at 5:36 AM, Andrzej Tokarski <phodopus at gazeta.pl> wrote:
>> Hi,
>>
>> How can I create page with something like
>>
>> if (admin_logged_in)
>>  (:searchbox label=$[Go] value=$[Search] focus=on:)
>
> This should be straightforward:
>
> (:if auth admin:)
> (:searchbox ....:)
> (:ifend:)
>
>
>
>>
>> and in config.php:
>>
>> if (!admin_logged_in)
>>  if ($action == 'search') $action = 'browse';
>
> This I don't know about...
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



-- 

---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | languefrancaise at gmail.com
---------------------------------------



More information about the pmwiki-users mailing list