--- mod_czs.c 2000/08/09 20:34:29 1.7 +++ mod_czs.c 2000/08/09 21:09:50 1.8 @@ -28,6 +28,7 @@ #include "http_config.h" #include "http_log.h" #include "http_protocol.h" +#include "translate.c" module MODULE_VAR_EXPORT mod_czs; @@ -100,26 +101,6 @@ return OK; } -int translate_path(request_rec *r) { - char *uri = r->uri; - request_rec *subr; - do_czs=0; - - if (uri[0]=='/' && uri[1]=='c' && uri[2]=='z' && uri[3]=='s') { -#if 0 - ap_table_setn(r->headers_out, "Location", ap_pstrcat(r->pool, uri+2, "?czs", NULL)); - return REDIRECT; -#endif - subr = (request_rec *) ap_sub_req_lookup_uri(r->uri+4, r); - r->filename=ap_pstrdup(r->pool, subr->filename); - ap_destroy_sub_req(subr); - do_czs=1; - return OK; - } - - return DECLINED; -} - /* Dispatch list of content handlers */ static const handler_rec czs_handlers[] = { { "czs", czs_handler }, @@ -147,5 +128,11 @@ NULL, /* child_init */ NULL, /* child_exit */ NULL /* [#0] post read-request */ +#ifdef EAPI + ,NULL, /* EAPI: add_module */ + NULL, /* EAPI: remove_module */ + NULL, /* EAPI: rewrite_command */ + NULL /* EAPI: new_connection */ +#endif };