From 92219031d9ad648536aeda878a336c6bd9b4c3a1 Mon Sep 17 00:00:00 2001 From: thomppj Date: Thu, 12 Sep 2002 22:24:01 +0000 Subject: [PATCH] Putting back SM_PATH the way it should be and eliminating chdir in the plugins. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3649 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/calendar/event_create.php | 2 +- plugins/calendar/event_delete.php | 2 +- plugins/calendar/event_edit.php | 2 +- plugins/mail_fetch/setup.php | 2 +- plugins/message_details/message_details_bottom.php | 3 +-- plugins/message_details/message_details_main.php | 3 +-- plugins/message_details/message_details_top.php | 3 +-- plugins/spamcop/options.php | 3 +-- plugins/squirrelspell/sqspell_interface.php | 3 +-- plugins/squirrelspell/sqspell_options.php | 3 +-- plugins/translate/options.php | 3 +-- 11 files changed, 11 insertions(+), 18 deletions(-) diff --git a/plugins/calendar/event_create.php b/plugins/calendar/event_create.php index f021220f..978a0301 100644 --- a/plugins/calendar/event_create.php +++ b/plugins/calendar/event_create.php @@ -12,7 +12,7 @@ * * $Id$ */ -define('SM_PATH','../'); +define('SM_PATH','../../'); /* Calender plugin required files. */ require_once(SM_PATH . 'plugins/calendar/calendar_data.php'); diff --git a/plugins/calendar/event_delete.php b/plugins/calendar/event_delete.php index e598081d..09fe78fb 100644 --- a/plugins/calendar/event_delete.php +++ b/plugins/calendar/event_delete.php @@ -12,7 +12,7 @@ * * $Id$ */ -define('SM_PATH','../'); +define('SM_PATH','../../'); /* Calender plugin required files. */ require_once(SM_PATH . 'plugins/calendar/calendar_data.php'); diff --git a/plugins/calendar/event_edit.php b/plugins/calendar/event_edit.php index 286fc1c0..098aeb6c 100644 --- a/plugins/calendar/event_edit.php +++ b/plugins/calendar/event_edit.php @@ -12,7 +12,7 @@ * * $Id$ */ -define('SM_PATH','../'); +define('SM_PATH','../../'); /* Calender plugin required files. */ require_once(SM_PATH . 'plugins/calendar/calendar_data.php'); diff --git a/plugins/mail_fetch/setup.php b/plugins/mail_fetch/setup.php index 4741605c..1c271719 100644 --- a/plugins/mail_fetch/setup.php +++ b/plugins/mail_fetch/setup.php @@ -11,7 +11,7 @@ ** $Id$ **/ - define('SM_PATH','../'); + define('SM_PATH','../../'); require_once(SM_PATH . 'plugins/mail_fetch/functions.php' ); function squirrelmail_plugin_init_mail_fetch() { diff --git a/plugins/message_details/message_details_bottom.php b/plugins/message_details/message_details_bottom.php index 11d00eca..1593abb3 100644 --- a/plugins/message_details/message_details_bottom.php +++ b/plugins/message_details/message_details_bottom.php @@ -10,8 +10,7 @@ * $Id$ */ -chdir ('..'); -define('SM_PATH','../'); +define('SM_PATH','../../'); /* SquirrelMail required files. */ require_once(SM_PATH . 'include/validate.php'); diff --git a/plugins/message_details/message_details_main.php b/plugins/message_details/message_details_main.php index 1300d23e..1310ef70 100644 --- a/plugins/message_details/message_details_main.php +++ b/plugins/message_details/message_details_main.php @@ -10,8 +10,7 @@ */ /* Path for SquirrelMail required files. */ -chdir('..'); -define('SM_PATH','../'); +define('SM_PATH','../../'); /* SquirrelMail required files. */ require_once(SM_PATH . 'include/validate.php'); diff --git a/plugins/message_details/message_details_top.php b/plugins/message_details/message_details_top.php index c02560eb..2f5aba78 100644 --- a/plugins/message_details/message_details_top.php +++ b/plugins/message_details/message_details_top.php @@ -10,8 +10,7 @@ * $Id$ */ -chdir ('..'); -define('SM_PATH','../'); +define('SM_PATH','../../'); /* SquirrelMail required files. */ require_once(SM_PATH . 'include/validate.php'); diff --git a/plugins/spamcop/options.php b/plugins/spamcop/options.php index bc6dd1e0..097cadd2 100755 --- a/plugins/spamcop/options.php +++ b/plugins/spamcop/options.php @@ -1,7 +1,6 @@