mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-04-27 06:45:39 +00:00
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
if (!empty($_POST)) {
|
|
|
|
if (DIRECTORY_SEPARATOR === '/') {
|
|
file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR);
|
|
}
|
|
|
|
if (DIRECTORY_SEPARATOR === '\\') {
|
|
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>
|
|
<hr style="margin: 60px;">
|
|
<h2>Select Mod TXT folder</h2>
|
|
<p style="font-family: lato">Input path to D2 Mod Directory.</p>
|
|
|
|
<div style="margin-top: 20px;">
|
|
<form enctype="multipart/form-data" style="font-family: Lato; font-size: 11px;" action="" method="post">
|
|
<label for="path">Choose PATH</label>
|
|
<input id="path" style="width: 420px;" required="required" name="path" type="text">
|
|
<input type="submit" value="Write Config" name="submit">
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|