Location: PHPKode > projects > SnortCenter 2.x > snortcenter-release/delall.php
<?php
    /*
    ** SnortCenter Copyright (C) 2001,2002,2003 Stefan Dens
    **
    ** Author: Stefan Dens <hide@address.com>
    **
    ** This program 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; either version 2 of the License, or
    ** (at your option) any later version.
    **
    ** This program 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.
    **
    ** You should have received a copy of the GNU General Public License
    ** along with this program; if not, write to the Free Software
    ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    */
?>
<?php
    include("config.php");
     
    if ($User_authentication  != 0) {
        include("login.inc.php");
    }
?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<!-- SnortCenter -->
<HTML>
<HEAD>
<META name="Author" content="Stefan Dens">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<?php
     
    $db = NewACIDDBConnection($DBlib_path, $DBtype);
    $db->acidConnect($DB_dbname, $DB_host, $DB_port, $DB_user, $DB_password);
     
    $result = $db->acidExecute('delete from rules');
    $result = $db->acidExecute('delete from ruletype');
    $result = $db->acidExecute('delete from config');
    $result = $db->acidExecute('delete from output');
    $result = $db->acidExecute('delete from vars');
    $result = $db->acidExecute('delete from preprocessor');
    $result = $db->acidExecute('delete from content');
    $result = $db->acidExecute('delete from uricontent');
    $result = $db->acidExecute('delete from reference');
    $db->acidClose();
    echo '<SCRIPT language=javascript>setTimeout("location.href=\'sensor.php\'",0);</SCRIPT>';
?>
Return current item: SnortCenter 2.x