mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
Latest working copy, needs testing on windows
This commit is contained in:
13
index.php
13
index.php
@@ -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']) {
|
||||
|
Reference in New Issue
Block a user