Changeset 165 for trunk/gsdl/src/recpt/pageaction.cpp
- Timestamp:
- 1999-02-22T11:33:58+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r160 r165 12 12 /* 13 13 $Log$ 14 Revision 1.2 1999/02/21 22:33:54 rjmcnab 15 16 Lots of stuff :-) 17 14 18 Revision 1.1 1999/02/12 02:40:17 sjboddie 15 19 … … 23 27 24 28 pageaction::pageaction () { 25 disabled = true;26 recpt = NULL;27 28 29 // this action uses cgi variables "a" and "p" 29 30 cgiarginfo arg_ainfo; … … 32 33 arg_ainfo.multiplechar = true; 33 34 arg_ainfo.defaultstatus = cgiarginfo::weak; 34 arg_ainfo.argdefault = " status";35 arg_ainfo.argdefault = "p"; 35 36 arg_ainfo.savedarginfo = cgiarginfo::must; 36 37 argsinfo.addarginfo (NULL, arg_ainfo); … … 61 62 62 63 bool pageaction::do_action (cgiargsclass &args, outconvertclass &outconvert, 63 ostream &textout, ostream &logout) { 64 recptproto */*collectproto*/, ostream &textout, 65 ostream &/*logout*/) { 64 66 65 67 textout << outconvert << "<html>\n"; … … 72 74 return true; 73 75 } 74 75 void pageaction::configure (const text_t &key, const text_tarray &cfgline) {76 if ((key == "page") && (cfgline.size() == 1) &&77 (cfgline[0] == "true" || cfgline[0] == "on" || cfgline[0] == "enabled")) {78 disabled = false;79 } else {80 // call the parent class to deal with the things which81 // are not dealt with here82 action::configure (key, cfgline);83 }84 }
Note:
See TracChangeset
for help on using the changeset viewer.