Ignore:
Timestamp:
2007-09-03T16:20:00+12:00 (14 years ago)
Author:
qq6
Message:

fixed a bug of defining userdbclass and keydbclass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/w32server/cgiwrapper.cpp

    r14388 r14407  
    356356htmlbrowserclass *ahtmlbrowserclass = NULL;
    357357phindbrowserclass *aphindbrowserclass = NULL;
     358text_t userdbfile = NULL;
     359userdbclass *udb = NULL;
     360text_t keydbfile = NULL;
     361keydbclass *kdb = NULL;
    358362
    359363// returns 1 if successful, 0 if unsuccessful (note that as well as being
     
    491495  nproto.set_collectset(cservers);
    492496 
    493   text_t userdbfile = filename_cat(gsdl_gsdlhome, "etc", "users.db");
    494   userdbclass *udb = new userdbclass(userdbfile);
    495 
    496   text_t keydbfile = filename_cat(gsdl_gsdlhome, "etc", "key.db");
    497   keydbclass *kdb = new keydbclass(keydbfile);
    498 
     497  if ((ausersaction == NULL) && (aauthenaction == NULL)){
     498    userdbfile = filename_cat(gsdl_gsdlhome, "etc", "users.db");
     499    udb = new userdbclass(userdbfile);
     500    keydbfile = filename_cat(gsdl_gsdlhome, "etc", "key.db");
     501    kdb = new keydbclass(keydbfile);
     502  }
    499503  // add the protocol to the receptionist
    500504  if (atStartup) recpt.add_protocol (&nproto);
Note: See TracChangeset for help on using the changeset viewer.