[pmwiki-users] Re: PHP code in pages

Patrick R. Michaud pmichaud at pobox.com
Thu Jun 30 09:54:29 CDT 2005


On Thu, Jun 30, 2005 at 02:37:51PM +0000, Anno wrote:
> > As the comments indicate, it's *really* dangerous if you have any
> > reason to mistrust the authors/editors of the pages, since you're
> > basically allowing them to execute any command on the system.
> 
> 
> Thank you!
> Yes, I know it is dangerous.
> Therefore I would like the function to first check whether 
> the page is protected by the admin password, and only then 
> the php code is evaluated. How would I do this?

What do you mean "protected by the admin password"... do you mean
you want to verify that the current person viewing the page is an 
admin, or you want to verify that the page is locked against 
editing except by the admin?

Pm



More information about the pmwiki-users mailing list