ERROR: INVALID PATH

'; } else { // set this mod to active mod in session $_SESSION['path'] = $path; $_SESSION['tbl'] = $tbl; $_SESSION['savepath'] = $savePath; $_SESSION['docpath'] = 'docs/'.$_SESSION['modname']; $_SESSION['modpath'] = $modpath; // Don't yell at me, security is the least of my considerations atm // check modname in db $sql = "SELECT * FROM D2Modder WHERE modname=?"; $res = PDO_FetchAll($sql, [$modname]); if (empty($res)) { $sql = "INSERT INTO D2Modder(`modname`,`modpath`,`savepath`,`path`,`tbl`,`lastused`) VALUES(?, ?, ?, ?, ?, ?)"; PDO_Execute($sql, [$modname, $modpath, $savePath, $path, $tbl, $time]); } header("Location: /processFiles.php"); } } else { /* ELSE BLOCK FOR LINUX TESTING */ PDO_Connect("sqlite:../D2Modder.db"); $sql = "CREATE TABLE IF NOT EXISTS D2Modder ( modname VARCHAR(255), path VARCHAR(255), tbl VARCHAR(255), lastused INT, theme INT )"; PDO_Execute($sql); $sql = ''; $path = $_POST['path']; $path = rtrim($_POST['path'], "/"); $path = $path . DIRECTORY_SEPARATOR; if (!is_dir($path)) { echo '

ERROR: INVALID PATH

'; } else { // set this mod to active mod in session $_SESSION['path'] = $path; $_SESSION['tbl'] = $path; // Don't yell at me, security is the least of my considerations atm // check modname in db $sql = "SELECT * FROM D2Modder WHERE modname=?"; $res = PDO_FetchAll($sql, [$modname]); if (empty($res)) { $sql = "INSERT INTO D2Modder (`modname`,`path`,`tbl`,`lastused`) VALUES(?, ?, ?, ?)"; PDO_Execute($sql, [$modname, $path, $tbl, $time]); } header("Location: /processFiles.php"); } } } ?> section */ $css = ''; require_once "head.php"; ?>

X

Select Mod folder

Example: D:\Diablo II\MODS\your-mod-name\

Input path to D2 Mod Directory.



After saving path, app will convert txt files to SQL database.

This may take a few minutes depending on the size of your txt files.
Please be patient. Once done, app will load.
Each time you set a new mod path, txt files will be processed.
Every mod will be saved to ModName.db.