From 01c372f1c182a45c71fdaa1dfc205641a0870025 Mon Sep 17 00:00:00 2001 From: jervfors Date: Mon, 12 Jul 2004 08:27:46 +0000 Subject: [PATCH] Minor code cleanup git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7756 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/info/options.php | 105 +++++++++++++++++++-------------------- 1 file changed, 51 insertions(+), 54 deletions(-) diff --git a/plugins/info/options.php b/plugins/info/options.php index e18ea2ff..3295c1c7 100644 --- a/plugins/info/options.php +++ b/plugins/info/options.php @@ -1,4 +1,4 @@ -"; - echo _("Plugin is disabled."); - echo "

"; - exit; + echo '

'. + _("Plugin is disabled."). + '

'; + exit; } /* GLOBALS */ @@ -57,8 +57,7 @@ for($i = 0; $i <= 9; $i++){ $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $caps_array = get_caps($imap_stream); -$list = array ( - 'TEST_0', +$list = array ('TEST_0', 'TEST_1', 'TEST_2', 'TEST_3', @@ -69,39 +68,37 @@ $list = array ( 'TEST_8', 'TEST_9'); -print "
"; -echo _("IMAP server information"); -print "

\n"; -print "
"; -print "

\n"; -print "
\n"; -print "
"; -echo _("Server Capability response:"); -print "
\n"; +echo '
'._("IMAP server information")."

\n". + '
'. + '

\n". + '
\n". + '
'. + _("Server Capability response:"). + "
\n"; foreach($caps_array[0] as $value) { - print htmlspecialchars($value); + echo htmlspecialchars($value); } -print "
\n"; +echo "
\n"; if (!isset($submit) || $submit == 'default') { - print "

"; - echo _("Select the IMAP commands you would like to run. Most commands require a selected mailbox so the select command is already setup. You can clear all the commands and test your own IMAP command strings. The commands are executed in order. The default values are simple IMAP commands using your default_charset and folder_prefix from SquirrelMail when needed."); - echo "

\n"; - echo "

"; - echo _("NOTE: These commands are live, any changes made will effect your current email account."); - echo "


\n"; + echo '

'. + _("Select the IMAP commands you would like to run. Most commands require a selected mailbox so the select command is already setup. You can clear all the commands and test your own IMAP command strings. The commands are executed in order. The default values are simple IMAP commands using your default_charset and folder_prefix from SquirrelMail when needed."). + "

\n". + '

'. + _("NOTE: These commands are live, any changes made will effect your current email account."). + "


\n"; if (!isset($submit)) { $submit = ''; } } else { - print 'folder_prefix = ' . htmlspecialchars($folder_prefix)."
\n" . - 'default_charset = '.htmlspecialchars($default_charset)."\n"; + echo 'folder_prefix = ' . htmlspecialchars($folder_prefix)."
\n" . + 'default_charset = '.htmlspecialchars($default_charset)."\n"; } -print "

\n"; +echo "

\n"; if ($submit == 'submit') { @@ -131,32 +128,32 @@ elseif (!$submit || $submit == 'default') { 'TEST_9' => ""); } -print "
\n"; -print "
\n"; -echo "\n"; -print "
" . _("Select") . - "" . _("Test Name") . - "" . _("IMAP command string") . "
"; +echo "\n". + "
\n". + '\n". + '\n\n
'. _("Select"). + ''._("Test Name"). + ''._("IMAP command string")."
'; foreach($type as $index=>$value) { - print "
\n
\n$index\n"; - print addInput($index, $value, 60); + echo " />$index\n". + addInput($index, $value, 60); } -print "

\n"; -print "
". - addSubmit('submit','submit'). - addSubmit('clear','submit'). - addSubmit('default','submit'). - "

\n"; +echo "

\n". + '
'. + addSubmit('submit','submit'). + addSubmit('clear','submit'). + addSubmit('default','submit'). + "

\n"; $tests = array(); @@ -169,19 +166,19 @@ if ($submit == 'submit') { } } for ($i=0;$i\n"; - print "\n"; - print "\n"; $response = imap_test($imap_stream, $type[$tests[$i]]); - print "\n"; - print "
".$tests[$i]."
"; - echo _("Request:") . "
"; - echo _("Response:") . "
"; + echo '
\n". + '\n". + '\n". + '\n". + '
'.$tests[$i]."
'. + _("Request:")."
'. + _("Response:")."
'; print_response($response); - print "

\n"; + echo "

\n"; } } - print "
"; + echo '
'; sqimap_logout($imap_stream); /** @@ -191,4 +188,4 @@ if ($submit == 'submit') { */ do_hook('info_bottom'); ?> - \ No newline at end of file + -- 2.25.1