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">
<h1> Strassenkind Server Status </h1>
<hr />
<form action="" method="post">
<input type="submit" value="Run ondemand commands" name="ondemand" />
</form>
<hr />
<?php
if (!isset($_POST['ondemand'])) {
echo "<form action=\"\" method=\"post\"><input type=\"submit\" value=\"Run ondemand commands\" name=\"ondemand\" /></form><hr />";
} else {
echo "<a href=\"\"><button> Return to regular status commands </button></a>";
}
?>
<?php
// run ondemand command list if demanded
if (isset($_POST['ondemand'])) {