32 lines
810 B
C
32 lines
810 B
C
#define VOTE_FILE "badass.vote"
|
|
#define ADDR_FILE "badass.addr"
|
|
#define HTML_FILE "badass.html"
|
|
#define VALID_REFERER "http://neil.chaosnet.org/"
|
|
#define VOTE_TITLE "Which of these professions is the most badass?"
|
|
#define VOTE_BACK "<a href = \"/\">http://neil.chaosnet.org/</a>"
|
|
|
|
/* #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' }
|
|
};
|