Changeset 10037
- Timestamp:
- 2005-06-09T17:21:16+12:00 (19 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/gsdl_modules_cfg.h
r10036 r10037 54 54 #define GSDL_USE_COLLECTOR_ACTION 55 55 #define GSDL_USE_EXTLINK_ACTION 56 # undefGSDL_USE_GTI_ACTION56 #define GSDL_USE_GTI_ACTION 57 57 #define GSDL_USE_PHIND_ACTION 58 58 #define GSDL_USE_PING_ACTION -
trunk/gsdl/src/recpt/gtiaction.cpp
r10035 r10037 2 2 * 3 3 * gtiaction.cpp -- 4 * Copyright (C) 1999The New Zealand Digital Library Project4 * Copyright (C) 2005 The New Zealand Digital Library Project 5 5 * 6 6 * A component of the Greenstone digital library software … … 110 110 recptprotolistclass* /*protos*/, ostream& logout) 111 111 { 112 // Don't authenticate the "home" or "lang" pages 113 if (args["p"] == "home" || args["p"] == "lang") { 114 return true; 115 } 116 117 // Authenticate the user before allowing modifications 118 args["uan"] = 1; 119 args["ug"] = "langadmin_" + args["tlc"]; 112 // Authenticate the user, except for the "home" and "lang" pages 113 if (args["p"] != "home" && args["p"] != "lang") { 114 args["uan"] = 1; 115 args["ug"] = "langadmin_" + args["tlc"]; 116 } 117 120 118 return true; 121 119 } … … 134 132 135 133 136 void gtiaction::get_cgihead_info(cgiargsclass &/*args*/, recptprotolistclass* /*protos*/,137 response_t &response, text_t &response_data,138 ostream &logout)134 void gtiaction::get_cgihead_info(cgiargsclass& /*args*/, recptprotolistclass* /*protos*/, 135 response_t& response, text_t& response_data, 136 ostream& logout) 139 137 { 140 138 response = content; … … 144 142 145 143 146 void gtiaction::define_internal_macros(displayclass &disp, cgiargsclass &args,147 recptprotolistclass *protos, ostream &logout)144 void gtiaction::define_internal_macros(displayclass& disp, cgiargsclass& args, 145 recptprotolistclass* protos, ostream& logout) 148 146 { 149 147 // logout << endl << "Arguments: " << args << endl; … … 183 181 184 182 185 void gtiaction::define_gti_home_page(displayclass& disp, cgiargsclass &args, ostream& logout)183 void gtiaction::define_gti_home_page(displayclass& disp, cgiargsclass& args, ostream& logout) 186 184 { 187 185 disp.setmacro("gtiformcontent", "gti", "_gti:gtihome_"); … … 213 211 214 212 215 void gtiaction::define_gti_lang_page(displayclass& disp, cgiargsclass &args, ostream& logout)213 void gtiaction::define_gti_lang_page(displayclass& disp, cgiargsclass& args, ostream& logout) 216 214 { 217 215 // Get the target language code from the CGI arguments … … 255 253 256 254 257 void gtiaction::define_gti_find_page(displayclass& disp, cgiargsclass &args, ostream& logout)255 void gtiaction::define_gti_find_page(displayclass& disp, cgiargsclass& args, ostream& logout) 258 256 { 259 257 // Get the target language code and file to translate from the CGI arguments … … 321 319 322 320 323 void gtiaction::define_gti_core_page(displayclass& disp, cgiargsclass &args, ostream& logout)321 void gtiaction::define_gti_core_page(displayclass& disp, cgiargsclass& args, ostream& logout) 324 322 { 325 323 // Get the target language code and file to translate from the CGI arguments … … 399 397 400 398 401 void gtiaction::process_gti_submissions(displayclass& disp, cgiargsclass &args, ostream& logout, bool force_submission)399 void gtiaction::process_gti_submissions(displayclass& disp, cgiargsclass& args, ostream& logout, bool force_submission) 402 400 { 403 401 // Get the target language code and file to translate from the CGI arguments
Note:
See TracChangeset
for help on using the changeset viewer.