X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ftranslate%2Foptions.php;h=de3f592306ac4905e25c6dfb20fa8224b8beebe3;hb=38a7b6a0acbc146fb0ac9fc21bc0d174be2bb6b1;hp=9a702f2bf0623f65c700fc4089b8a871c60b6dbf;hpb=849bdf42ed7bd7cca68909d2b46869742dfd210e;p=squirrelmail.git diff --git a/plugins/translate/options.php b/plugins/translate/options.php index 9a702f2b..de3f5923 100644 --- a/plugins/translate/options.php +++ b/plugins/translate/options.php @@ -6,33 +6,33 @@ ** **/ - chdir(".."); + chdir('..'); session_start(); if (!isset($config_php)) - include("../config/config.php"); + include_once('../config/config.php'); if (!isset($strings_php)) - include("../functions/strings.php"); + include_once('../functions/strings.php'); if (!isset($page_header_php)) - include("../functions/page_header.php"); + include_once('../functions/page_header.php'); if (!isset($display_messages_php)) - include("../functions/display_messages.php"); + include_once('../functions/display_messages.php'); if (!isset($imap_php)) - include("../functions/imap.php"); + include_once('../functions/imap.php'); if (!isset($array_php)) - include("../functions/array.php"); + include_once('../functions/array.php'); if (!isset($i18n_php)) - include("../functions/i18n.php"); + include_once('../functions/i18n.php'); - include("../src/load_prefs.php"); - displayPageHeader($color, "None"); + require_once('../src/load_prefs.php'); + displayPageHeader($color, 'None'); - $translate_server = getPref($data_dir, $username, "translate_server"); - if ($translate_server == '') + $translate_server = getPref($data_dir, $username, 'translate_server'); + if ($translate_server == '') $translate_server = 'babelfish'; - $translate_location = getPref($data_dir, $username, "translate_location"); + $translate_location = getPref($data_dir, $username, 'translate_location'); if ($translate_location == '') $translate_location = 'center'; $translate_show_read = getPref($data_dir, $username, 'translate_show_read'); @@ -42,9 +42,9 @@ function ShowOption($Var, $value, $Desc) { $Var = 'translate_' . $Var; - + global $$Var; - + echo '\n"; } - + + function ShowTrad( $tit, $com, $url ) { + + echo "
-
Your server options are as follows: - -
You also decide if you want the translation box displayed, - and where it will be located. ++ |