From: teepe Date: Sun, 24 Feb 2002 20:47:27 +0000 (+0000) Subject: allow admin disabling of sound X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=412303e0e9dc62963294717f14189ccc62a71a7d allow admin disabling of sound git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2508 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/newmail/newmail_opt.php b/plugins/newmail/newmail_opt.php index 5a2bd714..6c7af04a 100644 --- a/plugins/newmail/newmail_opt.php +++ b/plugins/newmail/newmail_opt.php @@ -29,13 +29,19 @@ $media_changetitle = getPref($data_dir,$username,'newmail_changetitle'); $media = getPref($data_dir,$username,'newmail_media', '../plugins/newmail/sounds/Notify.wav'); + // Set $allowsound to false if you don't want sound files available + $allowsound = "true"; + echo '
' . "
\n". '
' . _("Options") . ' - ' . _("New Mail Notification") . '
'. - '
'. - '

'. -_("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.") . - '

'. + '

'; + 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 '

'. _("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).") . @@ -43,20 +49,25 @@ _("Selecting the Show popup option will enable the showing of a popup win _("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."). - '

'. + '

'; + 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 ''. + '
 '; } - echo 'name=media_enable> ' . _("Enable Media Playing") . '
'. ''. + ''; + if ($allowsound == "true") { + echo ''. + ''; + } + echo ''. ''. ''. - ''. - ''. + ''; + if ($allowsound == "true") { + echo ''. ''. '". - ''. - ''. + ''; + } + echo ''. ''. '
  ' . _("Enable Media Playing") . '
 server files the media file to play when new m echo 'checked '; } echo 'name=media_popup> ' . _("Show popup window on new mail") . '   (' . _("requires JavaScript to work") . ')
' . _("Select server file:") . '' . _("Current File:") . ''. "$media;
 '. ''.