added a return button

master
Jan Danielzick 2020-02-12 06:21:22 +01:00
parent 95b4d09324
commit 732f391fec
1 changed files with 7 additions and 4 deletions

View File

@ -28,10 +28,13 @@ echo "Done.";
<body class="status_page"> <body class="status_page">
<h1> Strassenkind Server Status </h1> <h1> Strassenkind Server Status </h1>
<hr /> <hr />
<form action="" method="post"> <?php
<input type="submit" value="Run ondemand commands" name="ondemand" /> if (!isset($_POST['ondemand'])) {
</form> echo "<form action=\"\" method=\"post\"><input type=\"submit\" value=\"Run ondemand commands\" name=\"ondemand\" /></form><hr />";
<hr /> } else {
echo "<a href=\"\"><button> Return to regular status commands </button></a>";
}
?>
<?php <?php
// run ondemand command list if demanded // run ondemand command list if demanded
if (isset($_POST['ondemand'])) { if (isset($_POST['ondemand'])) {