<?php
/* This file is part of Madcollector.
* Madcollector created by Thomas Andrieu,
* Developped by Thomas Andrieu.
* Madcollector is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
* Madcollector is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
if(basename($_SERVER['PHP_SELF']) != 'index.php')
exit;
if(isset($_POST["purgelogsubmit"]))
{
$requetePurge = "DELETE FROM ".$cfg_table_prefix."logs";
if($action != "") $requetePurge .= " WHERE log_area='".$action."'";
$requetePurge .= ";";
maddb_query($requetePurge);
}
?>