temporary hack to log queries

This commit is contained in:
Garvin Hicking 2009-06-17 12:15:37 +00:00
parent f9260d469f
commit b6b6f8fb0b

View File

@ -727,6 +727,15 @@ function serendipity_rebuildCategoryTree($parent = 0, $left = 0) {
*/
function &serendipity_searchEntries($term, $limit = '', $searchresults = '') {
global $serendipity;
static $log_queries = false;
if ($log_queries) {
$fp = fopen($serendipity['serendipityPath'] . '/archives/queries.csv', 'a');
fwrite($fp, date('Y-m-d H:i') . ';'
. $_SERVER['REMOTE_ADDR'] . ';'
. $term . "\n");
fclose($fp);
}
$orig_limit = $limit;
if ($limit == '') {