Changeset 14270 for gsdl/branches/gsdl-2.74/src/recpt/librarymain.cpp
- Timestamp:
- 2007-07-25T13:37:52+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/branches/gsdl-2.74/src/recpt/librarymain.cpp
r12517 r14270 178 178 recpt.add_action (adocumentaction); 179 179 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 180 186 #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); 182 190 #endif 183 191 … … 190 198 #ifdef GSDL_USE_AUTHEN_ACTION 191 199 authenaction *aauthenaction = new authenaction(); 200 aauthenaction->set_userdb(udb); 201 aauthenaction->set_keydb(kdb); 192 202 aauthenaction->set_receptionist(&recpt); 193 203 recpt.add_action (aauthenaction); … … 272 282 cgiwrapper (recpt, ""); 273 283 delete cservers; 284 delete udb; 285 delete kdb; 274 286 275 287 // clean up the actions
Note:
See TracChangeset
for help on using the changeset viewer.