Quote:
Originally posted by trickykid
If you truly have a sm_logo.png in your /usr/share/squirrelmail/images then you need to change your login page to have this instead:
Code:
<img src="images/sm_logo.png" alt="Fallen Chaos Logo" width="308" height="111" />
Without the ../ since when you specify a virtual host with a directory, that becomes the root directory for that virtual host. So specifying a ../ is telling the browser to try and grab the image from /usr/share/images instead of /usr/share/squirrelmail/images hence the error in your logs..
I am the smartest man alive..
|
There are two different references to the logo.. one in the login.php and one in the config.php. Now the variables should be defined in the config.php and pulled from there. Here is what is listed in the config.php
Quote:
$org_logo = SM_PATH . 'images/sm_logo.png';
|
Here is what is listed in the login.php
Quote:
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
'<center>'.
( isset($org_logo) && $org_logo
? '<img src="' . $org_logo . '" alt="' .
sprintf(_("%s Logo"), $org_name) .'"' . $width_and_height .
' /><br />' . "\n"
: '' ).
( (isset($hide_sm_attributions) && $hide_sm_attributions) ? '' :
'<small>' . sprintf (_("SquirrelMail version %s"), $version) . '<br />' ."\n".
|
Modifying the <img src="images/sm_logo.png" gets me the following in the logs
Quote:
[Wed May 11 09:42:27 2005] [error] [client 216.229.107.32] File does not exist: /usr/share/squirrelmail/src/images/sm_logo.png
|
the login.php is in the /usr/share/squirrelmail/src/ directory.. .so if I change the image src to ./images/sm_logo I see
[Wed May 11 09:44:19 2005] [error] [client 216.229.107.32] File does not exist:
/usr/share/images/sm_logo.png
and putting in the absolute path gives me the same doubling I posted in the inital thread.
I do see what you are talking about though, looking at the final html output from the login.php it's showing <img src="../images/sm_logo.png which explains why it's looking in /usr/share/ I just don't see why changing it in the config isn't updating that.