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\\\\';