summaryrefslogtreecommitdiff
path: root/servers.sh
diff options
context:
space:
mode:
authorAlexander Pickering <Apickx@cogarr.org>2016-01-08 18:25:55 -0500
committerAlexander Pickering <Apickx@cogarr.org>2016-01-08 18:25:55 -0500
commit50ebf6aca104da99e0b8da048731d282fda6e433 (patch)
tree1aca34dea4dc4bc21a7a3414f79854150949a973 /servers.sh
parentcd1d4e9ccfb25e726576c3e5aadc3cca03f8828c (diff)
parent134cfec224033c2367d8c1bad7587508d8cc05f1 (diff)
downloadwebpage-50ebf6aca104da99e0b8da048731d282fda6e433.tar.gz
webpage-50ebf6aca104da99e0b8da048731d282fda6e433.tar.bz2
webpage-50ebf6aca104da99e0b8da048731d282fda6e433.zip
Merge branch 'development'
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