X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fnewmail%2Fnewmail_opt.php;h=181abb364f028b0382284a07e690edb56f9cf610;hb=7349fa120fb30fb895b9c78c5ae4e787733430be;hp=976397dfb0eef5c134d43fcf05515d63d283e099;hpb=cd7fc9e62a5b4a32a4f75df7555ef6575f7956f9;p=squirrelmail.git diff --git a/plugins/newmail/newmail_opt.php b/plugins/newmail/newmail_opt.php index 976397df..181abb36 100644 --- a/plugins/newmail/newmail_opt.php +++ b/plugins/newmail/newmail_opt.php @@ -3,14 +3,17 @@ /** * newmails_opt.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2004 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Displays all options relating to new mail sounds * * $Id$ + * @package plugins + * @subpackage newmail */ +/** @ignore */ define('SM_PATH','../../'); /* SquirrelMail required files. */ @@ -18,36 +21,35 @@ require_once(SM_PATH . 'include/validate.php'); require_once(SM_PATH . 'functions/page_header.php'); require_once(SM_PATH . 'functions/display_messages.php'); require_once(SM_PATH . 'functions/imap.php'); -require_once(SM_PATH . 'functions/array.php'); require_once(SM_PATH . 'include/load_prefs.php'); - displayPageHeader($color, 'None'); +displayPageHeader($color, 'None'); - $media_enable = getPref($data_dir,$username, 'newmail_enable', 'FALSE' ); - $media_popup = getPref($data_dir, $username,'newmail_popup'); - $media_allbox = getPref($data_dir,$username,'newmail_allbox'); - $media_recent = getPref($data_dir,$username,'newmail_recent'); - $media_changetitle = getPref($data_dir,$username,'newmail_changetitle'); - $media = getPref($data_dir,$username,'newmail_media', '../plugins/newmail/sounds/Notify.wav'); +$media_enable = getPref($data_dir,$username, 'newmail_enable', 'FALSE' ); +$media_popup = getPref($data_dir, $username,'newmail_popup'); +$media_allbox = getPref($data_dir,$username,'newmail_allbox'); +$media_recent = getPref($data_dir,$username,'newmail_recent'); +$media_changetitle = getPref($data_dir,$username,'newmail_changetitle'); +$media = getPref($data_dir,$username,'newmail_media', '(none)'); - // Set $allowsound to false if you don't want sound files available - $allowsound = "true"; +// Set $allowsound to false if you don't want sound files available +$allowsound = "true"; - echo html_tag( 'table', '', 'center', '', 'width="95%" border="0" cellpadding="1" cellspacing="0"' ) . "\n" . - html_tag( 'tr', "\n" . +echo html_tag( 'table', '', 'center', '', 'width="95%" border="0" cellpadding="1" cellspacing="0"' ) . "\n" . + html_tag( 'tr', "\n" . html_tag( 'td', '' . _("Options") . ' - ' . _("New Mail Notification") . '', 'center', $color[0] ) - ) . "\n" . + ) . "\n" . html_tag( 'tr' ) . "\n" . html_tag( 'td', '', 'left' ); - if ($allowsound == "true") { - echo html_tag( 'p', +if ($allowsound == "true") { + 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 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', + ) . "\n"; +} + 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', @@ -58,16 +60,16 @@ require_once(SM_PATH . 'include/load_prefs.php'); ); if ($allowsound == "true") { 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.") + _("Select from the list of server files the media file to play when new mail arrives. If no file is specified, \"(none)\", no sound will be used.") ) . "\n"; } - echo '
'. + echo ''. html_tag( 'table', '', '', '', 'width="100%" cellpadding="0" cellspacing="2" border="0"' ) . "\n" . html_tag( 'tr' ) . "\n" . - html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n"; + html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n"; if ($allowsound == "true") { - echo html_tag( 'td', '', 'left' ) . - '' . "\n"; } echo html_tag( 'tr' ) . "\n" . - html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n" . + html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\n" . html_tag( 'td', '', 'left' ) . ' ' . _("Check all boxes, not just INBOX") . ''. ''. "\n" . html_tag( 'tr' ) . "\n" . - html_tag( 'td', ' ', 'right', '', 'nowrap' ) . "\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', ' ', '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', ' ', 'right', '', 'nowrap' ) . "\n" . html_tag( 'td', '', 'left' ) . ''. "\n" . - '' . "\n"; + ''. ''. ''. ''. - 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' )