|
|
| version 1.76, 2002/06/24 11:59:33 | version 1.80, 2002/10/29 11:28:19 |
|---|---|
| Line 3 | Line 3 |
| Copyright (c) 2000,2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2000,2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | |
| */ | */ |
| static const char* IDENT_PARSER3ISAPI_C="$Date$"; | |
| #ifndef _MSC_VER | #ifndef _MSC_VER |
| # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] | # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] |
| #endif | #endif |
| Line 30 | Line 30 |
| // consts | // consts |
| extern const char *main_RCSIds[]; | |
| #ifdef USE_SMTP | |
| extern const char *smtp_RCSIds[]; | |
| #endif | |
| extern const char *gd_RCSIds[]; | |
| extern const char *classes_RCSIds[]; | |
| extern const char *types_RCSIds[]; | |
| extern const char *parser3isapi_RCSIds[]; | |
| const char **RCSIds[]={ | |
| main_RCSIds, | |
| #ifdef USE_SMTP | |
| smtp_RCSIds, | |
| #endif | |
| gd_RCSIds, | |
| classes_RCSIds, | |
| types_RCSIds, | |
| parser3isapi_RCSIds, | |
| 0 | |
| }; | |
| const char *IIS51vars[]={ | const char *IIS51vars[]={ |
| "APPL_MD_PATH", "APPL_PHYSICAL_PATH", | "APPL_MD_PATH", "APPL_PHYSICAL_PATH", |
| "AUTH_PASSWORD", "AUTH_TYPE", "AUTH_USER", | "AUTH_PASSWORD", "AUTH_TYPE", "AUTH_USER", |
| Line 402 void real_parser_handler(Pool& pool, LPE | Line 382 void real_parser_handler(Pool& pool, LPE |
| snprintf(config_filespec, MAX_STRING, | snprintf(config_filespec, MAX_STRING, |
| "%s/%s", | "%s/%s", |
| beside_binary_path, AUTO_FILE_NAME); | beside_binary_path, AUTO_FILE_NAME); |
| bool fail_on_config_read_problem=entry_exists(config_filespec); | |
| // process the request | // process the request |
| request.core( | request.core( |
| config_filespec, false /*fail_on_read_problem*/, // /path/to/first/auto.p | config_filespec, fail_on_config_read_problem, // /path/to/first/auto.p |
| header_only); | header_only); |
| } | } |
| Line 442 inline DWORD RealHttpExtensionProc(LPEXT | Line 423 inline DWORD RealHttpExtensionProc(LPEXT |
| SAPI_func_context ctx={ | SAPI_func_context ctx={ |
| lpECB, | lpECB, |
| 0, // filling later: so that if there would be error pool would have ctx | 0, // filling later: so that if there would be error pool would have ctx |
| 200 // default http_response_code | 200 // default http_response_code [lpECB->dwHttpStatusCode seems to be always 0, even on 404 redirect to /404.html] |
| }; | }; |
| pool.set_context(&ctx);// no allocations before this line! | pool.set_context(&ctx);// no allocations before this line! |