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

@@ -65,6 +65,7 @@ if (file_exists(APP_DB)) {
$sql = "DELETE FROM D2Modder WHERE modname='{$_POST['modname']}'";
PDO_Execute($sql);
unlink($_POST['modname'] . ".db");
rrmdir(realpath("docs\\{$_POST['modname']}"));
header("Refresh:0");
} else {
$time = time();
@@ -75,6 +76,7 @@ if (file_exists(APP_DB)) {
$_SESSION['modpath'] = $mod['modpath'];
$_SESSION['savepath'] = $mod['savepath'];
$_SESSION['tbl'] = $mod['tbl'];
$_SESSION['docpath'] = 'docs/'.$_SESSION['modname'];
// ddump($_SESSION);