[Pmwiki-users] excluding own Globals from UnsafeGlobals[] / own SafeGlobals
Patrick R. Michaud
pmichaud
Mon May 24 08:03:13 CDT 2004
On Mon, May 24, 2004 at 03:48:29PM +0200, Knut Alboldt wrote:
> <?php
> # customize the following for individual wiki's
> $PmWikiName = 'gsng';
> $PmWikiTitle = "Grundschule Neuengroden (" . $_SERVER['HTTP_HOST']
> . ")";
> $PmWikiSkin = 'gsng/gsng.tmpl';
> $PmWikiDefaultGroup = "Testing";
> require_once("pmwiki.php");
> ?>
>
> Is there a way (without modifying pmwiki.php) to keep own global vars out
> of UnsafeGlobals to define OwnSafeGlobals ?
Um, you might try adding the following to your local.php:
$UnsafeGlobals = array_diff($UnsafeGlobals,array('PmWikiSkin'));
This effectively removes the $PmWikiSkin variable from $UnsafeGlobals,
making it "safe" again for substitution.
Pm
More information about the pmwiki-users
mailing list