From 4cf438432a1f2bfdba752e075ec6458ec3e290ba Mon Sep 17 00:00:00 2001 From: stakadush Date: Thu, 4 Jul 2002 06:54:43 +0000 Subject: [PATCH 1/1] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3027 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 4 +- locale/he_HE/LC_MESSAGES/squirrelmail.po | 61 +++-- plugins/abook_take/setup.php | 77 +++---- plugins/abook_take/take.php | 93 ++++---- plugins/calendar/calendar.php | 1 + plugins/listcommands/mailout.php | 24 +- plugins/listcommands/setup.php | 13 +- plugins/mail_fetch/fetch.php | 78 ++++--- plugins/mail_fetch/options.php | 276 ++++++++++++++++------- plugins/newmail/newmail.php | 32 +-- plugins/newmail/newmail_opt.php | 155 +++++++------ plugins/newmail/setup.php | 2 +- plugins/newmail/testsound.php | 29 ++- 13 files changed, 492 insertions(+), 353 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 4ca95fe7..2f476ba4 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -914,10 +914,10 @@ function get_msgcnt_str($start_msg, $end_msg, $num_msgs) { /* Compute the $msg_cnt_str. */ $result = ''; if ($start_msg < $end_msg) { - $result = sprintf(_("Viewing Messages: %s to %s (%s total)"), + $result = sprintf(_("Viewing Messages: %s to %s (%s total)"), $start_msg, $end_msg, $num_msgs); } else if ($start_msg == $end_msg) { - $result = sprintf(_("Viewing Message: %s (1 total)"), $start_msg); + $result = sprintf(_("Viewing Message: %s (1 total)"), $start_msg); } else { $result = '
'; } diff --git a/locale/he_HE/LC_MESSAGES/squirrelmail.po b/locale/he_HE/LC_MESSAGES/squirrelmail.po index bbb67ada..679644e2 100644 --- a/locale/he_HE/LC_MESSAGES/squirrelmail.po +++ b/locale/he_HE/LC_MESSAGES/squirrelmail.po @@ -2098,6 +2098,7 @@ msgstr " #: squirrelmail/plugins/filters/filters.php:603 msgid "" "FREE - Osirusoft Relays - Osirusofts list of verified open relays. Seems to " +"include servers used by abuse@uunet.net auto-replies too." msgstr "çéðí - øùåîåú ùì ùøúé ãåàø äôúåçéí ìëåìí, åáëê îàôùøéí ùìéçú ãåàø " "àì÷èøåðé ãøëí ìëì àçã (Osirusoft)." @@ -2795,7 +2796,7 @@ msgstr " #: squirrelmail/plugins/calendar/calendar.php:113 #: squirrelmail/plugins/squirrelspell/modules/init.mod:53 msgid "Go" -msgstr "÷ãéîä" +msgstr "ìê" #: squirrelmail/plugins/squirrelspell/modules/init.mod:57 msgid "SquirrelSpell Initiating" @@ -3223,19 +3224,22 @@ msgid "" "Select Enable Media Playing to turn on playing a media file when " "unseen mail is in your folders. When enabled, you can specify the media file " "to play in the provided file box." -msgstr "" +msgstr "áëãé ìäôòéì ðéâåï ÷åáõ îãéä ëàùø éù ãåàø çãù áçø áàôùøåú " +"àôùø ðéâåï îãéä. áéëåìúê ìöééï àú ÷åáõ äîãéä ùéðåâï." #: squirrelmail/plugins/newmail/newmail_opt.php:45 msgid "" "The Check all boxes, not just INBOX option will check ALL of your " "folders for unseen mail, not just the inbox for notification." -msgstr "" +msgstr "áëãé ìáãå÷ ãåàø çãù áëì äúé÷éåú åìà ø÷ áúéáú äãåàø äðëðñ, ñîï àú äàôùøåú " +"áãå÷ àú ëì äúé÷éåú, ìà ø÷ àú úéáú äãåàø äðëðñ." #: squirrelmail/plugins/newmail/newmail_opt.php:47 msgid "" "Selecting the Show popup option will enable the showing of a popup " "window when unseen mail is in your folders (requires JavaScript)." -msgstr "" +msgstr "àí áøöåðê ùéôúç çìåï ÷èï äîåãéò òì äåãòåú çãùåú áçø áàôùøåú " +"ëùéù äåãòåú çãùåú äöâ çìåï ÷èï (îöøéê JavaScript)" #: squirrelmail/plugins/newmail/newmail_opt.php:49 msgid "" @@ -3243,7 +3247,9 @@ msgid "" "Recent messages are those that have just recently showed up and have not " "been \"viewed\" or checked yet. This can prevent being continuously annoyed " "by sounds or popups for unseen mail." -msgstr "" +msgstr "áçø áàôùøåú ñôåø ø÷ äåãòåú ùäâéòå ìàçøåðä áëãé ìáãå÷ ø÷ äåãòåú ùäâéòå ìàçøåðä. " +"äåãòåú àùø äâéòå ìàçøåðä äï äåãòåú àùø äâéòå ìôðé æîï ÷öø àê ìà ð÷øàå àå ñåîðå òãééï. " +"àôùøåú æå îåðòú äèøãä øöåôä ùì öìéìéí åçìåðåú àùø ðôúçéí áâìì ãåàø ùìà ð÷øà." #: squirrelmail/plugins/newmail/newmail_opt.php:51 msgid "" @@ -3252,7 +3258,10 @@ msgid "" "only works in IE but you won't see errors with other browsers). This will " "always tell you if you have new mail, even if you have Check RECENT " "enabled." -msgstr "" +msgstr "äàôùøåú ùðä ëåúøú áãôãôðéí ðúîëéí úùðä àú ëåúøú äçìåï ùì äãôãôï " +"ëàùø îâéò ãåàø çãù (àôùøåú æå îöøéëä JavaScript åãôãôï àéðèøðè à÷ñôìåøø, àê ìà " +"éåôéòå äåãòåú ùâéàä áãôãôðéí àçøéí). àôùøåú æå úåãéò úîéã òì ãåàø çãù, àôéìå àí ñåîðä " +"äàôùøåú ñôåø ø÷ äåãòåú ùäâéòå ìàçøåðä." #: squirrelmail/plugins/newmail/newmail_opt.php:55 msgid "" @@ -3260,7 +3269,9 @@ msgid "" "mail arrives. Selecting local media will play the file specified in " "the local media file box to play from the local computer. If no file " "is specified, the system will use a default from the server." -msgstr "" +msgstr "áçø îäøùéîä ùì ÷áöé äùøú àú ÷åáõ äîãéä ùáøöåðê ùéðâï " +"ëàùø îâéò ãåàø çãù. áçéøú äàôùøåú ÷åáõ îãéä î÷åîé éðâï àú ä÷åáõ " +"àùø éáçø îäîçùá ùìê. àí ìà ðáçø ùåí ÷åáõ äîòøëú úùúîù á÷åáõ áøéøú äîçãì." #: squirrelmail/plugins/newmail/newmail_opt.php:67 msgid "Enable Media Playing" @@ -3293,7 +3304,7 @@ msgstr " #: squirrelmail/plugins/newmail/newmail_opt.php:106 msgid "(local media)" -msgstr "(îãééä î÷åîéú)" +msgstr "(îãéä î÷åîéú)" #: squirrelmail/plugins/newmail/newmail_opt.php:123 msgid "Try" @@ -3301,7 +3312,7 @@ msgstr " #: squirrelmail/plugins/newmail/newmail_opt.php:131 msgid "Local Media File:" -msgstr "÷åáõ îãééä î÷åîé:" +msgstr "÷åáõ îãéä î÷åîé:" #: squirrelmail/plugins/newmail/newmail_opt.php:137 msgid "Current File:" @@ -3327,7 +3338,7 @@ msgstr " msgid "" "This configures settings for playing sounds and/or showing popup windows " "when new mail arrives." -msgstr "áàôùøåúê ìäâãéø ðéâðåï öìéìéí àå/å ôúéçú çìåï ÷èï áî÷øä " +msgstr "áàôùøåúê ìäâãéø ðéâðåï öìéìéí å\\àå ôúéçú çìåï ÷èï áî÷øä " "ùîâéò ãåàø çãù." #: squirrelmail/plugins/newmail/setup.php:129 @@ -3534,7 +3545,7 @@ msgstr " #: squirrelmail/plugins/mail_fetch/fetch.php:54 msgid "Remote POP server Fetching Mail" -msgstr "îáéà ãåàø îùøú POP3 îøåç÷" +msgstr "îåùê ãåàø îùøú POP3 îøåç÷" #: squirrelmail/plugins/mail_fetch/fetch.php:63 msgid "Select Server:" @@ -3550,11 +3561,11 @@ msgstr " #: squirrelmail/plugins/mail_fetch/fetch.php:85 msgid "Fetch Mail" -msgstr "îáéà ãåàø" +msgstr "îùåê ãåàø" #: squirrelmail/plugins/mail_fetch/fetch.php:117 msgid "Fetching from " -msgstr "îáéà î-" +msgstr "îåùê î-" #: squirrelmail/plugins/mail_fetch/fetch.php:124 #: squirrelmail/plugins/mail_fetch/fetch.php:184 @@ -3592,7 +3603,7 @@ msgstr "] #: squirrelmail/plugins/mail_fetch/fetch.php:164 msgid "Fetching UIDL..." -msgstr "îáéà UIDL..." +msgstr "îåùê UIDL..." #: squirrelmail/plugins/mail_fetch/fetch.php:169 #: squirrelmail/plugins/mail_fetch/setup.php:154 @@ -3609,7 +3620,7 @@ msgstr " #: squirrelmail/plugins/mail_fetch/fetch.php:178 msgid "Fetching message " -msgstr "îáéà äåãòä " +msgstr "îåùê äåãòä " #: squirrelmail/plugins/mail_fetch/fetch.php:201 msgid "Message appended to mailbox" @@ -3665,7 +3676,7 @@ msgstr " #: squirrelmail/plugins/mail_fetch/options.php:113 msgid "Encrypt passwords (informative only)" -msgstr "" +msgstr "äöôï ñéñîàåú (àéðôåøîèéáé áìáã)" #: squirrelmail/plugins/mail_fetch/options.php:119 #: squirrelmail/plugins/mail_fetch/options.php:146 @@ -3723,13 +3734,13 @@ msgstr " #: squirrelmail/plugins/mail_fetch/options.php:166 msgid "No-one server in use. Try to add." -msgstr "ùøú àó-àçã ðîöà áùéîåù. ðñä ìäåñéó." +msgstr "ìà ðîöà àó ùøú àçã áùéîåù. ðñä ìäåñéó." #: squirrelmail/plugins/mail_fetch/options.php:172 #: squirrelmail/plugins/mail_fetch/options.php:187 #: squirrelmail/plugins/mail_fetch/options.php:234 msgid "Fetching Servers" -msgstr "îáéà ùøúéí" +msgstr "îåùê ùøúéí" #: squirrelmail/plugins/mail_fetch/options.php:176 msgid "Confirm Deletion of a Server" @@ -3761,7 +3772,7 @@ msgstr "" #: squirrelmail/plugins/mail_fetch/setup.php:30 msgid "Fetch" -msgstr "äáà" +msgstr "îùåê" #: squirrelmail/plugins/mail_fetch/setup.php:115 #: squirrelmail/plugins/mail_fetch/setup.php:162 @@ -3770,11 +3781,11 @@ msgstr " #: squirrelmail/plugins/mail_fetch/setup.php:198 msgid "Mail Fetch Result:" -msgstr "úåöàú ðéñéåï ìäáéà ãåàø:" +msgstr "úåöàú ðéñéåï îùéëú ãåàø:" #: squirrelmail/plugins/mail_fetch/setup.php:223 msgid "Simple POP3 Fetch Mail" -msgstr "äáàú ãåàø î-POP3" +msgstr "îùéëú ãåàø î-POP3" #: squirrelmail/plugins/mail_fetch/setup.php:225 msgid "" @@ -3974,15 +3985,15 @@ msgstr " msgid "" "This will send a message to %s requesting help for this list. You will " "receive an emailed response at the address below." -msgstr "æä éùìç äåãòä ì-%s áá÷ùä ìòæøä òí øùéîä æå. àúä ú÷áì " -"úùåáä ìëúåáú ãåà\"ì äøùåîä îèä." +msgstr "àôùøåú æå úùìç äåãòä ì-%s áá÷ùä ìòæøä òí øùéîä æå. úùåáä úùìç " +"ìëúåáú äãåà\"ì äøùåîä îèä." #: squirrelmail/plugins/listcommands/mailout.php:28 #, c-format msgid "" "This will send a message to %s requesting that you will be subscribed to " "this list. You will be subscribed with the address below." -msgstr "æä éùìç äåãòä ì-%s áá÷ùä ìöøó àåúê ìøùéîä æå. ëúåáú äãåà\"ì äøùåîä " +msgstr "àôùøåú æå úùìç äåãòä ì-%s áá÷ùä ìöøó àåúê ìøùéîä æå. ëúåáú äãåà\"ì äøùåîä " "îèä úöåøó ìøùéîä." #: squirrelmail/plugins/listcommands/mailout.php:31 @@ -3990,7 +4001,7 @@ msgstr " msgid "" "This will send a message to %s requesting that you will be unsubscribed from " "this list. It will try to unsubscribe the adress below." -msgstr "æä éùìç äåãòä ì-%s áá÷ùä ìáéèåì ääøùîä ìøùéîä æå. ääøùîä úáåèì " +msgstr "àôùøåú æå úùìç äåãòä ì-%s áá÷ùä ìáéèåì ääøùîä ìøùéîä æå. ääøùîä úáåèì " "ìëúåáú äøùåîä îèä." #: squirrelmail/plugins/listcommands/mailout.php:79 diff --git a/plugins/abook_take/setup.php b/plugins/abook_take/setup.php index 0fb52eb8..f14ad2bd 100755 --- a/plugins/abook_take/setup.php +++ b/plugins/abook_take/setup.php @@ -72,21 +72,14 @@ function abook_take_read() if ($abook_take_hide) return; - ?> -
- - - - ' . + '' . + '' . + '' . + ' ' . _("on the Read screen") .'
' . + '' . _("Hide the box") . '
' . + '' . _("Try to verify addresses") . ''; } diff --git a/plugins/abook_take/take.php b/plugins/abook_take/take.php index 964c2c8d..84157312 100644 --- a/plugins/abook_take/take.php +++ b/plugins/abook_take/take.php @@ -14,37 +14,33 @@ require_once("../functions/page_header.php"); require_once("../functions/addressbook.php"); require_once("../src/load_prefs.php"); + require_once('../functions/html.php'); displayPageHeader($color, "None"); $abook_take_verify = getPref($data_dir, $username, 'abook_take_verify'); -?> - -
- - -
- ' . "\n" . + html_tag( 'table', '', $abook_take_location, $color[10], 'cellpadding="3" cellspacing="0" border="0"' ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'left' ) . + html_tag( 'table', '', '', $color[5], 'cellpadding="2" cellspacing="1" border="0"' ) . + html_tag( 'tr' ) . + html_tag( 'td' ); + abook_take_read_string($message->header->from); abook_take_read_array($message->header->cc); abook_take_read_array($message->header->reply_to); @@ -95,7 +88,7 @@ function abook_take_read() $new_body = $body; $pos = strpos($new_body, - '">Download this as a file
'); + '">' . _("Download this as a file") . '
'); if (is_int($pos)) { $new_body = substr($new_body, 0, $pos); @@ -112,8 +105,9 @@ function abook_take_read() $new_body = strtr($new_body, "\n", ' '); abook_take_read_string($body); + + echo ''; ?> -
@@ -142,30 +136,31 @@ function abook_take_options() { global $abook_take_location, $abook_take_hide, $abook_take_verify; - ?>
Address Book Take: on the Read screen
- > Hide the box
- > Try to verify addresses -
- -
localbackendname); -?>
- -", - _("Nickname")); - printf("\n", - $color[4], $name, _("Must be unique")); - printf("", - _("E-mail address")); - - echo "", - _("First name")); - printf("\n", - $color[4], $name); - printf("", - _("Last name")); - printf("\n", - $color[4], $name); - printf("", - _("Additional info")); - printf("\n", - $color[4], $name); - - printf("\n", - $color[4], $name, _("Add address")); + echo '' . "\n" . - print "
%s:". - "". - " %s
%s:\n"; - echo '' . + ' ' . _("Must be unique") . '', + 'left', $color[4] ) + ) . "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', _("E-mail address") . ':', 'right', $color[4], 'width="50"' ) . "\n" . + html_tag( 'td', '', 'left', $color[4] ) . + '\n"; - - printf("
%s:". - "
%s:". - "
%s:". - "
\n". - "
\n"; + html_tag( 'tr', "\n" . + html_tag( 'td', _("First name") . ':', 'right', $color[4], 'width="50"' ) . + html_tag( 'td', '', 'left', $color[4] ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', _("Last name") . ':', 'right', $color[4], 'width="50"' ) . + html_tag( 'td', '', 'left', $color[4] ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', _("Additional info") . ':', 'right', $color[4], 'width="50"' ) . + html_tag( 'td', '', 'left', $color[4] ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', + '' , + 'center', $color[4], 'colspan="2"' ) + ) . "\n" . + ''; ?> -
- + + diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index b5acf74e..fa27c48f 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -20,6 +20,7 @@ require_once('../functions/date.php'); require_once('../config/config.php'); require_once('../functions/page_header.php'); require_once('../src/load_prefs.php'); +require_once('../functions/html.php'); //display upper part of month calendar view function startcalendar() { diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index ac5989e1..6f608f26 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -12,13 +12,17 @@ chdir('..'); include_once ('../src/validate.php'); include_once ('../functions/page_header.php'); include_once ('../src/load_prefs.php'); +include_once('../functions/html.php'); displayPageHeader($color, $mailbox); -echo '

\n" - .'\n"; - echo "'; - echo "'; - echo ''; + echo html_tag( 'tr', + html_tag( 'td', str_replace(' ', ' ', _("Mailing List:")), 'right', $color[0]) . + html_tag( 'td', + '' . implode(' | ', $output) . '' , + 'left', $color[0], 'width="100%" colspan="2"') + ); } } diff --git a/plugins/mail_fetch/fetch.php b/plugins/mail_fetch/fetch.php index eb00fff5..2510b6cb 100644 --- a/plugins/mail_fetch/fetch.php +++ b/plugins/mail_fetch/fetch.php @@ -19,12 +19,15 @@ require_once('../plugins/mail_fetch/class.POP3.php'); require_once('../functions/i18n.php'); require_once( '../plugins/mail_fetch/functions.php' ); + require_once( '../functions/html.php' ); function Mail_Fetch_Status($msg) { - echo '
' . _("Mailinglist") . ' ' . _($action) . - "
"; - +echo html_tag('p', '', 'left' ) . +html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" . + html_tag( 'tr', + html_tag( 'th', _("Mailinglist") . ' ' . _($action), '', $color[9] ) + ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'left' ); switch ( $action ) { case 'Help': @@ -33,7 +37,7 @@ case 'Unsubscribe': printf( $out_string, htmlspecialchars($send_to) ); -echo '
'; +echo ''; /* * Identity support (RFC 2369 sect. B.1.) @@ -47,16 +51,16 @@ $em = getPref($data_dir, $username, 'email_address'); if ($em != '') { $defaultmail .= htmlspecialchars(' <' . $em . '>') . "\n"; } -echo '

' . _("From:") . ' '; +echo html_tag('p', '', 'center' ) . _("From:") . ' '; $idents = getPref($data_dir, $username, 'identities'); if ($idents != '' && $idents > 1) { - echo ' ' . "\n" . + '
" - . str_replace(' ', ' ', _("Mailing List:")) - . '" - . '' . implode(' | ', $output) . '' - . '
' . - htmlspecialchars( $msg ) . - '
'; + echo html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', htmlspecialchars( $msg ) , 'left' ) + ), + '', '', 'width="90%"' ); flush(); } @@ -50,41 +53,49 @@ echo '

