Hello Ronald,
On Friday, February 07, 2003, Ronald Roeleveld wrote...

Just as a point, you're using an *old* development version, I suggest
upgrading to the 1.4[cvs] version.

> I managed to get a backgroundimage in all pages that belong to SM,
> but for some sort of reason in compose.php I get the following error
> after pushing the send button:

> Warning: Cannot add header information - headers already sent by
> (output started at /usr/share/squirrelmail/src/compose.php:60) in
> /usr/share/squirrelmail/src/compose.php on line 187

> The only thing I added to compose.php is (this is line 60) echo
> '<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FFFFFF"
> VLINK="#FFFFFF" ALINK="#FFFFFF"
> background="../images/bck_main_lijn.gif">';

> And when I removed this line it's all working again..:(

Do you know any PHP? Because you're using an old version, I cannot
give you a hint as to where you're going wrong. But if you want to
apply global image background, why not apply it in the code that
builds the header for each page? Like in functions/page_header.php do
a search for "body" and modify that line instead of hacking the
source.

> else {
>     Header("Location:
> right_main.php?mailbox=$urlMailbox&sort=$sort".
>            "&startMessage=1");

> Can someone please tell me what I done wrong cause I don't have a
> clue anymore..:(

You are forcing output on a page that depending on what you do,
requires that no output be sent. The above line sends the browser a a
302 'redirect' message, telling the browser to reload the page, but
use right_main.php for loading. When you send data *BEFORE* that line,
the browser doesn't accept the message as it has already been given a
'OK' message saying the file was found, and loaded.

-- 
Jonathan Angliss
([EMAIL PROTECTED])



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to