Changeset 14388


Ignore:
Timestamp:
2007-08-28T14:15:54+12:00 (17 years ago)
Author:
qq6
Message:

Jeffrey has fixed operating records of users database on Windows

File:
1 edited

Legend:

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

    r12761 r14388  
    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.