mirror of https://github.com/dirtbags/moth.git
Debug puzzles, add them all in
This commit is contained in:
parent
89ebd469d7
commit
e46bff58d0
|
@ -0,0 +1,4 @@
|
|||
Things That Need Fixin'
|
||||
=======================
|
||||
|
||||
* puzzles.cgi really needs to cross out points your team has claimed.
|
|
@ -20,7 +20,7 @@ cat <<EOF
|
|||
EOF
|
||||
|
||||
echo "<table>"
|
||||
echo "<tr><th>Team Name</th><th>Token</th></tr>"
|
||||
echo "<tr><th>Team</th><th>ID</th></tr>"
|
||||
for i in *; do
|
||||
echo "<tr><td>"
|
||||
escape < $i
|
||||
|
@ -29,7 +29,10 @@ done
|
|||
echo "</table>"
|
||||
|
||||
cat <<EOF
|
||||
<p>Use your team's token to claim points.</p>
|
||||
<p>
|
||||
Team names are only used on this page and the scoreboard.
|
||||
Use your team ID to claim points.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
# Give everybody a chance to mount
|
||||
sleep 5
|
||||
|
||||
# Make an initial listing
|
||||
./puzzled
|
||||
|
||||
|
|
|
@ -76,7 +76,8 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
cgi_page("Points awarded",
|
||||
("<p>%d points for %s.</p>"
|
||||
("<p>%d points for %s.</p>\n"
|
||||
"<p><a href=\"/puzzles.html\">Back to puzzles</a></p>\n"
|
||||
"<!-- awarded %d -->"),
|
||||
points, team, points);
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
{
|
||||
FILE *f = fopen(state_path("puzzler.db"), "r");
|
||||
FILE *f = fopen(state_path("puzzles.db"), "r");
|
||||
char cat[CAT_MAX];
|
||||
char points_str[11];
|
||||
long points;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
PUZZLES = sequence codebreaking
|
||||
PUZZLES += basemath bletchley codebreaking compaq crypto
|
||||
PUZZLES += forensics hackme net-re sequence skynet webapp
|
||||
|
||||
-include puzzles/*/*.mk
|
||||
|
||||
|
|
Loading…
Reference in New Issue