Well I see the problem... but not sure why it exists, since globals.php should have already been included by the time we get here, which should take care of this kind of thing. In the same place in display_messages.php, can you please insert this in place of all the previous stuff:
global $_SERVER; if (function_exists('check_sm_version')) { echo "<hr>YES, global.php HAS BEEN INCLUDED<hr>but _SERVER is only:<hr>"; print_r($_SERVER); echo "<hr>"; } else { echo "<hr>NO, global.php HAS NOT BEEN INCLUDED<hr>"; } exit; For fun, you can also attempt inserting this before line 49 in /functions/global.php and see if it helps (to see if it works, you'll either need to change the debug stuff we've been doing in display_messages back to show the contents of $base_uri and/or $PHP_SELF or take out your original hacks in page_header.php): global $PHP_SELF; $PHP_SELF = $_SERVER['PHP_SELF']; If that doesn't work, then try this: global $PHP_SELF; $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; Thanks for your help! We're getting closer... - paul > -----Original Message----- > From: SM-Development [mailto:[EMAIL PROTECTED] > Sent: Monday, March 10, 2003 11:28 PM > To: p dont think > Subject: Re: SM_PATH appears to be wrong > > The result: > > > > ------------------------------------------------------------------------ -- > -- > ---- > THIS IS _SERVER: > > ------------------------------------------------------------------------ -- > -- > ---- > > > ------------------------------------------------------------------------ -- > -- > ---- > THIS IS HTTP_SERVER_VARS: > > ------------------------------------------------------------------------ -- > -- > ---- > Array ( [DOCUMENT_ROOT] => /home/squirrelmail/devmail.pansar.com.my > [HTTP_ACCEPT] => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > application/vnd.ms-excel, application/msword, > application/vnd.ms-powerpoint, > */* [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_ACCEPT_LANGUAGE] => en-us > [HTTP_CONNECTION] => Keep-Alive [HTTP_COOKIE] => QSsend_to=; QSsend_to_cc=; > QSsend_to_bcc=; QSsubject=; QSbody=; QSis_active=0; > squirrelmail_language=en_US; squirrelmail_language=en_US; > SQMSESSID=657eda8b63ecc42168ee72285d178a11; key=fviu0wNL; psc-suse_psc=-1; > JServSessionIdroot=973942c221.q7bx/lbPqQiIq65IqQ5M/AbJpgTHshDGpQbvp6vJqR eU > ah > mKa30- [HTTP_HOST] => mail.devmail.pansar.com.my [HTTP_USER_AGENT] => > Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) [PATH] => > /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin [REMOTE_ADDR] => 129.200.9.206 > [REMOTE_PORT] => 1881 [SCRIPT_FILENAME] => > /home/squirrelmail/devmail.pansar.com.my/src/login.php [SERVER_ADDR] => > 129.200.9.13 [SERVER_ADMIN] => [EMAIL PROTECTED] > [SERVER_NAME] => mail.devmail.pansar.com.my [SERVER_PORT] => 80 > [SERVER_SIGNATURE] => > Apache/1.3.22 Server at mail.devmail.pansar.com.my Port 80 > [SERVER_SOFTWARE] => Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4 > OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.24_01 [GATEWAY_INTERFACE] => > CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] > => [REQUEST_URI] => /src/login.php [SCRIPT_NAME] => /src/login.php > [PATH_TRANSLATED] => /home/squirrelmail/devmail.pansar.com.my/src/login.php > [PHP_SELF] => /src/login.php [argv] => Array ( ) [argc] => 0 ) > > ------------------------------------------------------------------------ -- > -- > ---- > > > > p dont think writes: > > > hrmmm... rather strange. > > Well, how about trying these instead: > > > > global $_SERVER; > > echo "<hr>THIS IS _SERVER:<hr>"; > > print_r($_SERVER); > > global $HTTP_SERVER_VARS; > > echo "<hr>THIS IS HTTP_SERVER_VARS:<hr>"; > > print_r($HTTP_SERVER_VARS); > > echo "<hr>"; > > exit; > > > > > > > > ************************************************************************ ** > ** > CAUTION: This e-mail is confidential and may contain privileged information. > If you are not the intended recipient, you must not disclose or use the > information. If you have received this e-mail in error, please notify by > returning the e-mail and delete the document. Any views expressed in this > message are those of the individual sender, and may not necessarily reflect > the views of the Company. > ************************************************************************ ** > ** > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf -- 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