summaryrefslogtreecommitdiffstats
path: root/web/board.c
blob: 43347912790f06ace313e26aee61812796170548 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "mod_ptt.h"

extern int numboards;
extern boardheader_t *bcache;
extern int ptt_handler(request_rec *r, void *args);

int bbs_board(request_rec *r, void *args)
{
    int i;
    r->content_type = "text/xml";
    ap_send_http_header(r);
    ap_rputs("<hr> Ptt \n", r);
return ptt_handler (r,args);

    ap_rprintf(r,"r->filename : %s <br>",r->filename);
    ap_rprintf(r,"r->request_time : %s <br>",ctime(&r->request_time));
    ap_rprintf(r,"r->method : %s <br>",r->method);
    ap_rprintf(r,"r->method_number : %d <br>",r->method_number);
    ap_rprintf(r,"r->path_info : %s <br>",r->path_info);
    ap_rprintf(r,"r->args : %s <br>",r->args);
    ap_rprintf(r,"r->unparsed_uri : %s <br>",r->unparsed_uri);
    ap_rprintf(r,"r->uri : %s <br>",r->uri);
    ap_rprintf(r,"r->handler : %s <br>",r->handler);
    ap_rprintf(r,"r->content_type : %s <br>",r->content_type);
    ap_rprintf(r, "Server built: \"%s\"\n", ap_get_server_built());

    ap_rputs("<hr> Ptt \n", r);

    ap_rputs("<XML>",r);
/*
    for(i = 0; i++ < numboards; i++)
      {
         ap_rputs("<board>",r);
         ap_rputs("</board>",r);
      }
*/
 
   return OK;
}