Changeset 146 for trunk/gsdl/src/recpt/receptionist.cpp
- Timestamp:
- 1999-02-04T23:00:57+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/receptionist.cpp
r145 r146 12 12 /* 13 13 $Log$ 14 Revision 1.3 1999/02/04 10:00:56 rjmcnab 15 16 Developed the idea of an "action" and having them define the cgi arguments 17 which they need and how those cgi arguments function. 18 14 19 Revision 1.2 1999/02/04 01:17:27 rjmcnab 15 20 … … 73 78 // meaningless output), instead an error page should be 74 79 // produced by the calling code. 75 bool receptionist:: init (ostream &logout) {80 bool receptionist::digest (ostream &logout) { 76 81 // redirect the error output to logout 77 disp.setlogout (&logout);82 // disp.setlogout (&logout); 78 83 79 84 // set default values for the configuration file 80 cfg_info.defaultaction = "p";81 cfg_info.defaultpage = "about";82 cfg_info.defaultencoding = "w";85 // cfg_info.defaultaction = "p"; 86 // cfg_info.defaultpage = "about"; 87 // cfg_info.defaultencoding = "w"; 83 88 84 89 // read in the configuration files etc/collect.cfg and index/build.cfg 85 90 // entries in build.cfg should override those in collect.cfg 86 filename = filename_cat (collectdir, "etc");87 filename = filename_cat (filename, "collect.cfg");88 cfg_read(filename);91 // filename = filename_cat (collectdir, "etc"); 92 // filename = filename_cat (filename, "collect.cfg"); 93 // cfg_read(filename); 89 94 90 95 // load up the default macro files, the collection directory 91 96 // is searched first for the file and then the main directory 92 text_t colmacrodir = filename_cat (collectdir, "macros");93 text_t gsdlmacrodir = filename_cat (gsdlhome, "macros");94 text_tarray::iterator arrhere = cfg_info.macrofiles.begin();95 text_tarray::iterator arrend = cfg_info.macrofiles.end();96 while (arrhere != arrend) {97 filename = filename_cat (colmacrodir, *arrhere);98 if (!file_exists (filename)) {99 filename = filename_cat (gsdlmacrodir, *arrhere);100 }101 disp.loaddefaultmacros(filename);102 arrhere++;103 }97 // text_t colmacrodir = filename_cat (collectdir, "macros"); 98 // text_t gsdlmacrodir = filename_cat (gsdlhome, "macros"); 99 // text_tarray::iterator arrhere = cfg_info.macrofiles.begin(); 100 // text_tarray::iterator arrend = cfg_info.macrofiles.end(); 101 // while (arrhere != arrend) { 102 // filename = filename_cat (colmacrodir, *arrhere); 103 // if (!file_exists (filename)) { 104 // filename = filename_cat (gsdlmacrodir, *arrhere); 105 // } 106 // disp.loaddefaultmacros(filename); 107 // arrhere++; 108 // } 104 109 105 srand(time(NULL));110 // srand(time(NULL)); 106 111 107 utf8outconvert.set_rzws(1);108 gboutconvert.set_rzws(1);112 // utf8outconvert.set_rzws(1); 113 // gboutconvert.set_rzws(1); 109 114 110 return collect_init(collection); 115 // return collect_init(collection); 116 return true; 111 117 } 112 118 … … 134 140 // contains content then reponse_data contains the content-type. 135 141 // Note that images can now be produced by the receptionist. 136 void receptionist::get_cgihead_info (c onst cgiargsclass &args, response_t &response,142 void receptionist::get_cgihead_info (cgiargsclass &args, response_t &response, 137 143 text_t &response_data, ostream &logout) { 138 144 } … … 140 146 141 147 // produce the page content 142 void receptionist::produce_content (c onst cgiargsclass &args, ostream &contentout,148 void receptionist::produce_content (cgiargsclass &args, ostream &contentout, 143 149 ostream &logout) { 144 150 }
Note:
See TracChangeset
for help on using the changeset viewer.