'; - echo '' . - "' . - '
" . _("Remote POP server Fetching Mail") . '
'; + echo html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', '' . _("Remote POP server Fetching Mail") . '', 'center', $color[0] ) + ) , + 'center', '', 'width="95%" cols="1"' ); if (!isset( $server_to_fetch ) ) { - echo '
' . - "" . - '' . - '' . - '' . - '' . - ''; + echo '' . + '' . + ''; //if password not set, ask for it for ($i=0;$i<$mailfetch_server_number;$i++) { if ($mailfetch_pass_[$i]=='') { - echo '' . - '' . - "" . - ''; + echo html_tag( 'tr', + html_tag( 'td', _("Password for") . ' ' . + (($mailfetch_alias_[$i]=='')?$mailfetch_server_[$i]:$mailfetch_alias_[$i]) . + ':     ', + 'right' ) . + html_tag( 'td', '', 'left' ) + ); } } - echo '' . - '' . - ''. - '' . - '
' . _("Select Server:") . '     ' . + '' . "\n"; } - echo '' . - '
' . _("Password for") . ' ' . (($mailfetch_alias_[$i]=='')?$mailfetch_server_[$i]:$mailfetch_alias_[$i]) . ':    
 
'; + echo html_tag( 'tr', + html_tag( 'td', ' ' ) . + html_tag( 'td', '', 'left' ) + ); + + ''; exit(); } @@ -113,10 +124,15 @@ $pop3 = new POP3($mailfetch_server, 60); - echo "
" . - _("Fetching from ") . - (($mailfetch_alias_[$i_loop] == '')?$mailfetch_server:$mailfetch_alias_[$i_loop]) . - "
"; + echo '
' . + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', '' . _("Fetching from ") . + (($mailfetch_alias_[$i_loop] == '')?$mailfetch_server:$mailfetch_alias_[$i_loop]) . + '', + 'center' ) , + '', $color[9] ) , + '', '', 'width="90%"' ); flush(); diff --git a/plugins/mail_fetch/options.php b/plugins/mail_fetch/options.php index 93937ec0..bcf103ec 100644 --- a/plugins/mail_fetch/options.php +++ b/plugins/mail_fetch/options.php @@ -102,32 +102,67 @@ echo '
' . - "
" . _("Remote POP server settings") . '
' . - '' . - '' . - '
' . - _("You should be aware that the encryption used to store your password is not perfectly secure. However, if you are using pop, there is inherently no encryption anyway. Additionally, the encryption that we do to save it on the server can be undone by a hacker reading the source to this file." ) . - '
' . - _("If you leave password empty, it will be required when you fetch mail.") . - '
':'>') . - _("Encrypt passwords (informative only)") . '
'; + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + '' . _("Remote POP server settings") . '', + 'center', $color[0] ) + ), + 'center', '', 'width="95%" cols="1"' ) . + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + _("You should be aware that the encryption used to store your password is not perfectly secure. However, if you are using pop, there is inherently no encryption anyway. Additionally, the encryption that we do to save it on the server can be undone by a hacker reading the source to this file." ) , + 'left' ) + ) . + html_tag( 'tr', + html_tag( 'td', + _("If you leave password empty, it will be required when you fetch mail.") , + 'left' ) + ) . + html_tag( 'tr', + html_tag( 'td', + '':'>') . + _("Encrypt passwords (informative only)") , + 'right' ) + ) , + 'center', '', 'width="95%" cols="1"' ); switch( $mf_action ) { case 'config': - echo '' . - " ' . - "
" . _("Add Server") . '
" . + echo html_tag( 'table', '', 'center', '', 'width="70%" cols="1" cellpadding="5" cellspacing="1"' ) . + html_tag( 'tr', + html_tag( 'td', '' . _("Add Server") . '', 'center', $color[9] ) + ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'center', $color[0] ) . + "" . - '' . - '' . - '' . - '' . - '' . - '' . - '' . - '' . - '' . - '' . - '
' . _("Server:") . '
' . _("Alias:") . '
' . _("Username:") . '
' . _("Password:") . '
' . _("Store in Folder:") . ''; + '' . + html_tag( 'table' ) . + html_tag( 'tr', + html_tag( 'th', _("Server:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', _("Alias:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', _("Username:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', _("Password:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr' ) . + html_tag( 'th', _("Store in Folder:"), 'right' ) . + html_tag( 'td', '', 'left' ); $imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list($imapConnection); - echo ''; $boxes = sqimap_mailbox_list($imapConnection); for ($i = 0; $i < count($boxes); $i++) { if (!in_array('noselect', $boxes[$i]['flags'])) { @@ -136,75 +171,116 @@ if ( strtolower( $box2 ) == 'inbox' ) { $box2 = _("INBOX"); } - echo "\n"; + echo "\n"; } } - echo '
 ' . _("Leave Mail on Server") . '
 ' . _("Check mail during login") . '
 ' . _("Check mail during folder refresh") . '
