[Pmwiki-users] Create a Wiki page through a script

Patrick R. Michaud pmichaud
Thu Aug 26 09:05:52 CDT 2004


On Thu, Aug 26, 2004 at 04:26:07PM +0200, Thomas Weibel wrote:
> > Ummmm, I'm not sure I understand entirely.  You want the Main.Login
> > page to be created with a password already in place?  No problem:
> > [..]
> > Or, if you just want the page to be completely locked against editing
> > except by the admin password,  use $page['passwdedit'] = '*'; instead.
> 
> But when I use it in an existing installation of PmWiki where admin
> and edit passwords are set, my script can't create the login page -> 
> an endless loop gets started because WritePage needs authorization:
> [...]

Ummm, WritePage never needs authorization -- it simply writes the
page to disk.  You may be confusing it with HandlePost, which checks 
for authorization before posting a new page.

Pm



More information about the pmwiki-users mailing list