remove MYSQLI reference, include of conf.php dynamic so it works for /admin/admin.php

This commit is contained in:
mischa 2023-10-14 14:46:29 +00:00
parent 4189bd17a1
commit b3d40d7e50
1 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
// //
// OpenSMTPD Admin // OpenSMTPD Admin
// by Mischa Peters <mischa at high5 dot nl> // by Mischa Peters <mischa at high5 dot nl>
// Copyright (c) 2022 High5! // Copyright (c) 2022-2023 High5!
// License Info: LICENSE.TXT // License Info: LICENSE.TXT
// //
// File: functions.inc.php // File: functions.inc.php
@ -12,8 +12,8 @@ if (preg_match("/functions.inc.php/", $_SERVER['SCRIPT_NAME'])) {
die(); die();
} }
require_once './conf.php'; require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'conf.php');
define("VERSION", "version 1.0.0"); define("VERSION", "version 1.0.1");
// //
// Check if debug is enabled or not // Check if debug is enabled or not
@ -22,7 +22,6 @@ if (DEBUG == 'true') {
ini_set('display_errors', 1); ini_set('display_errors', 1);
ini_set('display_startup_errors', 1); ini_set('display_startup_errors', 1);
error_reporting(E_ALL); error_reporting(E_ALL);
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
} else { } else {
ini_set('display_errors', 0); ini_set('display_errors', 0);
ini_set('display_startup_errors', 0); ini_set('display_startup_errors', 0);