Changeset 963 for trunk/gsdl/src/recpt/historydb.cpp
- Timestamp:
- 2000-02-22T11:01:02+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/historydb.cpp
r939 r963 28 28 /* 29 29 $Log$ 30 Revision 1.3 2000/02/21 22:01:02 sjboddie 31 gsdlhome now comes from gsdlsite.cfg 32 30 33 Revision 1.2 2000/02/17 02:40:21 sjboddie 31 34 tidied up a bit - fixed a bug (gdbm file wasn't always being closed properly) … … 35 38 36 39 #include "historydb.h" 37 #include "gsdlhome.h"38 40 #include "fileutil.h" 39 41 #include "cgiutils.h" … … 44 46 // returns true on success (in which case historyinfo will contain 45 47 // the information for this history) 46 bool get_history_info (const text_t &userid, text_tarray &historyinfo, ostream &logout) { 47 48 text_t historyfile = filename_cat(GSDL_GSDLHOME, "etc", "history.db"); 48 bool get_history_info (const text_t &userid, text_tarray &historyinfo, 49 const text_t &gsdlhome, ostream &logout) { 50 51 text_t historyfile = filename_cat(gsdlhome, "etc", "history.db"); 49 52 50 53 bool result = false; … … 74 77 75 78 // returns true on success 76 bool set_history_info (const text_t &userid, const text_t &history ) {77 78 text_t historyfile = filename_cat( GSDL_GSDLHOME, "etc", "history.db");79 bool set_history_info (const text_t &userid, const text_t &history, const text_t &gsdlhome) { 80 81 text_t historyfile = filename_cat(gsdlhome, "etc", "history.db"); 79 82 80 83 bool result = false; … … 126 129 127 130 // deletes all a users history 128 bool delete_all_history_info (const text_t &userid ) {129 130 text_t historyfile = filename_cat( GSDL_GSDLHOME, "etc", "history.db");131 bool delete_all_history_info (const text_t &userid, const text_t &gsdlhome) { 132 133 text_t historyfile = filename_cat(gsdlhome, "etc", "history.db"); 131 134 132 135 // open the history database … … 142 145 143 146 //deletes only the selected records 144 bool delete_history_info(const text_t &userid, const text_t &deletemode, const text_t &selection) { 145 146 text_t historyfile = filename_cat(GSDL_GSDLHOME, "etc", "history.db"); 147 bool delete_history_info (const text_t &userid, const text_t &deletemode, 148 const text_t &selection, const text_t &gsdlhome) { 149 150 text_t historyfile = filename_cat(gsdlhome, "etc", "history.db"); 147 151 bool result; 148 152 // open the history database … … 305 309 // replaces a reference to a previous query with the search 306 310 // string from that query 307 bool combine_query(text_t &userid, text_t &query )311 bool combine_query(text_t &userid, text_t &query, const text_t &gsdlhome) 308 312 { 309 313 text_t::iterator begin = query.begin(); … … 314 318 315 319 text_t queryresult = ""; 316 text_t historyfile = filename_cat( GSDL_GSDLHOME, "etc", "history.db");320 text_t historyfile = filename_cat(gsdlhome, "etc", "history.db"); 317 321 text_t historyresult; 318 322 // open the history database
Note:
See TracChangeset
for help on using the changeset viewer.