mirror of
https://github.com/itflow-org/itflow
synced 2026-03-17 03:04:50 +00:00
Do not use the autoloader to load php mime mail parser
This commit is contained in:
@@ -64,7 +64,15 @@ file_put_contents($lock_file_path, "Locked");
|
|||||||
|
|
||||||
// PHP Mail Parser
|
// PHP Mail Parser
|
||||||
use PhpMimeMailParser\Parser;
|
use PhpMimeMailParser\Parser;
|
||||||
require_once "plugins/php-mime-mail-parser/autoload.php";
|
require_once "plugins/php-mime-mail-parser/Contracts/CharsetManager.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/Contracts/Middleware.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/Attachment.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/Charset.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/Exception.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/Middleware.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/MiddlewareStack.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/MimePart.php";
|
||||||
|
require_once "plugins/php-mime-mail-parser/Parser.php";
|
||||||
|
|
||||||
// Allowed attachment extensions
|
// Allowed attachment extensions
|
||||||
$allowed_extensions = array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'csv', 'xls', 'xlsx', 'xlsm', 'zip', 'tar', 'gz');
|
$allowed_extensions = array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'csv', 'xls', 'xlsx', 'xlsm', 'zip', 'tar', 'gz');
|
||||||
@@ -231,5 +239,4 @@ imap_close($imap);
|
|||||||
|
|
||||||
// Remove the lock file
|
// Remove the lock file
|
||||||
unlink($lock_file_path);
|
unlink($lock_file_path);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user