@@ 72-81 (lines=10) @@ | ||
69 | $searchtype = "(( term LIKE '%$query%' OR definition LIKE '%$query%' OR ref LIKE '%$query%' ))"; |
|
70 | } |
|
71 | ||
72 | if ($xoopsModuleConfig['multicats'] == 1) { |
|
73 | // If the search is in a particular category |
|
74 | if ($categoryID > 0) { |
|
75 | $andcatid = "AND categoryID = '$categoryID' "; |
|
76 | } else { |
|
77 | $andcatid = ''; |
|
78 | } |
|
79 | } else { |
|
80 | $andcatid = ''; |
|
81 | } |
|
82 | ||
83 | // Counter |
|
84 | $publishedwords = LexikonUtility::countWords(); |
|
@@ 131-140 (lines=10) @@ | ||
128 | } |
|
129 | ||
130 | // How many results will we show in this page? |
|
131 | if ($xoopsModuleConfig['multicats'] == 1) { |
|
132 | // If the search is in a particular category |
|
133 | if ($categoryID > 0) { |
|
134 | $andcatid2 = "AND w.categoryID = '$categoryID' "; |
|
135 | } else { |
|
136 | $andcatid2 = ''; |
|
137 | } |
|
138 | } else { |
|
139 | $andcatid2 = ''; |
|
140 | } |
|
141 | $catsallow = " w.categoryID IN ($catids) "; |
|
142 | $queryA = 'SELECT w.entryID, w.categoryID, w.term, w.init, w.definition, w.datesub, w.ref, c.name AS catname FROM ' |
|
143 | . $xoopsDB->prefix('lxentries') |