summaryrefslogtreecommitdiff
path: root/servers.sh
blob: 4e264134afc97363b1daa0d81307c280ff93e845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
. /usr/local/bin/bashlib

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 ""

cat ./fileparts/header.html
echo "<body>"
echo "<p>Servers currently running Winter Survival 2 - Anarchy:<br/>"
echo "</body>"
cat ./fileparts/footer.html