'; + echo '' . + html_tag( 'tr', + html_tag( 'th', ' ', 'right' ) . + html_tag( 'td', '' . _("Leave Mail on Server"), 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', ' ', 'right' ) . + html_tag( 'td', '' . _("Check mail during login"), 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', ' ', 'right' ) . + html_tag( 'td', '' . _("Check mail during folder refresh"), 'left' ) + ) . + html_tag( 'tr', + html_tag( 'td', + '', + 'center', '', 'colspan="2"' ) + ) . + ''; // Modify Server echo '
' . - '' . - "' . - "
" . _("Modify Server") . '
"; + html_tag( 'table', '', 'center', '', 'width="70%" cols="1" cellpadding="5" cellspacing="1"' ) . + html_tag( 'tr', + html_tag( 'td', '' . _("Modify Server") . '', 'center', $color[9] ) + ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'center', $color[0] ); if ($mailfetch_server_number>0) { - echo "
"; - echo '' . _("Server Name:") . ' '; for ($i=0;$i<$mailfetch_server_number;$i++) { - echo ">"; + echo ">"; } - echo ''. + echo ''. '  '. '  '. '
'; } else { echo _("No-one server in use. Try to add."); } - echo '
'; + echo ''; break; case _("Delete"): //erase confirmation about a server - echo '' . - "' . - '
" . _("Fetching Servers") . '
' . - '
' . - '' . - "' . - "
" . _("Confirm Deletion of a Server") . '
" . - "" . - '' . - '
' . _("Selected Server:") . "$mailfetch_server_[$mf_sn]
" . - _("Confirm delete of selected server?") . '

' . - '' . - '
'; + echo html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', '' . _("Fetching Servers") . '', 'center', $color[0] ) + ) , + 'center', '', 'width="95%" cols="1" cellpadding="5" cellspacing="1"' ) . + '
' . + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', '' . _("Confirm Deletion of a Server") . '', 'center', $color[9] ) + ) . + html_tag( 'tr', + html_tag( 'td', + "" . + '' . + '
' . _("Selected Server:") . " $mailfetch_server_[$mf_sn]
" . + _("Confirm delete of selected server?") . '

' . + '' . + '
' , + 'center', $color[9] ) + ) , + 'center', '', 'width="70%" cols="1" cellpadding="5" cellspacing="1"' ); break; //modify a server case _("Modify"): - echo '' . - "' . - '
" . _("Fetching Servers") . '
' . - '
' . - '' . - "' . - "
" . _("Mofify a Server") . '
" . + echo html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', '' . _("Fetching Servers") . '', 'center', $color[0] ) + ) , + 'center', '', 'width="95%" cols="1" cellpadding="5" cellspacing="1"' ) . + '
' . + html_tag( 'table', '', 'center', '', 'width="70%" cols="1" cellpadding="5" cellspacing="1"' ) . + html_tag( 'tr', + html_tag( 'td', '' . _("Mofify a Server") . '', 'center', $color[9] ) + ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'center', $color[0] ) . + "" . '' . - '' . - '' . - "" . - '' . - "" . - '' . - "" . - '' . - "" . - '' . - '' . - '' . - '' . - '' . - '' . - '
' . _("Server:") . '
' . _("Alias:") . '
' . _("Username:") . '
' . _("Password:") . '
' . _("Store in Folder:") . ''; + html_tag( 'table' ) . + html_tag( 'tr', + html_tag( 'th', _("Server:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', _("Alias:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', _("Username:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', _("Password:"), 'right' ) . + html_tag( 'td', '', 'left' ) + ) . + html_tag( 'tr' ) . + html_tag( 'th', _("Store in Folder:"), 'right' ) . + html_tag( 'td', '', 'left' ); + $imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list($imapConnection); - echo "'; $boxes = sqimap_mailbox_list($imapConnection); for ($i = 0; $i < count($boxes); $i++) { if (!in_array('noselect', $boxes[$i]['flags'])) { @@ -213,30 +289,56 @@ if ( strtolower( $box2 ) == 'inbox' ) { $box2 = _("INBOX"); } - echo '\n"; + echo '\n"; } } - echo '
 ' . _("Leave Mail on Server") . '
 ' . _("Check mail during login") . '
 ' . _("Check mail during folder refresh") . '
'; + echo '' . + + html_tag( 'tr', + html_tag( 'th', ' ', 'right' ) . + html_tag( 'td', + '' . _("Leave Mail on Server") , + 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', ' ', 'right' ) . + html_tag( 'td', + '' . _("Check mail during login"), + 'left' ) + ) . + html_tag( 'tr', + html_tag( 'th', ' ', 'right' ) . + html_tag( 'td', + '' . _("Check mail during folder refresh") , + 'left' ) + ) . + html_tag( 'tr', + html_tag( 'td', + '', + 'center', '', 'colspan="2"' ) + ) . + + ''; break; default: //unsupported action - echo '' . - "' . - '
" . _("Fetching Servers") . '

' . - '' . - "' . - "
" . _("Undefined Function") . '
" . - _("Hey! Wath do You are looking for?") . '
'; + echo '' . + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', '' . _("Fetching Servers") . '', 'center', $color[0] ) + ) , + 'center', '', 'width="95%" cols="1"' ) . + '
' . + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', '' . _("Undefined Function") . '', 'center', $color[9] ) . + html_tag( 'td', '' . _("Hey! Wath do You are looking for?") . '', 'center', $color[0] ) + ) , + 'center', '', 'width="70%" cols="1"' ); } ?> diff --git a/plugins/newmail/newmail.php b/plugins/newmail/newmail.php index 12a14a1a..56407790 100644 --- a/plugins/newmail/newmail.php +++ b/plugins/newmail/newmail.php @@ -19,24 +19,28 @@ displayHtmlHeader( _("New Mail"), '', FALSE ); - echo "\n". - '
'. - "\n". - "\n". - "\n". - "\n". - "
\n". - '
' . _("SquirrelMail Notice:") . "
\n". - "

