blob: 8934626a470a3331ca38f165bc35364b43dfa545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
echo "Content-type: text/html"
echo ""
ls -l /home/steam/server_1/garrysmod/data/ws_recipedata.txt > ./fileparts/recipenow.txt
#If the recipe list is more than a day old, retrive a new one
if ! ( cmp recipelast.txt recipenow.txt ) then
cp /home/steam/server_1/garrysmod/data/ws_recipedata.txt ./fileparts/
mv ./fileparts/recipenow.txt /fileparts/recipelast.txt
fi
cat ./fileparts/header.html
cat ./fileparts/recipestop.html
cat ./fileparts/ws_recipedata.txt
cat ./fileparts/ws_recipebot.html
cat ./fileparts/footer.html
|