Putting back SM_PATH the way it should be and eliminating chdir in the
[squirrelmail.git] / plugins / translate / options.php
index c839f99aaae8ae4000c1cad42c20cd0eb504e477..ae55cb997c7d572b605cae7d338b0b622e35bf70 100644 (file)
@@ -1,25 +1,30 @@
 <?php
-   /**
-    * options.php
-    *
-    * Copyright (c) 1999-2002 The SquirrelMail Project Team
-    * Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    * Pick your translator to translate the body of incoming mail messages
-    *
-    * $Id$
-    */
-
-   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');
-   displayPageHeader($color, 'None');
+
+/**
+ * options.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Pick your translator to translate the body of incoming mail messages
+ *
+ * $Id$
+ */
+
+/* Path for SquirrelMail required files. */
+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 ) {
         if (isset($translate_translate_server)) {