Fix a bunch of plugins to cope with moved load_prefs/validate files.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Sep 2002 14:15:25 +0000 (14:15 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Sep 2002 14:15:25 +0000 (14:15 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3616 7612ce4b-ef26-0410-bec9-ea0150e637f0

19 files changed:
plugins/abook_take/take.php
plugins/administrator/options.php
plugins/bug_report/bug_report.php
plugins/calendar/calendar.php
plugins/calendar/day.php
plugins/calendar/event_create.php
plugins/calendar/event_delete.php
plugins/calendar/event_edit.php
plugins/listcommands/mailout.php
plugins/mail_fetch/fetch.php
plugins/mail_fetch/options.php
plugins/mail_fetch/setup.php
plugins/newmail/newmail.php
plugins/newmail/newmail_opt.php
plugins/newmail/testsound.php
plugins/spamcop/options.php
plugins/squirrelspell/sqspell_interface.php
plugins/squirrelspell/sqspell_options.php
plugins/translate/options.php

index da14920..62bf7df 100644 (file)
@@ -12,13 +12,13 @@ define('SM_PATH','../../');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'config/config.php');
-require_once(SM_PATH . 'src/validate.php');
+require_once(SM_PATH . 'include/validate.php');
 require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'config/config.php');
 require_once(SM_PATH . 'functions/i18n.php');
 require_once(SM_PATH . 'functions/page_header.php');
 require_once(SM_PATH . 'functions/addressbook.php');
-require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'functions/html.php');
    
 displayPageHeader($color, 'None');
index ed695e0..9842e24 100644 (file)
@@ -140,7 +140,7 @@ define('SM_PATH','../');
 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 . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'plugins/administrator/defines.php');
 require_once(SM_PATH . 'plugins/administrator/auth.php');
 
index c90a467..36cdc7d 100644 (file)
  * $Id$
  */
 
-chdir('..');
-
 session_start();
-
-require_once('../config/config.php');
-require_once('../functions/strings.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('../functions/i18n.php');
-require_once('../src/load_prefs.php');
+chdir('..');
+define('SM_PATH','../');
+
+require_once(SM_PATH . 'config/config.php');
+require_once(SM_PATH . 'functions/strings.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 . 'functions/i18n.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 displayPageHeader($color, 'None');
 
 
index 31e7ee4..a0db348 100644 (file)
@@ -25,7 +25,7 @@ require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'config/config.php');
 require_once(SM_PATH . 'functions/page_header.php');
-require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'functions/html.php');
 
 //display upper part of month calendar view
index feb6489..fc21bf3 100644 (file)
@@ -25,7 +25,7 @@ require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'config/config.php');
 require_once(SM_PATH . 'functions/page_header.php');
-require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'functions/html.php');
 
 //displays head of day calendar view
index 9687685..92610e0 100644 (file)
@@ -24,7 +24,7 @@ require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'config/config.php');
 require_once(SM_PATH . 'functions/page_header.php');
-require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'functions/html.php');
 
 //main form to gather event info
index a9ecc72..cd23d8d 100644 (file)
@@ -24,7 +24,7 @@ require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'config/config.php');
 require_once(SM_PATH . 'functions/page_header.php');
-require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'functions/html.php');
 
 function confirm_deletion()
index f1ce4ce..c40f175 100644 (file)
@@ -24,7 +24,7 @@ require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'config/config.php');
 require_once(SM_PATH . 'functions/page_header.php');
-require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'functions/html.php');
 
 // update event info
index 6a2ef13..21be973 100644 (file)
@@ -14,7 +14,7 @@ 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 . 'include/load_prefs.php');
 include_once(SM_PATH . 'functions/html.php');
 
 displayPageHeader($color, $mailbox);
index 8e0ffd8..85753e6 100644 (file)
     **/
 
     chdir('..');
