Latest working copy, needs testing on windows

This commit is contained in:
color.diff=auto
2021-03-29 18:47:21 -06:00
parent f166a2df67
commit c868e47245
12 changed files with 439 additions and 107 deletions

View File

@@ -69,14 +69,22 @@ if (!isset($_SESSION['modname'])
$db = new D2Database();
$parser = new D2TxtParser();
$armor = PDO_FetchAll('SELECT * FROM armor WHERE `spawnable`=1');
$weapon = PDO_FetchAll('SELECT * FROM weapons WHERE `spawnable`=1');
$armor = PDO_FetchAll('SELECT * FROM armor WHERE spawnable=1');
$misc = PDO_FetchAll('SELECT * FROM misc WHERE spawnable=1');
$weapon = PDO_FetchAll('SELECT * FROM weapons WHERE spawnable=1');
$uniqueitems = PDO_FetchAll("SELECT `index`,`code` FROM uniqueitems WHERE `enabled`='1' ORDER BY `index` ASC");
$prop = $parser->filterProps('Properties.txt');
// If there's data, process it and save
if (!empty($_POST)) {
ddump($_POST);
// save db name from post into conf file
require_once './src/D2SaveFile.php';
@@ -98,6 +106,7 @@ if (!isset($_SESSION['modname'])
if ($_POST['formtype'] == "uniqueitems") {
ddump($_POST);
// if ladder or carry1 is 0, set empty field.
if (!$post['ladder']) {