mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
latest copy
This commit is contained in:
parent
2af7a1c435
commit
b6dad1e958
@ -72,4 +72,4 @@ if (file_exists($filename)) {
|
||||
} else {
|
||||
header('Location: ./src/config.php');
|
||||
}
|
||||
|
||||
?>
|
@ -257,4 +257,4 @@
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
@ -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>
|
@ -44,4 +44,4 @@ along with D2UM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
</script>
|
||||
<title>Unique Maker</title>
|
||||
</head>
|
||||
</head>
|
@ -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 {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
@ -60,4 +60,5 @@ class txtParser {
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user