X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Floadfile.php;h=5c58d78da1a38d2cadc49c10ef9a8906b0cd6c40;hp=d789eab41aa9fbfaa3149319e4bea3a89b7939b7;hb=5e5daa47f6270e55903f95fb3deff491fde2d6f5;hpb=47ccfad452e8d345542d09e59112cac317cffed8 diff --git a/plugins/newmail/loadfile.php b/plugins/newmail/loadfile.php index d789eab4..5c58d78d 100644 --- a/plugins/newmail/loadfile.php +++ b/plugins/newmail/loadfile.php @@ -5,7 +5,7 @@ * * Script loads user's media file. * - * @copyright © 2001-2006 The SquirrelMail Project Team + * @copyright 2001-2015 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -13,13 +13,10 @@ */ /** - * define SM_PATH + * Path for SquirrelMail required files. * @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'); @@ -83,4 +80,3 @@ if ($newmail_uploadsounds && $newmail_userfile_type!=false && file_exists($newma } // 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