/[mod_czs]/translate.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /translate.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Aug 9 21:44:31 2000 UTC (23 years, 8 months ago) by dpavlin
Branch: MAIN
Changes since 1.1: +4 -0 lines
File MIME type: text/plain
Additional header for debugging

1 int translate_path(request_rec *r) {
2 char *uri = r->uri;
3 request_rec *subr;
4 extern do_czs;
5 do_czs=0;
6
7 if (uri[0]=='/' && uri[1]=='c' && uri[2]=='z' && uri[3]=='s') {
8 #if 0
9 ap_table_setn(r->headers_out, "Location", ap_pstrcat(r->pool, uri+2, "?czs", NULL));
10 return REDIRECT;
11 #endif
12 subr = (request_rec *) ap_sub_req_lookup_uri(r->uri+4, r);
13 r->filename=ap_pstrdup(r->pool, subr->filename);
14 ap_destroy_sub_req(subr);
15 do_czs=1;
16 #ifdef XHEADER
17 ap_table_setn(r->headers_out, "X-debug", XHEADER);
18 #endif
19 ap_table_setn(r->headers_out, "X-translate", r->uri);
20 return OK;
21 }
22
23 return DECLINED;
24 }

  ViewVC Help
Powered by ViewVC 1.1.26