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 {
header('Location: ./src/config.php');
}
?>

View File

@ -257,4 +257,4 @@
</footer>
</div>
</body>
</html>
</html>

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>
<html lang="en">
<?php
/* Require the <head> section */
require_once "head.php";
?>
<body style="text-align: center; background: white;">
<div class="container container-top">
<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">
</form>
</div>
</body>
</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: /');
}
</html>

View File

@ -44,4 +44,4 @@ along with D2UM. If not, see <http://www.gnu.org/licenses/>.
</script>
<title>Unique Maker</title>
</head>
</head>

View File

@ -46,7 +46,7 @@ class saveFile {
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";
@ -58,7 +58,7 @@ class saveFile {
public function saveTblEnries() {
$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
$str[0] = $post['index'];
@ -72,3 +72,4 @@ class saveFile {
}
}
?>

View File

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