DC6 to PNG item conversion. Read in order from docpath,d2modder img path

This commit is contained in:
Hash Borgir
2022-06-24 22:36:35 -06:00
parent 40fcc4fdfb
commit b7fdaa585e
1708 changed files with 89 additions and 12 deletions

View File

@@ -57,7 +57,7 @@ if (!empty($_POST)) {
$path = rtrim($_POST['path'], "\\");
$path = str_replace("\\", "\\\\", $path);
$modpath = $path;
$savePath = $path . '\\\\save\\\\';
$savePath = $path . '\\\\save\\\\';
$tbl = $path.'\\\\data\\\\local\\\\lng\\\\eng\\\\';
$path .= '\\\\data\\\\global\\\\excel\\\\';
@@ -87,7 +87,9 @@ ERROR: INVALID PATH</h1></center>';
// set this mod to active mod in session
$_SESSION['path'] = $path;
$_SESSION['tbl'] = $tbl;
$_SESSION['savepath'] = $savePath;
$_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=?";