From: stekkel Date: Fri, 6 Sep 2002 17:24:31 +0000 (+0000) Subject: SMPATH BORKED everything X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d0dbdb1441f83386e2284e99ab0f4e14db8d218f;p=squirrelmail.git SMPATH BORKED everything git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3601 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/newmail/newmail.php b/plugins/newmail/newmail.php index 56407790..7e919cb9 100644 --- a/plugins/newmail/newmail.php +++ b/plugins/newmail/newmail.php @@ -11,11 +11,13 @@ ** $Id$ ** **/ - - chdir ('../'); - require_once('../src/validate.php'); - require_once('../src/load_prefs.php'); - require_once('../functions/page_header.php'); + chdir('..'); + define('SM_PATH','../'); + + /* SquirrelMail required files. */ + require_once(SM_PATH . 'include/validate.php'); + require_once(SM_PATH . 'src/load_prefs.php'); + require_once(SM_PATH . 'functions/page_header.php'); displayHtmlHeader( _("New Mail"), '', FALSE ); diff --git a/plugins/newmail/newmail_opt.php b/plugins/newmail/newmail_opt.php index 0f3c701b..87426a49 100644 --- a/plugins/newmail/newmail_opt.php +++ b/plugins/newmail/newmail_opt.php @@ -12,13 +12,16 @@ ** **/ - chdir(".."); - require_once('../src/validate.php'); - require_once('../functions/page_header.php'); - require_once('../functions/display_messages.php'); - require_once('../functions/imap.php'); - require_once('../functions/array.php'); - require_once('../src/load_prefs.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/display_messages.php'); + require_once(SM_PATH . 'functions/imap.php'); + require_once(SM_PATH . 'functions/array.php'); + require_once(SM_PATH . 'src/load_prefs.php'); displayPageHeader($color, 'None'); diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index 0bcb4a72..f8ddde9d 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -12,9 +12,14 @@ */ chdir ("../"); - require_once('../src/validate.php'); - require_once('../functions/html.php'); - require_once("../src/load_prefs.php"); + chdir('..'); + define('SM_PATH','../'); + + /* SquirrelMail required files. */ + require_once(SM_PATH . 'include/validate.php'); + require_once(SM_PATH . 'functions/html.php'); + require_once(SM_PATH . 'src/load_prefs.php'); + if (!isset($sound)) { $sound = "Click.wav"; }