All this document.write stuff is overkill when we already have checkForJavascript...
[squirrelmail.git] / plugins / translate / options.php
index 807c01c72b3d74df29bfe3f06799827d1b96a0cb..7974d6ff02c612bff90d4bd9c000fa274cf87782 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Pick your translator to translate the body of incoming mail messages
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../../');
+require('../../include/init.php');
 
-/** SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
 /** Plugin functions */
 include_once(SM_PATH . 'plugins/translate/functions.php');
 
@@ -27,7 +24,7 @@ displayPageHeader($color, 'None');
 
 ?>
    <table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
-      <center><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></center>
+      <div style="text-align: center;"><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></div>
    </td></tr></table>
 
    <p><?php echo _("Your server options are as follows:"); ?></p>