Changeset 2009
- Timestamp:
- 2001-02-19T14:38:48+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/phind/host/phindcgi.cpp
r1828 r2009 63 63 void get_gsdlsite_parameters(char *&gsdlhome); 64 64 65 void get_cgi_parameters(char *&collection, 65 void get_cgi_parameters(char *&collection, char *&classifier, 66 66 unsigned long &phrasenumber, UCArray &phrasetext, 67 67 unsigned long &first_e, unsigned long &last_e, … … 144 144 145 145 // Get command-line parameters 146 char *collection; 146 char *collection = NULL; 147 char *classifier = NULL; 147 148 text_tmap param; 148 get_cgi_parameters(collection, phrase, word,149 get_cgi_parameters(collection, classifier, phrase, word, 149 150 first_e, last_e, first_l, last_l, first_d, last_d, XMLmode); 150 151 … … 158 159 strcat(basepath, collection); 159 160 strcat(basepath, "/index/phind"); 161 strcat(basepath, classifier); 160 162 161 163 // If we don't know the phrase number, look itup … … 797 799 } 798 800 799 void get_cgi_parameters(char *&collection, 801 void get_cgi_parameters(char *&collection, char *&classifier, 800 802 unsigned long &phrasenumber, UCArray &phrasetext, 801 803 unsigned long &first_e, unsigned long &last_e, … … 854 856 } 855 857 858 // d: the classifier number as string 859 if (key[0] == 'd') { 860 UCArray tmp; 861 toUCArray(value, tmp); 862 classifier = GetCStr(tmp); 863 } 864 856 865 // e: the first expansion number 857 866 else if (key[0] == 'e') { … … 900 909 901 910 } 911 } 912 913 // if no classifier number is supplied, default to 1. 914 if (classifier == NULL) { 915 classifier = new (char)[2]; 916 strcpy(classifier, "1"); 902 917 } 903 918 }
Note:
See TracChangeset
for help on using the changeset viewer.