diff --git a/index.php b/index.php index 85c135b..49ddfda 100644 --- a/index.php +++ b/index.php @@ -26,7 +26,7 @@ ini_set('log_errors', 1); include "includes.php"; -if (file_exists("d2im.conf")) { +if (file_exists("d2im.conf") && (file_exists($config['modname'].".db"))){ if (is_dir($config['path'])) { define('TXT_PATH', $config['path']); diff --git a/processFiles.php b/processFiles.php index 7a9582f..9f611e7 100644 --- a/processFiles.php +++ b/processFiles.php @@ -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. ?> diff --git a/src/optionSubmit.php b/src/optionSubmit.php index ff48910..6ff9424 100644 --- a/src/optionSubmit.php +++ b/src/optionSubmit.php @@ -1,11 +1,5 @@
-
-

- - -

-
-
+