latest, d2s stuff

This commit is contained in:
Hash Borgir
2022-07-03 04:13:50 -06:00
parent e51e40175e
commit f3b24de2a8
11 changed files with 393 additions and 239 deletions

View File

@@ -62,8 +62,8 @@ if (!isset($_SESSION['modname']) || (!file_exists(APP_DB)) || (!file_exists($_SE
$_SESSION['modname'] = $lastUsedMod['modname'];
$_SESSION['path'] = $lastUsedMod['path'];
$sql = "SELECT theme FROM `D2Modder` WHERE `modname`='{$_SESSION['modname']}'";
$res = PDO_FetchAll($sql);
$sql = "SELECT theme FROM `D2Modder` WHERE modname= :modname";
$res = PDO_FetchAll($sql, ['modname' => $_SESSION['modname']]);
if ($res[0]['theme'] == 1) {
$css = 'dark.css';
@@ -82,12 +82,13 @@ if (!isset($_SESSION['modname']) || (!file_exists(APP_DB)) || (!file_exists($_SE
require_once './src/D2ItemDesc.php';
require_once './src/D2Char.php';
require_once './src/D2CharStructureData.php';
$D2Files = new D2Files();
$charFiles = $D2Files->getSaveFiles();
foreach ($charFiles as $charFile) {
$charData[] = new D2Char($charFile); // $charData goes into chars.php tab
//$charData[] = $_charData->cData;
}
@@ -161,6 +162,8 @@ if (!isset($_SESSION['modname']) || (!file_exists(APP_DB)) || (!file_exists($_SE
*
*
* Unique Items Form was posted here
*
* TODO: Move this somewhre else, for fucks sake, why post here? That's just fucking stupid.
*
*/