Changeset 2212 for trunk/gsdl/src/w32server/cgiwrapper.cpp
- Timestamp:
- 2001-03-20T21:48:12+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/w32server/cgiwrapper.cpp
r1918 r2212 228 228 } 229 229 230 static void page_errorparseargs (const text_t & gsdlhome) {230 static void page_errorparseargs (const text_t &/*gsdlhome*/) { 231 231 232 232 text_t message = "Error\n\n" … … 238 238 } 239 239 240 static void page_errorcgipage (const text_t & gsdlhome) {240 static void page_errorcgipage (const text_t &/*gsdlhome*/) { 241 241 242 242 text_t message = "Error\n\n" … … 351 351 // required to create a collection specific receptionist 352 352 text_t collection = ""; 353 text_tset g sdlhomes;353 text_tset gdbmhomes; 354 354 text_tset collections; 355 355 … … 371 371 // collection specific receptionist - one collection, one gsdlhome 372 372 collections.insert (collection); 373 g sdlhomes.insert (gsdl_gsdlhome);373 gdbmhomes.insert (gsdl_gdbmhome); 374 374 collectioninfo_t tmp; 375 375 tmp.gsdl_gsdlhome = gsdl_gsdlhome; … … 387 387 colinfo_tmap::const_iterator end_info = gsdl_collectinfo.end(); 388 388 while (this_info != end_info) { 389 if (g sdlhomes.find ((*this_info).second.gsdl_gsdlhome) == gsdlhomes.end()) {389 if (gdbmhomes.find ((*this_info).second.gsdl_gdbmhome) == gdbmhomes.end()) { 390 390 these_collections.erase (these_collections.begin(), these_collections.end()); 391 391 read_dir (filename_cat ((*this_info).second.gsdl_gsdlhome, "collect"), these_collections); … … 411 411 colhere ++; 412 412 } 413 g sdlhomes.insert ((*this_info).second.gsdl_gsdlhome);413 gdbmhomes.insert ((*this_info).second.gsdl_gdbmhome); 414 414 } 415 415 this_info ++; 416 416 } 417 417 418 // then if necessary the main g sdlhome (this should only happen if the419 // gsdl.ini is a little screwed up and no volume g sdlhomes occurred420 if (g sdlhomes.find (gsdl_gsdlhome) == gsdlhomes.end()) {418 // then if necessary the main gdbmhome (this should only happen if the 419 // gsdl.ini is a little screwed up and no volume gdbmhomes occurred) 420 if (gdbmhomes.find (gsdl_gdbmhome) == gdbmhomes.end()) { 421 421 these_collections.erase (these_collections.begin(), these_collections.end()); 422 read_dir (filename_cat (gsdl_g sdlhome, "collect"), these_collections);422 read_dir (filename_cat (gsdl_gdbmhome, "collect"), these_collections); 423 423 colhere = these_collections.begin(); 424 424 colend = these_collections.end(); … … 431 431 colhere ++; 432 432 } 433 g sdlhomes.insert (gsdl_gsdlhome);433 gdbmhomes.insert (gsdl_gdbmhome); 434 434 } 435 435 } … … 525 525 // set defaults 526 526 recpt.configure ("gsdlhome", gsdl_gsdlhome); 527 recpt.configure ("gdbmhome", gsdl_gdbmhome); 527 528 recpt.configure ("collection", collection); 528 529 … … 543 544 } 544 545 545 // read in config files of each g sdlhome (in no particular order)546 // read in config files of each gdbmhome (in no particular order) 546 547 // those read in last will override those read earlier 547 548 // collections being used together in this way should be 548 549 // careful not to have main.cfg files that might 549 550 // screw with each other. 550 text_tset::const_iterator thome = g sdlhomes.begin();551 text_tset::const_iterator ehome = g sdlhomes.end();551 text_tset::const_iterator thome = gdbmhomes.begin(); 552 text_tset::const_iterator ehome = gdbmhomes.end(); 552 553 while (thome != ehome) { 553 554 if (!main_cfg_read (recpt, *thome, collection)) {
Note:
See TracChangeset
for help on using the changeset viewer.