Final path fix

This commit is contained in:
johnnyq
2024-06-25 16:02:22 -04:00
parent f7b75bb150
commit 30bd685dea

View File

@@ -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();