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