#include "dbquery.h" #include #include void html(void) { const char *html_top = "Content-Type: text/html\n\n\ \ \ /v/ - Xonotic\ "; const char *html_bot = "

\ "; const char *html_mid = "
\

hi / good luck and have fun.

Available Pages

\

Map Leaderboards

\

cts?map=[map name]

\

Player Ranks

\

cts?player=[client id fingerprint]
\


"; const char *qstr = getenv("QUERY_STRING"); printf("%s", html_top); if (qstr == NULL) { printf("%s", html_mid); } getquery(qstr); printf("%s", html_bot); } // use with template void templated(void) { const char *qstr = getenv("QUERY_STRING"); getquery(qstr); return; } int main(void) { #ifdef STATICGEN templated(); #else html(); #endif return 0; }