-    require_once('../src/validate.php');
-    require_once('../functions/page_header.php');
-    require_once('../functions/imap.php');
-    require_once('../src/load_prefs.php');
-    require_once('../plugins/mail_fetch/class.POP3.php');
-    require_once('../functions/i18n.php');
-    require_once( '../plugins/mail_fetch/functions.php' );
-    require_once( '../functions/html.php' );
+    define('SM_PATH','../');
+
+    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 . 'include/load_prefs.php');
+    require_once(SM_PATH . 'plugins/mail_fetch/class.POP3.php');
+    require_once(SM_PATH . 'functions/i18n.php');
+    require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
+    require_once(SM_PATH . 'functions/html.php' );
 
 
     function Mail_Fetch_Status($msg) {
index bcf103e..10c9dd3 100644 (file)
     **/
 
     chdir('..');
-    require_once('../src/validate.php');
-    require_once('../functions/imap.php');
-    require_once('../src/load_prefs.php');
+    define('SM_PATH','../');
+
+    require_once(SM_PATH . 'include/validate.php');
+    require_once(SM_PATH . 'functions/imap.php');
+    require_once(SM_PATH . 'include/load_prefs.php');
 
     displayPageHeader( $color, 'None' );
 
index 27c4b53..4741605 100644 (file)
@@ -11,7 +11,8 @@
     **  $Id$
     **/
 
-    require_once( '../plugins/mail_fetch/functions.php' );
+    define('SM_PATH','../');
+    require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
 
     function squirrelmail_plugin_init_mail_fetch() {
         global $squirrelmail_plugin_hooks;
     function mail_fetch_setnew()    {
 
         global $data_dir,$username;
-        // require_once ('../src/load_prefs.php');
-        // require_once ('../src/validate.php');
-        require_once('../functions/prefs.php');
+        require_once(SM_PATH . 'functions/prefs.php');
 
         if( $username <> '' ) {
             // Creates the pref file if it does not exist.
index 7e919cb..da04ec4 100644 (file)
@@ -16,7 +16,7 @@
 
     /* SquirrelMail required files. */
    require_once(SM_PATH . 'include/validate.php');
-   require_once(SM_PATH . 'src/load_prefs.php');
+   require_once(SM_PATH . 'include/load_prefs.php');
    require_once(SM_PATH . 'functions/page_header.php');
 
    displayHtmlHeader( _("New Mail"), '', FALSE );
index 87426a4..b3492b3 100644 (file)
@@ -21,7 +21,7 @@
     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');
+    require_once(SM_PATH . 'include/load_prefs.php');
 
     displayPageHeader($color, 'None');
 
index 0d3f4f7..36f3241 100644 (file)
@@ -17,7 +17,6 @@
    /* 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";
index 13140bf..2ff09a6 100755 (executable)
@@ -1,6 +1,7 @@
 <?php
-   chdir ("..");
-   require_once('../src/validate.php');
+   chdir ('..');
+   define('SM_PATH','../');
+   require_once(SM_PATH . 'include/validate.php');
 
    displayPageHeader($color, "None");   
 
index 797a06d..b8f4273 100644 (file)
@@ -34,7 +34,7 @@ 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 . 'include/load_prefs.php');
 require_once("$SQSPELL_DIR/sqspell_config.php");
 require_once("$SQSPELL_DIR/sqspell_functions.php");
     
index cc1013c..ce6b230 100644 (file)
@@ -28,8 +28,8 @@ define('SM_PATH','../');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'src/validate.php');
-require_once(SM_PATH . 'src/load_prefs.php');
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/page_header.php');
 require_once("$SQSPELL_DIR/sqspell_config.php");
index c839f99..74db0b3 100644 (file)
     * $Id$
     */
 
+   /* Path for SquirrelMail required files. */
    chdir('..');
-   require_once('../src/validate.php');
-   require_once('../functions/strings.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('../functions/i18n.php');
-   require_once('../src/load_prefs.php');
+   define('SM_PATH','../');
+
+   /* SquirrelMail required files. */
+   require_once(SM_PATH . 'include/validate.php');
+   require_once(SM_PATH . 'functions/strings.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 . 'functions/i18n.php');
+   require_once(SM_PATH . 'include/load_prefs.php');
    displayPageHeader($color, 'None');
 
     if (isset($submit_translate) && $submit_translate ) {