mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
multiple mod selection and config/db working
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user