mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-09-19 01:52:09 +00:00
Added check for db file as well as config file. cleaned up process
This commit is contained in:
@@ -2,12 +2,6 @@
|
||||
|
||||
include "includes.php";
|
||||
|
||||
if (file_exists("d2im.conf")) {
|
||||
if (is_dir($config['path'])) {
|
||||
define('TXT_PATH', $config['path']);
|
||||
}
|
||||
}
|
||||
|
||||
$files = new D2Files();
|
||||
|
||||
$parser = new D2TxtParser();
|
||||
@@ -20,7 +14,9 @@ foreach ($data as $k => $v) {
|
||||
$db->createTables($k, $v);
|
||||
$db->fillsTables($k, $v);
|
||||
}
|
||||
|
||||
// put in html redirect as backup, because
|
||||
// for some odd reason windows gives
|
||||
// an error on header() but linux does not.
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
Reference in New Issue
Block a user