phpDocumentor updates
[squirrelmail.git] / plugins / newmail / loadfile.php
index 16538c26fe012620adbbc61bdf88dd6b9103b951..576af43aaa3bb02e5d45b65b06fc985cbe6e8db3 100644 (file)
@@ -1,8 +1,12 @@
 <?php
+
 /**
  * SquirrelMail NewMail plugin
  *
  * Script loads user's media file.
+ *
+ * @copyright &copy; 2001-2005 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage newmail
@@ -28,7 +32,7 @@ $newmail_userfile_type=getPref($data_dir,$username,'newmail_userfile_type',false
 
 $newmail_userfile_location=getHashedFile($username, $data_dir, $username . '.sound');
 
-if ($newmail_userfile_type!=false && file_exists($newmail_userfile_location)) {
+if ($newmail_uploadsounds && $newmail_userfile_type!=false && file_exists($newmail_userfile_location)) {
     // open media file
     $newmail_userfile_handle = fopen($newmail_userfile_location,'rb');
     if ($newmail_userfile_handle) {