From: kink Date: Fri, 7 Jun 2002 19:28:43 +0000 (+0000) Subject: Fix include()s which use DOCUMENT_ROOT, which may not be the location where X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=35185c8298fbbff2cf7b9501fe978c59597f4b06 Fix include()s which use DOCUMENT_ROOT, which may not be the location where SM is installed. Thanks to Dave. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2931 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/display_messages.php b/functions/display_messages.php index 3e91a4d1..8a39eade 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -92,13 +92,13 @@ function plain_error_message($message, $color) { function logout_error( $errString, $errTitle = '' ) { GLOBAL $frame_top, $org_logo, $org_name, $org_logo_width, $org_logo_height, - $hide_sm_attributions, $version, $DOCUMENT_ROOT, - $squirrelmail_language; + $hide_sm_attributions, $version, $squirrelmail_language; + $base_uri = sqm_baseuri(); - include_once($DOCUMENT_ROOT . $base_uri . 'functions/page_header.php' ); + include_once( '../functions/page_header.php' ); if ( !isset( $org_logo ) ) { // Don't know yet why, but in some accesses $org_logo is not set. - include( $DOCUMENT_ROOT . $base_uri . 'config/config.php' ); + include( '../config/config.php' ); } /* Display width and height like good little people */ $width_and_height = '';