Changeset 14408


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

fixed a bug of defining userdbclass and keydbclass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/tags/gsdl-2_74-distribution/src/w32server/cgiwrapper.cpp

    r14406 r14408  
    356356htmlbrowserclass *ahtmlbrowserclass = NULL;
    357357phindbrowserclass *aphindbrowserclass = NULL;
    358 text_t userdbfile = NULL;
    359 userdbclass *udb = NULL;
    360 text_t keydbfile = NULL;
    361 keydbclass *kdb = NULL;
    362358
    363359// returns 1 if successful, 0 if unsuccessful (note that as well as being
     
    495491  nproto.set_collectset(cservers);
    496492 
    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   }
     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
    503499  // add the protocol to the receptionist
    504500  if (atStartup) recpt.add_protocol (&nproto);
Note: See TracChangeset for help on using the changeset viewer.