[imp] IMP and MOTD.html

Ari Heikkinen aheikin@phaser-atm.pspt.fi
Fri, 13 Oct 2000 17:59:48 +0300 (EEST)


On Thu, 12 Oct 2000, Rich Lafferty wrote:

> On Thu, Oct 12, 2000 at 10:36:17AM -0400, Chuck Hagenbuch (chuck@horde.org) wrote:
> > Quoting Ari Heikkinen <aheikin@phaser-atm.pspt.fi>:
> > 
> > > Does this mean I have to learn PHP ? :) (so far I've gotten along with C,
> > > C++ and UNIX shell tools)
> > 
> > Yes. It's not very hard - if you know c, you know how to write an if statement,
> > which is pretty much all you need - and quite frankly, this is something that no
> > one else has asked for.
> 
> I didn't ask, I just did it. :-) For the php-challenged, either of
> 
> ------8<----- cut here ------8<-----
> <?php if ($language == "fr") { ?>
> 
> Ceci n'est pas un MOTD.
> 
> <?php } elseif ($language == "de") { ?>
> 
> Dieses ist nicht ein MOTD.
> 
> <?php } elseif ($language == "it") { ?>
> 
> Ci&ograve; non &egrave; un MOTD.
> 
> <?php } else {  # default case ?>
> 
> This is the MOTD.
> 
> <?php } ?>
> ------8<----- cut here ------8<-----

Works like a charm, thanks!

>   -Rich

Ari Heikkinen - PSPT <e-mail: aheikin@dlr.pspt.fi>