PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 02-24-2004, 07:39 AM   #1
manfred
Orange Mole
 
Join Date: Nov 2003
Posts: 42
Clear logs from admin panel

Here is mod to clear logs from admin panel and also log status is displayed. This is done because logs were left even after the hole site was deleted! Try it and send a comment.

Installation: just unzip to your PhpDig folder and open admin panel.

Note that this is only for 1.8.0 version of PhpDig!

-m-
Attached Files
File Type: zip search.zip (5.0 KB, 46 views)
manfred is offline   Reply With Quote
Old 02-25-2004, 06:18 AM   #2
alivin70
Orange Mole
 
alivin70's Avatar
 
Join Date: Sep 2003
Posts: 40
Hi,
thank you for your code.

Why you do this:
PHP Code:
$query "SELECT l_id FROM ".PHPDIG_DB_PREFIX."logs";
$id mysql_query($query,$id_connect);
while (list(
$key_id) = mysql_fetch_row($id))
       {
           
$query_delete "DELETE FROM ".PHPDIG_DB_PREFIX."logs WHERE l_id=$key_id";
           
$id_del mysql_query($query_delete,$id_connect);
           
$del++;
       } 
why not a simpler:
PHP Code:
$query_delete "DELETE FROM ".PHPDIG_DB_PREFIX."logs";
           
$id_del mysql_query($query_delete,$id_connect);
$del mysql_affected_rows($id_connect); 
thanks
Alivin70
alivin70 is offline   Reply With Quote
Old 02-25-2004, 07:15 AM   #3
manfred
Orange Mole
 
Join Date: Nov 2003
Posts: 42
I'm not very familiar with SQL syntax (yet) and if you compare that to clean_keywords.php there is a match!

Copy&paste is too easy solution - I know but hey it works!

-m-
manfred is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear List of Queries Kvasir How-to Forum 1 05-19-2005 07:55 AM
New admin panel is here! manfred Mod Submissions 48 12-19-2004 10:05 PM
Logout does not clear cookies manfred Bug Tracker 6 07-12-2004 03:58 PM
problems indexing command line vs. admin panel obottek Troubleshooting 1 04-10-2004 04:01 PM
Version info to admin panel manfred Mod Requests 1 02-19-2004 02:18 PM


All times are GMT -8. The time now is 05:03 AM.


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