From 30bd685dea57e56b92386e61196db45e9427e6c1 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 25 Jun 2024 16:02:22 -0400 Subject: [PATCH] Final path fix --- post/setting.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/post/setting.php b/post/setting.php index fc72c700..2695aa1c 100644 --- a/post/setting.php +++ b/post/setting.php @@ -193,17 +193,19 @@ if (isset($_POST['test_email_smtp'])) { header("Location: " . $_SERVER["HTTP_REFERER"]); } + +// Test IMAP +// Autoload Composer dependencies +require_once __DIR__ . '/../plugins/php-imap/vendor/autoload.php'; + +// Webklex PHP-IMAP +use Webklex\PHPIMAP\ClientManager; + if (isset($_POST['test_email_imap'])) { validateCSRFToken($_POST['csrf_token']); validateAdminRole(); - // Autoload Composer dependencies - require_once __DIR__ . '../plugins/php-imap/vendor/autoload.php'; - - // Webklex PHP-IMAP - use Webklex\PHPIMAP\ClientManager; - try { // Initialize the client manager and create the client $clientManager = new ClientManager();