Ignore:
Timestamp:
2007-07-25T13:37:52+12:00 (17 years ago)
Author:
oranfry
Message:

merged selected changes to the gsdl trunk since r14217 into the 2.74 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/branches/gsdl-2.74/src/recpt/librarymain.cpp

    r12517 r14270  
    178178  recpt.add_action (adocumentaction);
    179179
     180  text_t userdbfile = filename_cat(gsdlhome, "etc", "users.db");
     181  userdbclass *udb = new userdbclass(userdbfile);
     182
     183  text_t keydbfile = filename_cat(gsdlhome, "etc", "key.db");
     184  keydbclass *kdb = new keydbclass(keydbfile);
     185
    180186#ifdef GSDL_USE_USERS_ACTION
    181   recpt.add_action (new usersaction());
     187  usersaction *ausersaction = new usersaction();
     188  ausersaction->set_userdb(udb);
     189  recpt.add_action (ausersaction);
    182190#endif
    183191
     
    190198#ifdef GSDL_USE_AUTHEN_ACTION
    191199  authenaction *aauthenaction = new authenaction();
     200  aauthenaction->set_userdb(udb);
     201  aauthenaction->set_keydb(kdb);
    192202  aauthenaction->set_receptionist(&recpt);
    193203  recpt.add_action (aauthenaction);
     
    272282  cgiwrapper (recpt, "");
    273283  delete cservers;
     284  delete udb;
     285  delete kdb;
    274286
    275287  // clean up the actions
Note: See TracChangeset for help on using the changeset viewer.