projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix listcommands template for Send form changes
[squirrelmail.git]
/
plugins
/
newmail
/
loadfile.php
diff --git
a/plugins/newmail/loadfile.php
b/plugins/newmail/loadfile.php
index 16538c26fe012620adbbc61bdf88dd6b9103b951..a452063929b266a72bc06780ff84162689eddab1 100644
(file)
--- a/
plugins/newmail/loadfile.php
+++ b/
plugins/newmail/loadfile.php
@@
-1,21
+1,22
@@
<?php
<?php
+
/**
* SquirrelMail NewMail plugin
*
* Script loads user's media file.
/**
* SquirrelMail NewMail plugin
*
* Script loads user's media file.
+ *
+ * @copyright © 2001-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage newmail
*/
/**
* @version $Id$
* @package plugins
* @subpackage newmail
*/
/**
- *
define SM_PATH
+ *
Path for SquirrelMail required files.
* @ignore
*/
* @ignore
*/
-define('SM_PATH','../../');
-
-/** Load squirrelmail functions */
-include_once(SM_PATH . 'include/validate.php');
+require('../../include/init.php');
/** Load plugin functions */
include_once(SM_PATH . 'plugins/newmail/functions.php');
/** Load plugin functions */
include_once(SM_PATH . 'plugins/newmail/functions.php');
@@
-28,7
+29,7
@@
$newmail_userfile_type=getPref($data_dir,$username,'newmail_userfile_type',false
$newmail_userfile_location=getHashedFile($username, $data_dir, $username . '.sound');
$newmail_userfile_location=getHashedFile($username, $data_dir, $username . '.sound');
-if ($newmail_userfile_type!=false && file_exists($newmail_userfile_location)) {
+if ($newmail_u
ploadsounds && $newmail_u
serfile_type!=false && file_exists($newmail_userfile_location)) {
// open media file
$newmail_userfile_handle = fopen($newmail_userfile_location,'rb');
if ($newmail_userfile_handle) {
// open media file
$newmail_userfile_handle = fopen($newmail_userfile_location,'rb');
if ($newmail_userfile_handle) {
@@
-79,4
+80,3
@@
if ($newmail_userfile_type!=false && file_exists($newmail_userfile_location)) {
} // failed to open userfile
} // userfile is missing or preferences don't store file type.
// maybe we should send some error code
} // failed to open userfile
} // userfile is missing or preferences don't store file type.
// maybe we should send some error code
-?>
\ No newline at end of file