Changeset 10037


Ignore:
Timestamp:
2005-06-09T17:21:16+12:00 (19 years ago)
Author:
mdewsnip
Message:

Minor changes.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/gsdl_modules_cfg.h

    r10036 r10037  
    5454#define GSDL_USE_COLLECTOR_ACTION
    5555#define GSDL_USE_EXTLINK_ACTION
    56 #undef GSDL_USE_GTI_ACTION
     56#define GSDL_USE_GTI_ACTION
    5757#define GSDL_USE_PHIND_ACTION
    5858#define GSDL_USE_PING_ACTION
  • trunk/gsdl/src/recpt/gtiaction.cpp

    r10035 r10037  
    22 *
    33 * gtiaction.cpp --
    4  * Copyright (C) 1999  The New Zealand Digital Library Project
     4 * Copyright (C) 2005  The New Zealand Digital Library Project
    55 *
    66 * A component of the Greenstone digital library software
     
    110110                  recptprotolistclass* /*protos*/, ostream& logout)
    111111{
    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
    120118  return true;
    121119}
     
    134132
    135133
    136 void gtiaction::get_cgihead_info(cgiargsclass &/*args*/, recptprotolistclass* /*protos*/,
    137                  response_t &response, text_t &response_data,
    138                  ostream &logout)
     134void gtiaction::get_cgihead_info(cgiargsclass& /*args*/, recptprotolistclass* /*protos*/,
     135                 response_t& response, text_t& response_data,
     136                 ostream& logout)
    139137{
    140138  response = content;
     
    144142
    145143
    146 void gtiaction::define_internal_macros(displayclass &disp, cgiargsclass &args,
    147                        recptprotolistclass *protos, ostream &logout)
     144void gtiaction::define_internal_macros(displayclass& disp, cgiargsclass& args,
     145                       recptprotolistclass* protos, ostream& logout)
    148146{
    149147  // logout << endl << "Arguments: " << args << endl;
     
    183181
    184182
    185 void gtiaction::define_gti_home_page(displayclass& disp, cgiargsclass &args, ostream& logout)
     183void gtiaction::define_gti_home_page(displayclass& disp, cgiargsclass& args, ostream& logout)
    186184{
    187185  disp.setmacro("gtiformcontent", "gti", "_gti:gtihome_");
     
    213211
    214212
    215 void gtiaction::define_gti_lang_page(displayclass& disp, cgiargsclass &args, ostream& logout)
     213void gtiaction::define_gti_lang_page(displayclass& disp, cgiargsclass& args, ostream& logout)
    216214{
    217215  // Get the target language code from the CGI arguments
     
    255253
    256254
    257 void gtiaction::define_gti_find_page(displayclass& disp, cgiargsclass &args, ostream& logout)
     255void gtiaction::define_gti_find_page(displayclass& disp, cgiargsclass& args, ostream& logout)
    258256{
    259257  // Get the target language code and file to translate from the CGI arguments
     
    321319
    322320
    323 void gtiaction::define_gti_core_page(displayclass& disp, cgiargsclass &args, ostream& logout)
     321void gtiaction::define_gti_core_page(displayclass& disp, cgiargsclass& args, ostream& logout)
    324322{
    325323  // Get the target language code and file to translate from the CGI arguments
     
    399397
    400398
    401 void gtiaction::process_gti_submissions(displayclass& disp, cgiargsclass &args, ostream& logout, bool force_submission)
     399void gtiaction::process_gti_submissions(displayclass& disp, cgiargsclass& args, ostream& logout, bool force_submission)
    402400{
    403401  // Get the target language code and file to translate from the CGI arguments
Note: See TracChangeset for help on using the changeset viewer.