--- parser3/src/main/pa_request.C 2001/08/27 13:27:26 1.152 +++ parser3/src/main/pa_request.C 2001/09/13 07:41:45 1.152.4.2 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: pa_request.C,v 1.152 2001/08/27 13:27:26 parser Exp $"; +static const char *RCSId="$Id: pa_request.C,v 1.152.4.2 2001/09/13 07:41:45 parser Exp $"; #include "pa_config_includes.h" @@ -154,22 +154,22 @@ static void element2case(unsigned char * all located classes become children of one another, composing class we name 'MAIN' */ -void Request::core(const char *root_auto_path, bool root_auto_fail, - const char *site_auto_path, bool site_auto_fail, +void Request::core( + const char *root_config_filespec, bool root_config_fail_on_read_problem, + const char *site_config_filespec, bool site_config_fail_on_read_problem, bool header_only) { //_asm { int 3 } bool need_rethrow=false; Exception rethrow_me; TRY { char *auto_filespec=(char *)malloc(MAX_STRING); - // loading root auto.p - if(root_auto_path) { + // loading root config + if(root_config_filespec) { String& filespec=*NEW String(pool()); - filespec.APPEND_CLEAN(root_auto_path, 0, "root_auto", 0); - filespec << "/" AUTO_FILE_NAME; + filespec.APPEND_CLEAN(root_config_filespec, 0, "root_config", 0); main_class=use_file( filespec, - true/*ignore class_path*/, root_auto_fail, + true/*ignore class_path*/, root_config_fail_on_read_problem, main_class_name, main_class); } @@ -178,14 +178,13 @@ void Request::core(const char *root_auto OP.configure_admin(*this); methoded_array->configure_admin(*this); - // loading site auto.p - if(site_auto_path) { + // loading site config + if(site_config_filespec) { String& filespec=*NEW String(pool()); - filespec.APPEND_CLEAN(site_auto_path, 0, "site_auto", 0); - filespec << "/" AUTO_FILE_NAME; + filespec.APPEND_CLEAN(site_config_filespec, 0, "site_config", 0); main_class=use_file( filespec, - true/*ignore class_path*/, site_auto_fail, + true/*ignore class_path*/, site_config_fail_on_read_problem, main_class_name, main_class); } @@ -277,7 +276,7 @@ void Request::core(const char *root_auto pcre_tables=pcre_default_tables; // filling form fields - form.fill_fields(*this); + form.fill_fields_and_tables(*this); // filling cookies cookie.fill_fields(*this);