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 <[email protected]>: > On Mon, Feb 6, 2012 at 5:36 AM, Andrzej Tokarski <[email protected]> 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 > [email protected] > http://www.pmichaud.com/mailman/listinfo/pmwiki-users -- --------------------------------------- | A | de la langue française | B | http://www.languefrancaise.net/ | C | [email protected] --------------------------------------- _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
