2 \brief Mail router for OCKoreanMartialArts.com
3 \details This mail routing system is intended to run as a daemon for fastcgi
4 and stores usage information in a database before sending mail to the
8 ----------------------------------------------------------------------------*/
10 #include <stdlib.h> //atoi
11 #include <string.h> //mem
13 #include <fcgi_stdio.h>
25 while(FCGI_Accept() >= 0)
26 { printf("Content-type: application/json\r\n\r\n");
27 printf("{ \"submission\" : ");
42 if ((lencp
= getenv("CONTENT_LENGTH")) == NULL
43 || (len
= atoi(lencp
)) < 1)
45 for (i
= 0; i
< len
; i
++)