" . - _("You have new mail!") . "

\n". - "
\n". - ''. - "
\n". + echo "\n". + '
'. "\n" . + html_tag( 'table', "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', '' . _("SquirrelMail Notice:") . '', 'center', $color[0] ) + ) . + html_tag( 'tr', "\n" . + html_tag( 'td', + '
' . + _("You have new mail!") . '

' . "\n" . + '
' . "\n". + ''."\n". + '
', + 'center' ) + ) , + '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) . + '
' . "\n". - "\n"; + "\n"; ?> diff --git a/plugins/newmail/newmail_opt.php b/plugins/newmail/newmail_opt.php index 6c7af04a..bd39948d 100644 --- a/plugins/newmail/newmail_opt.php +++ b/plugins/newmail/newmail_opt.php @@ -33,77 +33,89 @@ $allowsound = "true"; echo '
' . - "
\n". - '
' . _("Options") . ' - ' . _("New Mail Notification") . '
'. - '
'; + html_tag( 'table', '', 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"' ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', '' . _("Options") . ' - ' . _("New Mail Notification") . '', 'center', $color[0] ) + ) . "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', '', 'left' ); if ($allowsound == "true") { - echo '

'. - _("Select Enable Media Playing to turn on playing a media file when unseen mail is in your folders. When enabled, you can specify the media file to play in the provided file box.") . - '

'; + echo html_tag( 'p', + _("Select Enable Media Playing to turn on playing a media file when unseen mail is in your folders. When enabled, you can specify the media file to play in the provided file box.") + ) . "\n"; } - echo '

'. -_("The Check all boxes, not just INBOX option will check ALL of your folders for unseen mail, not just the inbox for notification."). - '

'. -_("Selecting the Show popup option will enable the showing of a popup window when unseen mail is in your folders (requires JavaScript).") . - '

'. -_("Use the Check RECENT to only check for messages that are recent. Recent messages are those that have just recently showed up and have not been \"viewed\" or checked yet. This can prevent being continuously annoyed by sounds or popups for unseen mail."). - '

'. -_("Selecting the Change title option will change the title in some browsers to let you know when you have new mail (requires JavaScript, and only works in IE but you won't see errors with other browsers). This will always tell you if you have new mail, even if you have Check RECENT enabled."). - '

