From b3d40d7e5040830b598e5e87d85bed4da23efcf4 Mon Sep 17 00:00:00 2001 From: mischa Date: Sat, 14 Oct 2023 14:46:29 +0000 Subject: [PATCH] remove MYSQLI reference, include of conf.php dynamic so it works for /admin/admin.php --- functions.inc.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index f94f208..f3eeba7 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -2,7 +2,7 @@ // // OpenSMTPD Admin // by Mischa Peters -// Copyright (c) 2022 High5! +// Copyright (c) 2022-2023 High5! // License Info: LICENSE.TXT // // File: functions.inc.php @@ -12,8 +12,8 @@ if (preg_match("/functions.inc.php/", $_SERVER['SCRIPT_NAME'])) { die(); } -require_once './conf.php'; -define("VERSION", "version 1.0.0"); +require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'conf.php'); +define("VERSION", "version 1.0.1"); // // Check if debug is enabled or not @@ -22,7 +22,6 @@ if (DEBUG == 'true') { ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); - mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); } else { ini_set('display_errors', 0); ini_set('display_startup_errors', 0);