[pmwiki-devel] PostPage in recipe

Hans design5 at softflow.co.uk
Sun Mar 29 18:23:50 CDT 2009


Sunday, March 29, 2009, 10:43:08 PM, Frank wrote:

>  As to my understanding right now, UpdatePage is NOT a 
> function that is safe to be used directly in config.php includes.

but you don't need to.
You can create an action 'ejselements'
and have everything in one function HandleFrankobot(), which
gets called with ?action=ejselements from the url, or from a
link somewhere on a site admin page perhaps.

$HandleActions['ejselements'] = 'HandleFrankobot';

$HandleAuth['ejselements'] = 'admin';

function HandleFrankobot($pagename, $auth) {

      .....
      UpdatePage(.........);
      ....
      HandleBrowse($pagename);
}


Hans




More information about the pmwiki-devel mailing list