--- parser3/src/targets/apache/mod_parser3_core.C 2010/11/13 00:43:22 1.1 +++ parser3/src/targets/apache/mod_parser3_core.C 2010/11/23 00:00:33 1.4 @@ -5,7 +5,7 @@ Parser: apache 1.3 module, part, compile Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_MOD_PARSER3_MAIN_C="$Date: 2010/11/13 00:43:22 $"; +static const char * const IDENT_MOD_PARSER3_MAIN_C="$Date: 2010/11/23 00:00:33 $"; #include "pa_config_includes.h" @@ -17,7 +17,6 @@ static const char * const IDENT_MOD_PARS #include "pa_sapi.h" #include "classes.h" #include "pa_request.h" -#include "pa_version.h" #include "pa_socks.h" #if _MSC_VER && !defined(_DEBUG) @@ -27,12 +26,8 @@ static const char * const IDENT_MOD_PARS // generals -const char* pa_version() { - return "Parser/"PARSER_VERSION; -} - void pa_setup_module_cells() { - static bool globals_inited=false; + static bool globals_inited=false; if(globals_inited) return; globals_inited=true; @@ -232,13 +227,11 @@ static void real_parser_handler(SAPI_Inf request_info.cookie=SAPI::get_env(SAPI_info, "HTTP_COOKIE"); request_info.mail_received=false; - //_asm int 3; // prepare to process request Request request( SAPI_info, request_info, - String::Language(String::L_HTML|String::L_OPTIMIZE_BIT), - dcfg->parser_status_allowed?true:false + String::Language(String::L_HTML|String::L_OPTIMIZE_BIT) ); // process the request @@ -296,20 +289,12 @@ static void call_real_parser_handler__su /// @test r->finfo.st_mode check seems to work only on win32 int pa_parser_handler(pa_request_rec *r, Parser_module_config *dcfg) { - //_asm int 3; - // SAPI info SAPI_Info SAPI_info; SAPI_info.r=r; - //_asm int 3; - if(r->finfo->st_mode == 0) + if(r->file_not_found ) return PA_HTTP_NOT_FOUND; - /* A flag which modules can set, to indicate that the data being - * returned is volatile, and clients should be told not to cache it. - */ - // r->no_cache=1; - try { // global try #ifdef PA_SUPPRESS_SYSTEM_EXCEPTION call_real_parser_handler__supress_system_exception(