X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Finfo%2Foptions.php;h=942fcb6714de8fc51aaf911684b0b3bddc9bf04e;hb=8ed1923822b383ddb338e9eef75bb7f110cc47b4;hp=e27ae576182ac09a215279f0890f7f560dda5a8b;hpb=202bcbcc2b67c7c153db1b09b608b62beeba0496;p=squirrelmail.git diff --git a/plugins/info/options.php b/plugins/info/options.php index e27ae576..942fcb67 100644 --- a/plugins/info/options.php +++ b/plugins/info/options.php @@ -6,7 +6,7 @@ * This is where it all happens :) * * @author Jason Munro - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright 1999-2019 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -26,7 +26,7 @@ require_once(SM_PATH . 'plugins/info/functions.php'); global $username, $color, $folder_prefix, $default_charset; $default_charset = strtoupper($default_charset); -displayPageHeader($color, 'None'); +displayPageHeader($color); $mailbox = 'INBOX'; /** @@ -35,16 +35,13 @@ $mailbox = 'INBOX'; * prevent use of plugin if it is not enabled */ if (! is_plugin_enabled('info')) { - error_box(_("Plugin is disabled."),$color); - echo ''; + error_box(_("Plugin is disabled.")); + // display footer (closes html) and stop script execution + $oTemplate->display('footer.tpl'); exit; } /* GLOBALS */ -sqgetGlobalVar('username', $username, SQ_SESSION); -sqgetGlobalVar('key', $key, SQ_COOKIE); -sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); - sqgetGlobalVar('submit', $submit, SQ_POST); for($i = 0; $i <= 9; $i++){ @@ -56,7 +53,8 @@ for($i = 0; $i <= 9; $i++){ /* END GLOBALS */ -$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); +global $imap_stream_options; // in case not defined in config +$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options); $caps_array = get_caps($imap_stream); $list = array ('TEST_0', 'TEST_1', @@ -78,7 +76,7 @@ echo '
'._("IMAP server information")." "
\n"; foreach($caps_array[0] as $value) { - echo htmlspecialchars($value); + echo sm_encode_html_special_chars($value); } echo "\n"; @@ -95,8 +93,8 @@ if (!isset($submit) || $submit == 'default') { } } else { - echo 'folder_prefix = ' . htmlspecialchars($folder_prefix)."
\n" . - 'default_charset = '.htmlspecialchars($default_charset)."\n"; + echo 'folder_prefix = ' . sm_encode_html_special_chars($folder_prefix)."
\n" . + 'default_charset = '.sm_encode_html_special_chars($default_charset)."\n"; } echo "

\n"; @@ -206,6 +204,6 @@ sqimap_logout($imap_stream); * * Hook allows attaching plugin to bottom of info plugin */ -do_hook('info_bottom'); +do_hook('info_bottom', $null); ?> - \ No newline at end of file +