Changeset 296 for trunk/gsdl/src/recpt
- Timestamp:
- 1999-06-26T13:14:32+12:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/receptionist.cpp
r263 r296 12 12 /* 13 13 $Log$ 14 Revision 1.15 1999/06/26 01:14:32 rjmcnab 15 Made a couple of changes to handle different encodings. 16 14 17 Revision 1.14 1999/06/09 00:08:36 sjboddie 15 18 query string macro (_cgiargq_) is now made html safe before being set … … 362 365 action *a = actions.getaction (args["a"]); 363 366 if (a != NULL) { 364 if (a->uses_display(args)) prepare_page (a, args, collectproto, logout);367 if (a->uses_display(args)) prepare_page (a, args, collectproto, (*outconverter), logout); 365 368 if (!a->do_action (args, collectproto, disp, (*outconverter), contentout, logout)) 366 369 return false; … … 392 395 // returns the compressed argument ("e") corresponding to the argument 393 396 // list. This can be used to save preferences between sessions. 394 text_t receptionist::get_compressed_arg (cgiargsclass &args, ostream &logout) { 395 397 text_t receptionist::get_compressed_arg (cgiargsclass &args, outconvertclass &outconvert, 398 ostream &logout) { 399 396 400 text_t compressed_args; 397 401 if (compress_save_args (argsinfo, configinfo.saveconf, args, 398 compressed_args, logout))402 compressed_args, outconvert, logout)) 399 403 return compressed_args; 400 404 else … … 581 585 // prepare_page sets up page parameters, sets display macros 582 586 // and opens the page ready for output 583 void receptionist::prepare_page (action *a, cgiargsclass &args, recptproto *collectproto, 584 ostream &logout) { 585 587 void receptionist::prepare_page (action *a, cgiargsclass &args, recptproto *collectproto, 588 outconvertclass &outconvert, ostream &logout) { 586 589 // set up page parameters 587 590 text_t pageparams; … … 608 611 609 612 // define general macros 610 define_general_macros (args, logout);613 define_general_macros (args, outconvert, logout); 611 614 612 615 … … 627 630 } 628 631 629 void receptionist::define_general_macros (cgiargsclass &args, o stream &logout) {630 632 void receptionist::define_general_macros (cgiargsclass &args, outconvertclass &outconvert, 633 ostream &logout) { 631 634 disp.setmacro ("gwcgi", "Global", configinfo.gwcgi); 632 635 disp.setmacro ("httpimg", "Global", configinfo.httpimg); 633 disp.setmacro("compressedoptions", "Global", get_compressed_arg(args, logout));636 disp.setmacro("compressedoptions", "Global", get_compressed_arg(args, outconvert, logout)); 634 637 635 638 // set _cgiargX_ macros for each cgi argument … … 639 642 if ((*argshere).first == "q") 640 643 // need to escape special characters from query string 641 disp.setmacro ("cgiargq", "Global", html_safe((*argshere).second)); 644 disp.setmacro ("cgiargq", "Global", html_safe((*argshere).second)); 642 645 else 643 646 disp.setmacro ("cgiarg" + (*argshere).first, "Global", (*argshere).second); -
trunk/gsdl/src/recpt/receptionist.h
r248 r296 47 47 displayclass disp; 48 48 convertinfoclass converters; 49 49 50 // prepare_page sets up page parameters, sets display macros 50 51 // and opens the page ready for output 51 void prepare_page (action *a, cgiargsclass &args, recptproto *collectproto, 52 ostream &logout); 53 void define_general_macros (cgiargsclass &args, ostream &logout); 52 void prepare_page (action *a, cgiargsclass &args, recptproto *collectproto, 53 outconvertclass &outconvert, ostream &logout); 54 void define_general_macros (cgiargsclass &args, outconvertclass &outconvert, 55 ostream &logout); 54 56 55 57 public: … … 130 132 // returns the compressed argument ("e") corresponding to the argument 131 133 // list. This can be used to save preferences between sessions. 132 text_t get_compressed_arg (cgiargsclass &args, ostream &logout); 134 text_t get_compressed_arg (cgiargsclass &args, outconvertclass &outconvert, 135 ostream &logout); 133 136 134 137 protected:
Note:
See TracChangeset
for help on using the changeset viewer.