2017-03-14 11:06:50 +05:30
|
|
|
#include "dbquery.h"
|
2017-03-11 06:29:58 +05:30
|
|
|
#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>";
|
2017-03-13 08:33:51 +05:30
|
|
|
printf("%s", html_top);
|
2017-03-14 07:48:50 +05:30
|
|
|
// getquery(getenv("QUERY_STRING"));
|
2017-03-13 09:43:44 +05:30
|
|
|
// getquery("map=pornstar-kaine");
|
|
|
|
getquery(NULL);
|
2017-03-13 08:33:51 +05:30
|
|
|
printf("%s", html_bot);
|
2017-03-11 06:29:58 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
int main(void) {
|
2017-03-14 07:48:50 +05:30
|
|
|
html();
|
2017-03-13 08:33:51 +05:30
|
|
|
// getquery("player=duHTyaSGpdTk7oebwPFoo899xPoTwP9bja4DUjCjTLo=");
|
2017-03-14 07:48:50 +05:30
|
|
|
return 0;
|
2017-03-11 06:29:58 +05:30
|
|
|
}
|