PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Requests (http://www.phpdig.net/forum/forumdisplay.php?f=23)
-   -   search logs (http://www.phpdig.net/forum/showthread.php?t=1089)

sf44 07-15-2004 11:50 PM

search logs
 
I do not need logs without a search fraze - I have a lot of them, So I need to

delete FROM `logs` WHERE l_includes = ''

It should be nice, if in config there is an possibility to make log files only with search fraze - not all logs.

Slavomir.

vinyl-junkie 07-16-2004 04:17 AM

You can easily fix this in phpdig. Just find the following statement in config.php:
PHP Code:

define('PHPDIG_LOGS',true); 

and replace it with:
PHP Code:

define('PHPDIG_LOGS',false); 


sf44 07-16-2004 07:51 AM

Yes, I know this option
define('PHPDIG_LOGS',false);
this disable logs.

But I want logs.

I only do not want rows in database with empty search term.
At present when the search.php is loaded 1 row is added to database. but I do not want stats - how many times search.php is loaded.
I only need to know search terms.

Because of that -
delete FROM `logs` WHERE l_includes = ''

I think, it is no problem to insert this code to function with special option in config.


Slavomir.


All times are GMT -8. The time now is 08:12 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.