mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-09-18 09:32:08 +00:00
switchmods fixed session vars, saved to db in d2config class. Need to test d2s editor with modifyBit() function. need to fix app.js uniqueitems editor required fields on misc/weapons/armor
This commit is contained in:
@@ -43,6 +43,9 @@
|
||||
session_start();
|
||||
include "./_pdo.php";
|
||||
include "./config.php";
|
||||
|
||||
require_once 'src/D2Functions.php';
|
||||
|
||||
// if config db exists, connect to it and grab list of mods
|
||||
if (file_exists(APP_DB)) {
|
||||
PDO_Connect("sqlite:".APP_DB);
|
||||
@@ -67,9 +70,14 @@ if (file_exists(APP_DB)) {
|
||||
$time = time();
|
||||
$sql = "UPDATE `D2Modder` SET `lastused`=$time WHERE modname='{$_POST['modname']}'";
|
||||
PDO_Execute($sql);
|
||||
$_SESSION['modname'] = $mod['modname'];
|
||||
$_SESSION['path'] = $mod['path'];
|
||||
|
||||
$_SESSION['modname'] = $mod['modname'];
|
||||
$_SESSION['path'] = $mod['path'];
|
||||
$_SESSION['modpath'] = $mod['modpath'];
|
||||
$_SESSION['savepath'] = $mod['savepath'];
|
||||
$_SESSION['tbl'] = $mod['tbl'];
|
||||
|
||||
// ddump($_SESSION);
|
||||
|
||||
header("Location: /");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user