diff options
| author | Alexander Pickering <Apickx@cogarr.org> | 2016-01-08 18:25:55 -0500 |
|---|---|---|
| committer | Alexander Pickering <Apickx@cogarr.org> | 2016-01-08 18:25:55 -0500 |
| commit | 50ebf6aca104da99e0b8da048731d282fda6e433 (patch) | |
| tree | 1aca34dea4dc4bc21a7a3414f79854150949a973 /servers.sh | |
| parent | cd1d4e9ccfb25e726576c3e5aadc3cca03f8828c (diff) | |
| parent | 134cfec224033c2367d8c1bad7587508d8cc05f1 (diff) | |
| download | webpage-50ebf6aca104da99e0b8da048731d282fda6e433.tar.gz webpage-50ebf6aca104da99e0b8da048731d282fda6e433.tar.bz2 webpage-50ebf6aca104da99e0b8da048731d282fda6e433.zip | |
Merge branch 'development'
Diffstat (limited to 'servers.sh')
| -rw-r--r-- | servers.sh | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |
