From cdf82d4a03ace568f23522ca11a9641216696c8a Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 6 Sep 2002 16:48:54 +0000 Subject: [PATCH] SMPATH fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3596 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/info/options.php | 14 ++++++++------ plugins/listcommands/mailout.php | 11 +++++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/plugins/info/options.php b/plugins/info/options.php index 0578ffca..0e8ca49d 100644 --- a/plugins/info/options.php +++ b/plugins/info/options.php @@ -9,12 +9,14 @@ * Written by: Jason Munro * jason@stdbev.com */ - -chdir ('..'); - require_once('../src/validate.php'); - require_once('../functions/page_header.php'); - require_once('../functions/imap.php'); - require_once('../plugins/info/functions.php'); +chdir('..'); +define('SM_PATH','../'); + +/* SquirrelMail required files. */ +require_once(SM_PATH . 'include/validate.php'); +require_once(SM_PATH . 'functions/page_header.php'); +require_once(SM_PATH . 'functions/imap.php'); +require_once(SM_PATH . 'plugins/info/functions.php'); global $username, $color, $folder_prefix, $default_charset; $default_charset = strtoupper($default_charset); diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index 08d729ec..6a2ef137 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -9,10 +9,13 @@ */ chdir('..'); -include_once ('../src/validate.php'); -include_once ('../functions/page_header.php'); -include_once ('../src/load_prefs.php'); -include_once('../functions/html.php'); +define('SM_PATH','../'); + +/* SquirrelMail required files. */ +require_once(SM_PATH . 'include/validate.php'); +include_once(SM_PATH . 'functions/page_header.php'); +include_once(SM_PATH . 'src/load_prefs.php'); +include_once(SM_PATH . 'functions/html.php'); displayPageHeader($color, $mailbox); -- 2.25.1