/[mod_czs]/mod_czs.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

Diff of /mod_czs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dpavlin, Wed Aug 9 19:36:13 2000 UTC revision 1.6 by dpavlin, Wed Aug 9 19:43:30 2000 UTC
# Line 103  int translate_path(request_rec *r) { Line 103  int translate_path(request_rec *r) {
103          request_rec *subr;          request_rec *subr;
104          do_czs=0;          do_czs=0;
105    
106          if (uri[0]=='/' && uri[1]=='_' && uri[2]=='/') {          if (uri[0]=='/' && uri[1]=='c' && uri[2]=='z' && uri[3]=='s') {
107  #if 0  #if 0
108                  ap_table_setn(r->headers_out, "Location", ap_pstrcat(r->pool, uri+2, "?czs", NULL));                  ap_table_setn(r->headers_out, "Location", ap_pstrcat(r->pool, uri+2, "?czs", NULL));
109                  return REDIRECT;                  return REDIRECT;
110  #endif  #endif
111                  subr = (request_rec *) ap_sub_req_lookup_uri(r->uri+2, r);                  subr = (request_rec *) ap_sub_req_lookup_uri(r->uri+4, r);
112                  r->filename=ap_pstrdup(r->pool, subr->filename);                  r->filename=ap_pstrdup(r->pool, subr->filename);
113                  ap_destroy_sub_req(subr);                  ap_destroy_sub_req(subr);
114                  do_czs=1;                  do_czs=1;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.26