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

Pages under construction.
\ Service may sporadically become unavailable.
\ In-game database is not directly synced with this web server.\

\ "; 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); } int main(void) { html(); return 0; }