From 9589a165662c516add5c91b68579a26c57c33865 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Thu, 5 Mar 2020 04:17:53 +0100 Subject: [PATCH] rewrote a significant portion of the code to make it more modular, added git commands --- strassenkind.php | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/strassenkind.php b/strassenkind.php index 3e1f0f0..e106173 100644 --- a/strassenkind.php +++ b/strassenkind.php @@ -1,18 +1,18 @@ @@ -29,11 +29,19 @@ echo "Done.";

Strassenkind Server Status



"; - } else { - echo "
"; + function add_button($button_text, $button_action){ + if (!isset($_POST[$button_action])) { + echo "
"; + } else { + echo ""; + } } + + add_button("Run ondemand commands", "ondemand"); + add_button("Force ThreadR update", "git"); + ?> +
+