Fix include()s which use DOCUMENT_ROOT, which may not be the location where
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Jun 2002 19:28:43 +0000 (19:28 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Jun 2002 19:28:43 +0000 (19:28 +0000)
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

functions/display_messages.php

index 3e91a4d..8a39ead 100644 (file)
@@ -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 = '';