Changeset 10032 for trunk/gsdl/src/recpt
- Timestamp:
- 2005-06-09T15:49:26+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/gtiaction.cpp
r10027 r10032 121 121 122 122 123 bool gtiaction::check_cgiargs(cgiargsinfoclass &/*argsinfo*/, cgiargsclass &args, 124 recptprotolistclass* /*protos*/, ostream &logout) 125 { 123 bool gtiaction::check_cgiargs(cgiargsinfoclass& /*argsinfo*/, cgiargsclass& args, 124 recptprotolistclass* /*protos*/, ostream& logout) 125 { 126 // Don't authenticate the "home" or "lang" pages 127 if (args["p"] == "home" || args["p"] == "lang") { 128 return true; 129 } 130 126 131 // Authenticate the user before allowing modifications 127 // args["uan"] = 1; 128 // args["ug"] = "langadmin"; 132 // logout << "Must authenticate for language " + args["tlc"] + "!" << endl; 133 args["uan"] = 1; 134 args["ug"] = "langadmin_" + args["tlc"]; 129 135 return true; 130 136 } … … 132 138 133 139 134 bool gtiaction::do_action(cgiargsclass &args, recptprotolistclass* /*protos*/,135 browsermapclass * /*browsers*/, displayclass &disp,136 outconvertclass &outconvert, ostream &textout,137 ostream &logout)140 bool gtiaction::do_action(cgiargsclass& args, recptprotolistclass* /*protos*/, 141 browsermapclass* /*browsers*/, displayclass& disp, 142 outconvertclass& outconvert, ostream& textout, 143 ostream& logout) 138 144 { 139 145 textout << outconvert << disp << ("_header_\n") << ("_content_\n") << ("_footer_\n");
Note:
See TracChangeset
for help on using the changeset viewer.