Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

patch to clear flooded logbook version 2 and 3
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: patch to clear flooded logbook version 2 and 3
#313
patch to clear flooded logbook version 2 and 3 1 Year, 6 Months ago Karma: -1
With this patch I do clear the flooded logbook of messages like "Configuration successfully*". It's dedicated to the english version but is easy to mod it for all of them. Here's the mod in "admin/logbook.php" after line 52 (v2, for v3 after line 69):
Code:

//
// Delete unwanted messages
// ========================
if (isset($_POST['submit-delete-logs'])) {
        $strSQL  = "DELETE FROM tbl_logbook WHERE `entry` LIKE 'Configuration successfully%'";
        $booReturn  = $myDBClass->insertData($strSQL);
        if ($booReturn == false) {
                $strMessage .= $LANG['db']['dberror']."<br>".$myDBClass->strDBError."<br>";
        } else {
                $strMessage .= $LANG['db']['success_del'];
        }
}



In "templates/admin/admin_master.tpl", after line 528 (v2, for v3 is after 630 we change:
Code:

          <!-- BEGIN Log entries like "Configuration saved..." to be deleted -->
  <tr>
    <td colspan="8" class="loglegend"><strong>Delete flooding "writes":</strong>&nbsp;&nbsp;
    <input name="submit-delete-logs" type="submit" value="submit"><br>&nbsp;</td>
  </tr>
          <!-- END Log entries like "Configuration saved..." to be deleted -->



Hope this helps you.
rumba
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/01/21 11:21 By rumba.
The administrator has disabled public write access.
 
Go to topPage: 1