2021-06-12 01:59:29 -04:00
|
|
|
#define VOTE_FILE "badass.vote"
|
|
|
|
#define ADDR_FILE "badass.addr"
|
|
|
|
#define HTML_FILE "badass.html"
|
|
|
|
#define VALID_REFERER "http://neil.chaosnet.org/"
|
2021-06-12 02:22:08 -04:00
|
|
|
#define VOTE_TITLE "Which of these professions is the most badass?"
|
|
|
|
#define VOTE_BACK "<a href = \"/\">http://neil.chaosnet.org/</a>"
|
2021-06-12 01:59:29 -04:00
|
|
|
|
|
|
|
/* #define VOTES(X) \
|
|
|
|
X('a', "astronaut"), \
|
|
|
|
X('c', "commando"), \
|
|
|
|
X('h', "hacker"), \
|
|
|
|
X('n', "ninja"), \
|
|
|
|
X('p', "pilot"), \
|
|
|
|
X('i', "pirate"), \
|
|
|
|
X('r', "robot"), \
|
|
|
|
X('m', "samurai"), \
|
|
|
|
X('s', "scientist"), \
|
|
|
|
X('y', "spy") */
|
|
|
|
|
|
|
|
static struct vote votes[] = {
|
|
|
|
{ "astronaut", 0, 'a' },
|
|
|
|
{ "commando", 0, 'c' },
|
|
|
|
{ "hacker", 0, 'h' },
|
|
|
|
{ "ninja", 0, 'n' },
|
|
|
|
{ "pilot", 0, 'p' },
|
|
|
|
{ "pirate", 0, 'i' },
|
|
|
|
{ "robot", 0, 'r' },
|
|
|
|
{ "samurai", 0, 'm' },
|
|
|
|
{ "scientist", 0, 's' },
|
|
|
|
{ "spy", 0, 'y' }
|
|
|
|
};
|