Ignore:
Timestamp:
1999-02-22T11:33:58+13:00 (25 years ago)
Author:
rjmcnab
Message:

Lots of stuff :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r160 r165  
    1212/*
    1313   $Log$
     14   Revision 1.2  1999/02/21 22:33:54  rjmcnab
     15
     16   Lots of stuff :-)
     17
    1418   Revision 1.1  1999/02/12 02:40:17  sjboddie
    1519
     
    2327
    2428pageaction::pageaction () {
    25   disabled = true;
    26   recpt = NULL;
    27 
    2829  // this action uses cgi variables "a" and "p"
    2930  cgiarginfo arg_ainfo;
     
    3233  arg_ainfo.multiplechar = true;
    3334  arg_ainfo.defaultstatus = cgiarginfo::weak;
    34   arg_ainfo.argdefault = "status";
     35  arg_ainfo.argdefault = "p";
    3536  arg_ainfo.savedarginfo = cgiarginfo::must;
    3637  argsinfo.addarginfo (NULL, arg_ainfo);
     
    6162
    6263bool pageaction::do_action (cgiargsclass &args, outconvertclass &outconvert,
    63                 ostream &textout, ostream &logout) {
     64                recptproto */*collectproto*/, ostream &textout,
     65                ostream &/*logout*/) {
    6466
    6567  textout << outconvert << "<html>\n";
     
    7274  return true;
    7375}
    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 which
    81     // are not dealt with here
    82     action::configure (key, cfgline);
    83   }
    84 }
Note: See TracChangeset for help on using the changeset viewer.