X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Fnewmail_opt.php;h=f1b9952b3014fff846981d0729fb2333c8c53c01;hp=802f5c4f436bad1a8e47bd3cb1b0beb2f419f432;hb=59927db317c6b031765a88ca3508edeb7ccbcc6e;hpb=79ba18dc89b1b096ecdf0b77169d57e0caf661db diff --git a/plugins/newmail/newmail_opt.php b/plugins/newmail/newmail_opt.php index 802f5c4f..f1b9952b 100644 --- a/plugins/newmail/newmail_opt.php +++ b/plugins/newmail/newmail_opt.php @@ -5,7 +5,7 @@ * * Displays all options relating to new mail sounds * - * @copyright 1999-2013 The SquirrelMail Project Team + * @copyright 1999-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -146,18 +146,20 @@ if ($newmail_allowsound) { echo '>' . _("(none)") . '' . "\n"; // Iterate sound files for options $d = dir(SM_PATH . 'plugins/newmail/sounds'); - while($entry=$d->read()) { - // $fname = get_location () . '/sounds/' . $entry; - if ($entry != '..' && $entry != '.' && $entry != 'CVS' && $entry != 'index.php') { - echo '\n"; } - echo 'value="' . sm_encode_html_special_chars($entry) . '">' . - sm_encode_html_special_chars($entry) . "\n"; } + $d->close(); } - $d->close(); // display media selection foreach($newmail_mmedia as $newmail_mm_name => $newmail_mm_data) { echo '