mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-09-18 09:32:08 +00:00
DC6 to PNG item conversion. Read in order from docpath,d2modder img path
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user