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

@@ -1,13 +1,12 @@
<?php
define('FILTER_PROPERTIES_FILE', 'filterProperties.txt');
$config = unserialize(file_get_contents("d2im.conf"));
define('DB_FILE', $config['modname'].".db");
define('TXT_PATH', $config['path']);
session_start();
include "./_pdo.php";
define('FILTER_PROPERTIES_FILE', 'filterProperties.txt');
define('DB_FILE', $_SESSION['modname'].".db");
define('TXT_PATH', $_SESSION['path']);
require_once "./src/D2Functions.php";
require_once "./src/D2Database.php";
require_once './src/D2Files.php';