X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fnewmail%2Fnewmail_opt.php;h=24924db1f0e39a45ca7590d14a92e1edb4b8751a;hb=692ca6b773e1ec2de37435671b0da106327a7ff1;hp=c463fec0a2345ee40915d62a8c15bf53b9303d81;hpb=8e7241121f714d9a08e1c8900d4ca274a7b22a9c;p=squirrelmail.git diff --git a/plugins/newmail/newmail_opt.php b/plugins/newmail/newmail_opt.php index c463fec0..24924db1 100644 --- a/plugins/newmail/newmail_opt.php +++ b/plugins/newmail/newmail_opt.php @@ -20,33 +20,33 @@ require_once(SM_PATH . 'functions/display_messages.php'); require_once(SM_PATH . 'functions/imap.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', @@ -57,16 +57,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"; if ($allowsound == "true") { - echo 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' )