Changeset 14389


Ignore:
Timestamp:
2007-08-28T14:31:21+12:00 (15 years ago)
Author:
oranfry
Message:

brought in last change from the trunk

File:
1 edited

Legend:

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

    r12761 r14389  
    6565#include "authenaction.h"
    6666#include "usersaction.h"
     67#include "userdb.h"
    6768#include "extlinkaction.h"
    6869#include "collectoraction.h"
     
    490491  nproto.set_collectset(cservers);
    491492 
     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
    492499  // add the protocol to the receptionist
    493500  if (atStartup) recpt.add_protocol (&nproto);
     
    530537  if (ausersaction == NULL) {
    531538    ausersaction = new usersaction();
     539    ausersaction->set_userdb(udb);
    532540    recpt.add_action (ausersaction);
    533541  }
     
    546554  if (aauthenaction == NULL) {
    547555    aauthenaction = new authenaction();
     556    aauthenaction->set_userdb(udb);
     557    aauthenaction->set_keydb(kdb);
    548558    aauthenaction->set_receptionist(&recpt);
    549559    recpt.add_action (aauthenaction);
Note: See TracChangeset for help on using the changeset viewer.