Changeset 2212 for trunk/gsdl/src/recpt
- Timestamp:
- 2001-03-20T21:48:12+12:00 (23 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/action.cpp
r1285 r2212 42 42 // configure should be called once for each configuration line 43 43 void action::configure (const text_t &key, const text_tarray &cfgline) { 44 if (key == "gsdlhome") {gsdlhome = cfgline[0];} 44 if (key == "gsdlhome") { 45 gsdlhome = cfgline[0]; 46 if (gdbmhome.empty()) gdbmhome = cfgline[0]; 47 } 48 if (key == "gdbmhome") {gdbmhome = cfgline[0];} 45 49 } 46 50 -
trunk/gsdl/src/recpt/action.h
r1285 r2212 48 48 cgiargsinfoclass argsinfo; 49 49 text_t gsdlhome; 50 text_t gdbmhome; 50 51 51 52 public: -
trunk/gsdl/src/recpt/authenaction.cpp
r1796 r2212 131 131 else if (key == "keyfile") keyfile = cfgline[0]; 132 132 else if (key == "keydecay") keydecay = cfgline[0].getint(); 133 else if (key == "gsdlhome") {134 if (usersfile.empty())135 usersfile = filename_cat (cfgline[0], "etc", "users.db");136 if (keyfile.empty())137 keyfile = filename_cat (cfgline[0], "etc", "key.db");138 }139 133 } 140 134 … … 143 137 144 138 bool authenaction::init (ostream &logout) { 139 140 if (gdbmhome.empty()) { 141 logout << "ERROR (authenaction::init) gdbmhome is not set\n"; 142 return false; 143 } 144 145 if (usersfile.empty()) usersfile = filename_cat (gdbmhome, "etc", "users.db"); 146 if (keyfile.empty()) keyfile = filename_cat (gdbmhome, "etc", "key.db"); 147 145 148 return action::init (logout); 146 149 } -
trunk/gsdl/src/recpt/nullproto.cpp
r2173 r2212 72 72 // the protocol should not configure the collection set; it should be 73 73 // done direct to the collection server set 74 if (key == "gsdlhome" ) {74 if (key == "gsdlhome" || key == "gdbmhome") { 75 75 cset->configure(key, cfgline); 76 76 } -
trunk/gsdl/src/recpt/queryaction.cpp
r1915 r2212 735 735 text_t userid = args["z"]; 736 736 text_tarray entries; 737 if (get_history_info (userid, entries, g sdlhome, logout)) {737 if (get_history_info (userid, entries, gdbmhome, logout)) { 738 738 int count = 1; 739 739 text_tarray::iterator here = entries.begin(); … … 1397 1397 int hd = args.getintarg("hd"); 1398 1398 if (hd > 0) display=true; 1399 if (set_history_info(userid, query, g sdlhome, display)) return true;1399 if (set_history_info(userid, query, gdbmhome, display)) return true; 1400 1400 else return false; 1401 1401 -
trunk/gsdl/src/recpt/receptionist.cpp
r2113 r2212 206 206 cgiarginfo *info = NULL; 207 207 if (key == "gsdlhome") configinfo.gsdlhome = cfgline[0]; 208 else if (key == "gdbmhome") configinfo.gdbmhome = cfgline[0]; 208 209 else if (key == "collection") { 209 210 configinfo.collection = cfgline[0]; … … 660 661 } 661 662 662 text_t logfile = filename_cat (configinfo.gsdlhome, "etc"); 663 logfile = filename_cat (logfile, "usage.txt"); 663 text_t logfile = filename_cat (configinfo.gdbmhome, "etc", "usage.txt"); 664 664 665 665 text_t logstr = script_name; -
trunk/gsdl/src/recpt/statusaction.cpp
r2113 r2212 906 906 ostream &textout, ostream &/*logout*/) { 907 907 908 text_t maincfgfile = filename_cat (g sdlhome, "etc", "main.cfg");908 text_t maincfgfile = filename_cat (gdbmhome, "etc", "main.cfg"); 909 909 910 910 textout << outconvert << disp << "_status:infoheader_(main.cfg)\n" -
trunk/gsdl/src/recpt/usersaction.cpp
r1285 r2212 148 148 if (cfgline.size() == 1) { 149 149 if (key == "usersfile") usersfile = cfgline[0]; 150 else if (key == "gsdlhome") {151 if (usersfile.empty())152 usersfile = filename_cat (cfgline[0], "etc", "users.db");153 }154 150 } 155 151 156 152 action::configure (key, cfgline); 153 } 154 155 bool usersaction::init (ostream &logout) { 156 157 if (gdbmhome.empty()) { 158 logout << "ERROR (usersaction::init) gdbmhome is not set\n"; 159 return false; 160 } 161 162 if (usersfile.empty()) usersfile = filename_cat (gdbmhome, "etc", "users.db"); 163 164 return action::init (logout); 157 165 } 158 166 -
trunk/gsdl/src/recpt/usersaction.h
r1285 r2212 42 42 43 43 void configure (const text_t &key, const text_tarray &cfgline); 44 45 bool init (ostream &logout); 44 46 45 47 text_t get_action_name () {return "um";}
Note:
See TracChangeset
for help on using the changeset viewer.