[imp] Fwd: Secret.php
Miroslaw Jaworski
mjaw at ipartners.pl
Thu Feb 13 17:00:38 PST 2003
* Chuck Hagenbuch (chuck at horde.org) [030213 16:36] wrote:
>
>
> ----- Forwarded message from piccio at ingv.it -----
> Date: Thu, 13 Feb 2003 12:14:45 +0100
> From: alessandro piccio <piccio at ingv.it>
> Reply-To: alessandro piccio <piccio at ingv.it>
> Subject: Secret.php
> To: chuck at horde.org
>
> Hi
> i'm a Alessandro Piccio and my
> job is in Istituto Nazionale di Geofisica e Vulcanologia
> Currently i'm developing (installing and customize) IMP 3.1 (with HORDE
> 2.2, php 4.2.2,)
> so when logout from mailbox and return on login window
> i have the warning
>
> warning: cannot add header information - headers already sent by
> (output started at /srv/www/htdocs/horde/imp/logih.php:18) in
> /srv/www/htdocs/horde/lib/Secret.php on line 120
The problem is that you've added HTML code in the beginning of the
login.php - it's not the proper way to do it.
Notice that nothing is printed or echoed through whole login.php script -
everything is stored under variables. All HTML generation is made in last
lines of the login.php:
---
[...]
include IMP_TEMPLATES . '/common-header.inc';
include IMP_TEMPLATES . '/login/login.inc';
if (@is_readable(IMP_BASE . '/config/motd.php')) {
include IMP_BASE . '/config/motd.php';
}
include IMP_TEMPLATES . '/common-footer.inc';
?>
---
You should put your custom HTML code here:
/horde/imp/templates/common-header.inc
/horde/imp/templates/common-footer.inc
These files are included by all the scripts, so if you need to modify only
login.php generated page, you'll probably need to change login.php to
something like this:
---
[...]
include IMP_TEMPLATES . '/login/header.inc';
include IMP_TEMPLATES . '/login/login.inc';
if (@is_readable(IMP_BASE . '/config/motd.php')) {
include IMP_BASE . '/config/motd.php';
}
include IMP_TEMPLATES . '/login/footer.inc';
?>
---
, copy
/horde/imp/templates/common-header.inc to /horde/imp/templates/login/header.inc
and
/horde/imp/templates/common-footer.inc to /horde/imp/templates/login/footer.inc
and deal with just these two, login.php specific, html template files.
M.
--
Miroslaw.Jaworski at gts.pl ( Psyborg ) MJ102-RIPE GTS Internet Partners SA
Servers Administration Department Manager
More information about the imp
mailing list