On Wed, Feb 14, 2007 at 01:18:28PM -0500, Sandy wrote:
> Patrick R. Michaud wrote:
> > So, I guess we need to be a bit more liberal in checking for
> > the host name:
> > ## (:if sandy:) is true when hostname contains "sandy"
> > $Conditions['sandy'] = (strpos('sandy', $_SERVER['HTTP_HOST']) !== false);
> > ...
>
> Nope, still not working.
Grrrr, I'll get it right yet!
## (:if sandy:) is true when hostname contains "sandy"
$Conditions['sandy'] = (strpos($_SERVER['HTTP_HOST'], 'sandy') !== false);
## (:if cricket:) is true when hostname contains "cricket"
$Conditions['cricket'] = (strpos($_SERVER['HTTP_HOST'], 'cricket') !== false);
(I had the arguments to strpos() backwards. Sorry about that!)
Pm
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users