[Pmwiki-users] Re: Re: Re: Re: Action to provide last modified date and md5 checksum

Christian Ridderström chr
Mon Jul 12 13:15:04 CDT 2004


On Mon, 12 Jul 2004, Patrick R. Michaud wrote:

> On Mon, Jul 12, 2004 at 02:47:06PM +0200, Christian Ridderstr?m wrote:
> > On Mon, 12 Jul 2004, Patrick R. Michaud wrote:
> > > On Mon, Jul 12, 2004 at 10:34:43AM +0200, Christian Ridderstr?m wrote:
> > > > [...] Which reminds me... there ought to 
> > > > be a way to ask pmwiki what version it's running -- so that you know what 
> > > > basic features it support.
> > > 

> Approach #1:  ?action=version
> 
>     if ($action=='version') {
>       header("Content-type: text/plain");
>       print $Version;
>       exit();
>     }

I think #1 is the best. Although I'm not sure 'version' is the best 
choice... what if we in the future want to use 'action=version' in order 
to get something like a version number of a wiki page?

For that reason I think it'd be better if we used 'action=pmwiki-version' 
or 'action=PmWiki-version'. What do you think?

/Christian

-- 
Christian Ridderstr?m                           http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list