Begin Refactor

This commit is contained in:
color.diff=auto
2021-03-21 13:47:29 -06:00
parent 7622dc0d02
commit 018931d7ae
197 changed files with 47799 additions and 6 deletions

View File

@@ -43,10 +43,17 @@ input {
<h1>Unique Maker by Hash</h1>
<body>
<?php
$u = "UniqueItems.txt";
$w = "Weapons.txt";
$a = "Armor.txt";
$p = "Properties.txt";
$u = $path.$u;
$w = $path.$w;
$a = $path.$a;
$p = $path.$p;
function toPHP($file)
{
$rows = array_map(function ($v)
@@ -65,13 +72,24 @@ $armor = toPHP($a);
$weapon = toPHP($w);
$prop = toPHP($p);
$uni = toPHP($u);
// echo '<pre>';
// print_r($uni);
// die();
?>
<form action="/index.php" method="post">
<div class="container">
<div class="inputs-top">
Index: <input style="width: 300px;" type="text" name="index" ><br>
Version: <input type="number" name="version" value="100">
Enabled: <input type="boolean" name="enabled" value="1">
<br>
<input type="radio" id="enabled" name="enabled" value="1">
<label for="enabled">Enabled</label>
<input type="radio" id="disabled" name="enabled" value="0">
<label for="disabled">Disabled</label>
<br>
<input type="hidden" name="ladder" >
Rarity: <input type="number" name="rarity" >
<input type="hidden" name="nolimit" value="">
@@ -116,7 +134,7 @@ Usesound: <input type="text" name="usesound" value="">
</div>
<?php
echo "<div class='container'><div class='row'>";
$html = '';
foreach (range(01, 12) as $p)
{
$html .= '<div style="border: 1px solid black;margin: 5px;padding: 15px;" class="col-2"><h4>Prop ' . $p . '</h4>';
@@ -135,7 +153,7 @@ foreach (range(01, 12) as $p)
echo $html;
?>
<div>
Usesound: <input type="hidden" name="eol" value="0"> <br>;
<input type="hidden" name="eol" value="0"> <br>
<button class='btn-success' style="height: 48px;width: 250px;" id="submit">Save Item</button>
<input class="btn-danger" style="height: 48px;width:200px; margin-left: 10px;" type="reset">
</div>