Friday, November 18 2005 @ 09:40 AM EST
Contributed by: tomw
Views: 2,236
I recently tried to view the log file on a site that gets a lot of comment spam and the log file viewer bombed. I looked at the log file and saw that it was 7MB in size. So I modified the Log viewer to check the size of the log file and resize it to 100Kb (the size is configurable) so it could be viewed. I have included the file below if you are interested.
Replace the contents of the file LogView.Admin.class.php with this:
----------- Cut Here ----------------
/**
* File: Logview.Admin.class.php
* This is the LogViewer for the Geeklog SpamX Plug-in!
*
* Copyright (C) 2004 by the following authors:
* Author Tom Willett tomw@pigstye.net
*
* Licensed under GNU General Public License
*/