mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2026-02-28 23:33:58 -06:00
latest copy
This commit is contained in:
30
src/config.php
Normal file
30
src/config.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<!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>
|
||||
|
||||
<?php
|
||||
if (!empty($_POST)) {
|
||||
file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR);
|
||||
header('Location: /');
|
||||
}
|
||||
Reference in New Issue
Block a user