From ad0ed9be30be59d7f28edf0f8b7653c5762a6b4e Mon Sep 17 00:00:00 2001 From: Hash Borgir Date: Mon, 3 May 2021 04:04:46 -0600 Subject: [PATCH] Windows path fix. Todo: fix mod switching --- ajax/config.php | 2 +- index.php | 6 +++--- src/D2Config.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ajax/config.php b/ajax/config.php index 24c66d2..93effe7 100644 --- a/ajax/config.php +++ b/ajax/config.php @@ -42,7 +42,7 @@ */ session_start(); - +error_reporting(E_ALL ^ E_WARNING); include "../_pdo.php"; require_once "../src/D2Functions.php"; require_once "../src/D2ItemDesc.php"; diff --git a/index.php b/index.php index 7105808..5e9dd49 100644 --- a/index.php +++ b/index.php @@ -43,9 +43,9 @@ session_start(); */ -ini_set('display_errors', 1); -error_reporting(1); -ini_set('log_errors', 1); +ini_set('display_errors', 0); +error_reporting(E_ALL ^ E_WARNING); +ini_set('log_errors', 0); include "./_pdo.php"; diff --git a/src/D2Config.php b/src/D2Config.php index 20ab30a..0830516 100644 --- a/src/D2Config.php +++ b/src/D2Config.php @@ -56,7 +56,7 @@ if (!empty($_POST)) { $path = rtrim($_POST['path'], "\\"); $path = str_replace("\\", "\\\\", $path); - $tbl = '\\\\data\\\\local\\\\lng\\\\eng\\\\'; + $tbl = $path.'\\\\data\\\\local\\\\lng\\\\eng\\\\'; $path .= '\\\\data\\\\global\\\\excel\\\\';