summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-08 18:22:50 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-08 18:22:50 -0500
commit453f6a9a4a32ddf1c5b1aa8351fd8419b0bf0a3b (patch)
tree68a3ea285bc50da98aec8e5001f05a95b5b5eb04
parentcda36b93e02dbd6d63b9f8d22fd34042ad05e181 (diff)
downloadwebpage-453f6a9a4a32ddf1c5b1aa8351fd8419b0bf0a3b.tar.gz
webpage-453f6a9a4a32ddf1c5b1aa8351fd8419b0bf0a3b.tar.bz2
webpage-453f6a9a4a32ddf1c5b1aa8351fd8419b0bf0a3b.zip
More work on server list
-rw-r--r--servers.sh22
1 files changed, 17 insertions, 5 deletions
diff --git a/servers.sh b/servers.sh
index 31835c1..4e26413 100644
--- a/servers.sh
+++ b/servers.sh
@@ -1,10 +1,22 @@
-./cgi/bashlib.sh
+. /usr/local/bin/bashlib
-param
+servername=`param hostname`
+gamemodename=`param gamemode`
+add=`pram online`
+#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
+fi
-#echo "Content-type: text/html"
-#echo ""
-#echo "<p>Servers currently running Winter Survival 2 - Anarchy:<br/>"
+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