'; + echo html_tag( 'p', + _("The Check all boxes, not just INBOX option will check ALL of your folders for unseen mail, not just the inbox for notification.") + ) . "\n" . + html_tag( 'p', + _("Selecting the Show popup option will enable the showing of a popup window when unseen mail is in your folders (requires JavaScript).") + ) . "\n" . + html_tag( 'p', + _("Use the Check RECENT to only check for messages that are recent. Recent messages are those that have just recently showed up and have not been \"viewed\" or checked yet. This can prevent being continuously annoyed by sounds or popups for unseen mail.") + ) . "\n" . + html_tag( 'p', + _("Selecting the Change title option will change the title in some browsers to let you know when you have new mail (requires JavaScript, and only works in IE but you won't see errors with other browsers). This will always tell you if you have new mail, even if you have Check RECENT enabled.") + ); if ($allowsound == "true") { - echo '

'. -_("Select from the list of server files the media file to play when new mail arrives. Selecting local media will play the file specified in the local media file box to play from the local computer. If no file is specified, the system will use a default from the server.") . - '

'; + echo html_tag( 'p', + _("Select from the list of server files the media file to play when new mail arrives. Selecting local media will play the file specified in the local media file box to play from the local computer. If no file is specified, the system will use a default from the server.") + ) . "\n"; } echo '
'. - ''. - ''. - ''; + html_tag( 'table', '', '', '', 'width="100%" cellpadding="0" cellspacing="2" border="0"' ) . "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n"; if ($allowsound == "true") { - echo ''. - ''; + echo 'name="media_enable"> ' . _("Enable Media Playing") . ''. + '' . "\n"; } - echo ''. - ''. - ''. - ''. - ''. - ''. - ''. + ''. "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n" . + html_tag( 'td', '', 'left' ) . + ' ' . _("Count only messages that are RECENT") . ''. - ''. - ''. - '' . - ''. + ''. "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n" . + html_tag( 'td', '', 'left' ) . + ' ' . _("Change title on supported browsers.") . '   (' . _("requires JavaScript to work") . ')'. - ''. - ''. - ''. - ''. + ''. "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n" . + html_tag( 'td', '', 'left' ) . + ' ' . _("Show popup window on new mail") . '   (' . _("requires JavaScript to work") . ')'. - ''; + echo 'name="media_popup"> ' . _("Show popup window on new mail") . '   (' . _("requires JavaScript to work") . ')'. + '' . "\n"; if ($allowsound == "true") { - echo ''. - ''. - ''. ''. - ''. - ''. - ''. - ''. - '". - ''; + html_tag( 'tr', "\n" . + html_tag( 'td', _("Local Media File:"), 'right', '', 'nowrap' ) . + html_tag( 'td', '', 'left' ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', _("Current File:"), 'right', '', 'nowrap' ) . + html_tag( 'td', '' . $media . '', 'left' ) + ) . "\n"; } - echo ''. - ''. - ''. - ''. - '
  ' . _("Enable Media Playing") . '
  ' . _("Check all boxes, not just INBOX") . '
  ' . _("Check all boxes, not just INBOX") . '
  ' . _("Count only messages that are RECENT") . '
  ' . _("Change title on supported browsers.") . '   (' . _("requires JavaScript to work") . ')
