Debug puzzles, add them all in

This commit is contained in:
Neale Pickett 2010-09-24 22:28:40 -06:00
parent 89ebd469d7
commit e46bff58d0
7 changed files with 18 additions and 5 deletions

4
doc/todo.txt Normal file
View File

@ -0,0 +1,4 @@
Things That Need Fixin'
=======================
* puzzles.cgi really needs to cross out points your team has claimed.

View File

@ -20,7 +20,7 @@ cat <<EOF
EOF EOF
echo "<table>" 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 for i in *; do
echo "<tr><td>" echo "<tr><td>"
escape < $i escape < $i
@ -29,7 +29,10 @@ done
echo "</table>" echo "</table>"
cat <<EOF 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> </body>
</html> </html>
EOF EOF

View File

@ -2,6 +2,9 @@
exec 2>&1 exec 2>&1
# Give everybody a chance to mount
sleep 5
# Make an initial listing # Make an initial listing
./puzzled ./puzzled

View File

@ -4,6 +4,7 @@
hostname mcp hostname mcp
cp -r service/* /var/service/ cp -r service/* /var/service/
cp -r www /var/ cp -r www /var/

View File

@ -76,7 +76,8 @@ main(int argc, char *argv[])
} }
cgi_page("Points awarded", 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 -->"), "<!-- awarded %d -->"),
points, team, points); points, team, points);

View File

@ -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 cat[CAT_MAX];
char points_str[11]; char points_str[11];
long points; long points;

View File

@ -1,4 +1,5 @@
PUZZLES = sequence codebreaking PUZZLES += basemath bletchley codebreaking compaq crypto
PUZZLES += forensics hackme net-re sequence skynet webapp
-include puzzles/*/*.mk -include puzzles/*/*.mk