summaryrefslogtreecommitdiffstats
path: root/web/board.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-10-18 22:43:58 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-10-18 22:43:58 +0800
commit86672771393d552ac6d9c742fa1d80c34cc1cf74 (patch)
tree559e636d1dca81d54c8d5a7a929bba73a9f62646 /web/board.c
parentd87c20433e1a16e5ec3d31b00c1dd491e995b1ea (diff)
downloadpttbbs-86672771393d552ac6d9c742fa1d80c34cc1cf74.tar
pttbbs-86672771393d552ac6d9c742fa1d80c34cc1cf74.tar.gz
pttbbs-86672771393d552ac6d9c742fa1d80c34cc1cf74.tar.bz2
pttbbs-86672771393d552ac6d9c742fa1d80c34cc1cf74.tar.lz
pttbbs-86672771393d552ac6d9c742fa1d80c34cc1cf74.tar.xz
pttbbs-86672771393d552ac6d9c742fa1d80c34cc1cf74.tar.zst
pttbbs-86672771393d552ac6d9c742fa1d80c34cc1cf74.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@539 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'web/board.c')
-rw-r--r--web/board.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/web/board.c b/web/board.c
new file mode 100644
index 00000000..43347912
--- /dev/null
+++ b/web/board.c
@@ -0,0 +1,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;
+}