Merge branch 'master' of woozle.org:/home/neale/projects/ctf/base

This commit is contained in:
James Wernicke 2015-05-28 14:15:15 -06:00
commit b2f08377df
1 changed files with 9 additions and 7 deletions

View File

@ -40,12 +40,11 @@ function koth.page(title, body)
print(body)
print("</section>")
end
print([[<section id="sponsors">
<img src="../images/lanl.png" alt="Los Alamos National Laboratory">
<img src="../images/doe.png" alt="US Department Of Energy">
<img src="../images/sandia.png" alt="Sandia National Laboratories">
</section>]])
print('<section id="sponsors">')
print('<img src="../images/lanl.png" alt="Los Alamos National Laboratory">')
print('<img src="../images/doe.png" alt="US Department Of Energy">')
print('<img src="../images/sandia.png" alt="Sandia National Laboratories">')
print('</section>')
print("</body></html>")
os.exit(0)
end
@ -55,6 +54,9 @@ end
--
function koth.award_points(team, category, points, comment)
team = team:gsub("[^0-9a-f]", "-")
if (team == "") then
team = "-"
end
local filename = team .. "." .. category .. "." .. points
local entry = team .. " " .. category .. " " .. points