latest copy

This commit is contained in:
color.diff=auto 2021-03-22 03:23:04 -06:00
parent 2af7a1c435
commit b6dad1e958
6 changed files with 15 additions and 15 deletions

View File

@ -72,4 +72,4 @@ if (file_exists($filename)) {
} else { } else {
header('Location: ./src/config.php'); header('Location: ./src/config.php');
} }
?>

View File

@ -1,10 +1,15 @@
<?php
if (!empty($_POST)) {
file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'global'.DIRECTORY_SEPARATOR.'excel'.DIRECTORY_SEPARATOR);
header('Location: /');
}
?>
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<?php <?php
/* Require the <head> section */ /* Require the <head> section */
require_once "head.php"; require_once "head.php";
?> ?>
<body style="text-align: center; background: white;"> <body style="text-align: center; background: white;">
<div class="container container-top"> <div class="container container-top">
<h1><img src="/img/Diablo2.png" style="float:left">D2UM: Diablo 2 Unique Maker, v2. By HashCasper</h1> <h1><img src="/img/Diablo2.png" style="float:left">D2UM: Diablo 2 Unique Maker, v2. By HashCasper</h1>
@ -19,12 +24,5 @@
<input type="submit" value="Write Config" name="submit"> <input type="submit" value="Write Config" name="submit">
</form> </form>
</div> </div>
</body> </body>
</html> </html>
<?php
if (!empty($_POST)) {
file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'global'.DIRECTORY_SEPARATOR.'excel'.DIRECTORY_SEPARATOR);
header('Location: /');
}

View File

@ -46,7 +46,7 @@ class saveFile {
public function saveBackup($file){ public function saveBackup($file){
if (!is_dir($this->path."backup")) mkdir($this->path."backup", 0777); if (!is_dir($this->path."backup")) mkdir($this->path."backup", 0700);
$newfile = $this->path."backup".DIRECTORY_SEPARATOR.$file.".d2um"; $newfile = $this->path."backup".DIRECTORY_SEPARATOR.$file.".d2um";
@ -58,7 +58,7 @@ class saveFile {
public function saveTblEnries() { public function saveTblEnries() {
$post = $_POST; $post = $_POST;
if (!is_dir($this->path."tblEntries")) mkdir($this->path."tblEntries", 0777); if (!is_dir($this->path."tblEntries")) mkdir($this->path."tblEntries", 0700);
// write for .tbl // write for .tbl
$str[0] = $post['index']; $str[0] = $post['index'];
@ -72,3 +72,4 @@ class saveFile {
} }
} }
?>

View File

@ -60,4 +60,5 @@ class txtParser {
return $data; return $data;
} }
} }
?>