commit b3d40d7e5040830b598e5e87d85bed4da23efcf4 from: mischa date: Sat Oct 14 14:46:29 2023 UTC remove MYSQLI reference, include of conf.php dynamic so it works for /admin/admin.php commit - 4189bd17a1b969911f904da66bc6b557f2acc03d commit + b3d40d7e5040830b598e5e87d85bed4da23efcf4 blob - f94f20872eb0964521755690e54e7ee896eec72f blob + f3eeba7d4acde6691c237ae67bf953e48d15c589 --- functions.inc.php +++ 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 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);