' . _("Select server file:") . ''. "\n" . + '' . "\n"; // Iterate sound files for options @@ -111,15 +123,15 @@ _("Select from the list of server files the media file to play when new m while($entry=$d->read()) { $fname = $d->path . "/" . $entry; if ($entry != '..' && $entry != '.') { - echo "\n"; + echo "value=\"" . $fname . "\">" . $entry . "\n"; } } $d->close(); - echo ''. + echo ''. 'server files the media file to play when new m '">'. '
' . _("Local Media File:") . - ''. - ''. - '
' . _("Current File:") . - ''. - "$media;
 '. - ''. - ''. - '
'. - '
'. - '
'. + echo html_tag( 'tr', "\n" . + html_tag( 'td', ' ' ) . + html_tag( 'td', + ''. + '', + 'left' ) + ) . "\n" . + ''. "\n" . + ''. "\n" . + ''. "\n" . ''; ?> diff --git a/plugins/newmail/setup.php b/plugins/newmail/setup.php index c003fe9a..0df87dc6 100644 --- a/plugins/newmail/setup.php +++ b/plugins/newmail/setup.php @@ -126,7 +126,7 @@ } else { setPref($data_dir,$username,'newmail_media',''); } - echo '
' . _("New Mail Notification options saved") . '
'; + echo html_tag( 'p', _("New Mail Notification options saved"), 'center' ); } } diff --git a/plugins/newmail/testsound.php b/plugins/newmail/testsound.php index e8d1dcb4..0bcb4a72 100644 --- a/plugins/newmail/testsound.php +++ b/plugins/newmail/testsound.php @@ -13,6 +13,7 @@ chdir ("../"); require_once('../src/validate.php'); + require_once('../functions/html.php'); require_once("../src/load_prefs.php"); if (!isset($sound)) { $sound = "Click.wav"; @@ -23,17 +24,21 @@ displayHtmlHeader( _("Test Sound"), '', FALSE ); - echo "\n". - '
'. - "". - '
'. - '' . _("Loading the sound...") . '

'. - '
'. - ''. - '
'. - '
'. - ''; + echo "\n". + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + "". + '
'. + '' . _("Loading the sound...") . '

'. + '
'. + ''. + '
' , + 'center' ) + ) , + 'center' ) . + ''; ?> -- 2.25.1