summaryrefslogtreecommitdiff
path: root/servers.sh
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-08 18:25:46 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-08 18:25:46 -0500
commit134cfec224033c2367d8c1bad7587508d8cc05f1 (patch)
tree1aca34dea4dc4bc21a7a3414f79854150949a973 /servers.sh
parent453f6a9a4a32ddf1c5b1aa8351fd8419b0bf0a3b (diff)
downloadwebpage-134cfec224033c2367d8c1bad7587508d8cc05f1.tar.gz
webpage-134cfec224033c2367d8c1bad7587508d8cc05f1.tar.bz2
webpage-134cfec224033c2367d8c1bad7587508d8cc05f1.zip
Quick debugging
Diffstat (limited to 'servers.sh')
-rw-r--r--servers.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/servers.sh b/servers.sh
index 4e26413..4022450 100644
--- a/servers.sh
+++ b/servers.sh
@@ -6,17 +6,22 @@ servername=`param hostname`
gamemodename=`param gamemode`
add=`pram online`
+
+echo "Content-type: text/html"
+echo ""
+
+cat ./fileparts/header.html
+echo "<body>"
+
#It seems quotes are enough,see
#https://stackoverflow.com/questions/4273074/sanitize-user-input-in-bash-for-security-purposes
if ( $add -eq "true" ) then
cat "$servername" >> servers.txt
+ echo "Server $servername added"
fi
-echo "Content-type: text/html"
-echo ""
-cat ./fileparts/header.html
-echo "<body>"
+
echo "<p>Servers currently running Winter Survival 2 - Anarchy:<br/>"
echo "</body>"
cat ./fileparts/footer.html