From c9cad23e2c2a3f3dc75123de37a5aebfbc787e27 Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:35 +0200 Subject: [PATCH] Only include PHPMailer when needed --- cron/offlineIM.php | 2 ++ crone.php | 3 --- index.php | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cron/offlineIM.php b/cron/offlineIM.php index 091de83..49bbed9 100644 --- a/cron/offlineIM.php +++ b/cron/offlineIM.php @@ -1,4 +1,6 @@ prepare("CREATE TABLE IF NOT EXISTS im_offline_send (`id` int(6) NOT NULL DEFAULT 0) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"); $statement->execute(); diff --git a/crone.php b/crone.php index 3e918cc..49d657b 100644 --- a/crone.php +++ b/crone.php @@ -3,9 +3,6 @@ date_default_timezone_set("Europe/Berlin"); error_reporting(E_ALL); session_start(); -include_once 'classen/MAIL/PHPMailer.php'; -include_once 'classen/MAIL/SMTP.php'; - include_once("classen/utils.php"); include_once("classen/HTML.php"); include_once("classen/OpenSim.php"); diff --git a/index.php b/index.php index a9ba73d..3e7f969 100644 --- a/index.php +++ b/index.php @@ -17,9 +17,6 @@ if(!isset($_SESSION['csrf']) || strlen($_SESSION['csrf']) != 64) { $_SESSION['csrf'] = bin2hex(random_bytes(32)); } -include_once 'classen/MAIL/PHPMailer.php'; -include_once 'classen/MAIL/SMTP.php'; - include_once("classen/utils.php"); include_once("classen/HTML.php"); include_once("classen/OpenSim.php");