[go: up one dir, main page]

Menu

[r32]: / data / logs.post.php  Maximize  Restore  History

Download this file

27 lines (22 with data), 821 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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);
}
?>