index page to make configs

This commit is contained in:
Mikki Sørensen 2018-03-07 00:17:43 +01:00
parent eaea8c1c57
commit 288d5c6477

24
scripts/index.php Normal file
View File

@ -0,0 +1,24 @@
<?php
if (isset($_POST["conf"]) && $_POST["conf"] == "unbound")
{
require "unbound_conf.php";
$unbound_conf = new unbound_conf();
$unbound_conf->print();
}
else
{
?>
<form action="/steamcache/scripts/" method="post">
<input type="text" name="ip" placeholder="ip of cache server"><br>
<input type="radio" name="conf" value="unbound" checked> unbound<br>
<input type="radio" name="conf" value="other"> Other<br>
<input type="radio" name="conf" value="other2"> Other2<br>
<input type="submit" value="Submit">
</form>
<?php
}
?>