diff options
| author | Alexander Pickering <Apickx@cogarr.org> | 2016-01-08 18:22:16 -0500 |
|---|---|---|
| committer | Alexander Pickering <Apickx@cogarr.org> | 2016-01-08 18:22:16 -0500 |
| commit | cd1d4e9ccfb25e726576c3e5aadc3cca03f8828c (patch) | |
| tree | 68a3ea285bc50da98aec8e5001f05a95b5b5eb04 | |
| parent | fcd703b1413f13b9696528c01f2c88c61cfc49f5 (diff) | |
| parent | 453f6a9a4a32ddf1c5b1aa8351fd8419b0bf0a3b (diff) | |
| download | webpage-cd1d4e9ccfb25e726576c3e5aadc3cca03f8828c.tar.gz webpage-cd1d4e9ccfb25e726576c3e5aadc3cca03f8828c.tar.bz2 webpage-cd1d4e9ccfb25e726576c3e5aadc3cca03f8828c.zip | |
Merge branch 'development'
| -rw-r--r-- | servers.sh | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -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 |
