Windows path fix. Todo: fix mod switching

This commit is contained in:
Hash Borgir 2021-05-03 04:04:46 -06:00
parent f008b24b1f
commit ad0ed9be30
3 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@
*/ */
session_start(); session_start();
error_reporting(E_ALL ^ E_WARNING);
include "../_pdo.php"; include "../_pdo.php";
require_once "../src/D2Functions.php"; require_once "../src/D2Functions.php";
require_once "../src/D2ItemDesc.php"; require_once "../src/D2ItemDesc.php";

View File

@ -43,9 +43,9 @@ session_start();
*/ */
ini_set('display_errors', 1); ini_set('display_errors', 0);
error_reporting(1); error_reporting(E_ALL ^ E_WARNING);
ini_set('log_errors', 1); ini_set('log_errors', 0);
include "./_pdo.php"; include "./_pdo.php";

View File

@ -56,7 +56,7 @@ if (!empty($_POST)) {
$path = rtrim($_POST['path'], "\\"); $path = rtrim($_POST['path'], "\\");
$path = str_replace("\\", "\\\\", $path); $path = str_replace("\\", "\\\\", $path);
$tbl = '\\\\data\\\\local\\\\lng\\\\eng\\\\'; $tbl = $path.'\\\\data\\\\local\\\\lng\\\\eng\\\\';
$path .= '\\\\data\\\\global\\\\excel\\\\'; $path .= '\\\\data\\\\global\\\\excel\\\\';