multiple mod selection and config/db working

This commit is contained in:
color.diff=auto
2021-03-26 12:31:13 -06:00
parent d46cfc04e1
commit d5817446ff
12 changed files with 163 additions and 80 deletions

View File

@@ -26,10 +26,10 @@ ini_set('log_errors', 1);
include "includes.php";
if (file_exists("d2im.conf") && (file_exists($config['modname'].".db"))){
if (file_exists("d2im.db") && (file_exists($_SESSION['modname'].".db"))){
if (is_dir($config['path'])) {
define('TXT_PATH', $config['path']);
if (is_dir($_SESSION['path'])) {
define('TXT_PATH', $_SESSION['path']);
} else {
header('Location: /src/D2Config.php');
}