[sork] Php help!
Jan Schneider
jan at horde.org
Tue Mar 30 13:15:23 PST 2004
Zitat von Rodrigo Gesswein <rodri at chilesat.net>:
> Hello!
>
> Sorry for this e-mail, but I'm not a php expert and I need some help.
> Currently, I'm using Forwards 2.2.1-RC1 with Horde 2.2.5 and I need to
> add a little php code to forward config file for some custom settings:
>
> --- Begin line 52 of conf.php ----
> $splitted = split("@",Auth::getAuth());
> $domain = $splitted[1];
> if ( $domain == 'XXX' ) {
> $some_var = 'YYY'; }
> else {
> $some_var = 'ZZZ';
> }
> --- End ---
>
> But, I miss the CSS styles when I add the code above. If I commented
> the first line ($splitted=...), the styles back!
>
> I got the following error:
>
> Fatal error: Undefined class name 'auth' in
> /opt/www/data/webmail/horde/forwards/config/conf.php on line 52
>
> When I run: http://my_site/horde/css.php?app=forwards
Put:
require_once HORDE_BASE . '/lib/Auth.php';
before the first line.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the sork
mailing list