[Pmwiki-users] Create a Wiki page through a script
Patrick R. Michaud
pmichaud
Thu Aug 26 06:40:23 CDT 2004
On Thu, Aug 26, 2004 at 06:45:57AM +0200, Thomas Weibel wrote:
> To do so, I use a normal Wiki page with an embedded form to login. This works
> great if I create the page manually but I couldn't figure out how to write the
> page through my script if it doesn't exist.
> [...]
> How can I create Main.Login or any other page within a script?
Try:
if (!PageExists('Main.Login')) {
$page['text'] = '[[authform]]';
WritePage('Main.Login',$page);
}
Pm
More information about the pmwiki-users
mailing list