27 lines
921 B
C
27 lines
921 B
C
#include "dbquery.h"
|
|
#include <stdio.h>
|
|
|
|
void html(void) {
|
|
const char *html_top = "Content-Type: text/html\n\n\
|
|
<html><head><meta content=\"text/html; charset=UTF-8\" />\
|
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"page.css\">\
|
|
<title>/v/ - Xonotic</title>\
|
|
<p class='hidden'>:-) / nice one<br></p>";
|
|
const char *html_bot = "<br><br><p classname='footer'>Pages under construction.<br>\
|
|
Service may sporadically become unavailable.<br>\
|
|
In-game database is not directly synced with this web server.\
|
|
</p>\
|
|
</body></html>";
|
|
printf("%s", html_top);
|
|
// getquery(getenv("QUERY_STRING"));
|
|
// getquery("map=pornstar-kaine");
|
|
getquery(NULL);
|
|
printf("%s", html_bot);
|
|
}
|
|
|
|
int main(void) {
|
|
html();
|
|
// getquery("player=duHTyaSGpdTk7oebwPFoo899xPoTwP9bja4DUjCjTLo=");
|
|
return 0;
|
|
}
|