Changeset 15589
- Timestamp:
- 2008-05-20T11:40:38+12:00 (16 years ago)
- Location:
- gsdl/trunk/src/recpt
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/action.cpp
r7432 r15589 44 44 if (key == "gsdlhome") { 45 45 gsdlhome = cfgline[0]; 46 if ( gdbmhome.empty()) gdbmhome = cfgline[0];46 if (dbhome.empty()) dbhome = cfgline[0]; 47 47 } 48 if (key == "gdbmhome") { gdbmhome = cfgline[0];}48 if (key == "gdbmhome") {dbhome = cfgline[0];} 49 49 } 50 50 -
gsdl/trunk/src/recpt/action.h
r12507 r15589 48 48 cgiargsinfoclass argsinfo; 49 49 text_t gsdlhome; 50 text_t gdbmhome;50 text_t dbhome; 51 51 52 52 public: -
gsdl/trunk/src/recpt/authenaction.cpp
r15433 r15589 131 131 132 132 bool authenaction::init (ostream &logout) { 133 if ( gdbmhome.empty()) {134 logout << "ERROR (authenaction::init) gdbmhome is not set\n";133 if (dbhome.empty()) { 134 logout << "ERROR (authenaction::init) dbhome is not set\n"; 135 135 return false; 136 136 } -
gsdl/trunk/src/recpt/cgiwrapper.cpp
r15402 r15589 312 312 313 313 cout << text_t2ascii << "gsdlhome=" << configinfo.gsdlhome << "\n"; 314 if (!configinfo. gdbmhome.empty())315 cout << text_t2ascii << " gdbmhome=" << configinfo.gdbmhome << "\n";314 if (!configinfo.dbhome.empty()) 315 cout << text_t2ascii << "dbhome=" << configinfo.dbhome << "\n"; 316 316 cout << text_t2ascii << "httpprefix=" << configinfo.httpprefix << "\n"; 317 317 cout << text_t2ascii << "httpimg=" << configinfo.httpimg << "\n"; -
gsdl/trunk/src/recpt/queryaction.cpp
r15433 r15589 950 950 text_t userid = args["z"]; 951 951 text_tarray entries; 952 if (get_history_info (userid, entries, gdbmhome, logout)) {952 if (get_history_info (userid, entries, dbhome, logout)) { 953 953 int count = 1; 954 954 text_tarray::iterator here = entries.begin(); … … 1812 1812 int hd = args.getintarg("hd"); 1813 1813 if (hd > 0) display=true; 1814 if (set_history_info(userid, query, gdbmhome, display)) return true;1814 if (set_history_info(userid, query, dbhome, display)) return true; 1815 1815 else return false; 1816 1816 -
gsdl/trunk/src/recpt/receptionist.cpp
r15418 r15589 52 52 void recptconf::clear () { 53 53 gsdlhome.clear(); 54 gdbmhome.clear();54 dbhome.clear(); 55 55 collectinfo.erase(collectinfo.begin(), collectinfo.end()); 56 56 collection.clear(); … … 93 93 void collectioninfo_t::clear () { 94 94 gsdl_gsdlhome.clear(); 95 gsdl_ gdbmhome.clear();95 gsdl_dbhome.clear(); 96 96 97 97 info_loaded = false; … … 220 220 if (key == "gsdlhome") { 221 221 configinfo.gsdlhome = cfgline[0]; 222 if (configinfo. gdbmhome.empty()) configinfo.gdbmhome = cfgline[0];223 } 224 else if (key == "gdbmhome") configinfo. gdbmhome = cfgline[0];222 if (configinfo.dbhome.empty()) configinfo.dbhome = cfgline[0]; 223 } 224 else if (key == "gdbmhome") configinfo.dbhome = cfgline[0]; 225 225 else if (key == "collection") { 226 226 configinfo.collection = cfgline[0]; … … 272 272 collectioninfo_t cinfo; 273 273 cinfo.gsdl_gsdlhome = cfgline[1]; 274 cinfo.gsdl_ gdbmhome = cfgline[2];274 cinfo.gsdl_dbhome = cfgline[2]; 275 275 configinfo.collectinfo[cfgline[0]] = cinfo; 276 276 } … … 705 705 } 706 706 707 text_t logfile = filename_cat (configinfo. gdbmhome, "etc", "usage.txt");707 text_t logfile = filename_cat (configinfo.dbhome, "etc", "usage.txt"); 708 708 709 709 text_t logstr = script_name; -
gsdl/trunk/src/recpt/receptionist.h
r12509 r15589 55 55 56 56 text_t gsdl_gsdlhome; 57 text_t gsdl_ gdbmhome;57 text_t gsdl_dbhome; 58 58 59 59 bool info_loaded; … … 77 77 struct recptconf { 78 78 text_t gsdlhome; 79 text_t gdbmhome; // will equal gsdlhome if not set79 text_t dbhome; // will equal gsdlhome if not set 80 80 text_t collection; // will equal "" in 'general' mode 81 81 text_t collectdir; // will equal gsdlhome in 'general' mode -
gsdl/trunk/src/recpt/statusaction.cpp
r12508 r15589 882 882 ostream &textout, ostream &/*logout*/) { 883 883 884 text_t maincfgfile = filename_cat ( gdbmhome, "etc", "main.cfg");884 text_t maincfgfile = filename_cat (dbhome, "etc", "main.cfg"); 885 885 886 886 textout << outconvert << disp << "_status:infoheader_(main.cfg)\n" -
gsdl/trunk/src/recpt/usersaction.cpp
r14269 r15589 152 152 bool usersaction::init (ostream &logout) { 153 153 154 if ( gdbmhome.empty()) {155 logout << "ERROR (usersaction::init) gdbmhome is not set\n";154 if (dbhome.empty()) { 155 logout << "ERROR (usersaction::init) dbhome is not set\n"; 156 156 return false; 157 157 }
Note:
See TracChangeset
for help on using the changeset viewer.