mirror of
https://github.com/itflow-org/itflow
synced 2026-03-27 15:55:37 +00:00
Final path fix
This commit is contained in:
@@ -193,17 +193,19 @@ if (isset($_POST['test_email_smtp'])) {
|
|||||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
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'])) {
|
if (isset($_POST['test_email_imap'])) {
|
||||||
|
|
||||||
validateCSRFToken($_POST['csrf_token']);
|
validateCSRFToken($_POST['csrf_token']);
|
||||||
validateAdminRole();
|
validateAdminRole();
|
||||||
|
|
||||||
// Autoload Composer dependencies
|
|
||||||
require_once __DIR__ . '../plugins/php-imap/vendor/autoload.php';
|
|
||||||
|
|
||||||
// Webklex PHP-IMAP
|
|
||||||
use Webklex\PHPIMAP\ClientManager;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Initialize the client manager and create the client
|
// Initialize the client manager and create the client
|
||||||
$clientManager = new ClientManager();
|
$clientManager = new ClientManager();
|
||||||
|
|||||||
Reference in New Issue
Block a user