[Pmwiki-users] Re: Re: Re: Action to provide last modified date and md5 checksum
Patrick R. Michaud
pmichaud
Mon Jul 12 08:31:15 CDT 2004
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.
> >
> > Use the $Version variable.
>
> Umm.. in case I wasn't clear, I want to find out the pmwiki version from
> an external software (Emacs).
Oh, sorry. Some possible local customizations...
Approach #1: ?action=version
if ($action=='version') {
header("Content-type: text/plain");
print $Version;
exit();
}
Approach #2: HTTP-Response header
$HTTPHeaders[] = "X-PmWiki-Version: $Version";
Pm
More information about the pmwiki-users
mailing list