* @file sentinel.php * * @link http://0xproject.netsons.org#0xSentinel * */ include "config.php"; include_once "lib/mysql.class.php"; include_once "lib/0xSentinel.class.php"; $sentinel = new Sentinel(); $mysql = new MySQL(); $mysql->Open($db_host, $db_user, $db_pass, $db_name); $ris = $mysql->Query("SELECT * FROM 0xSentinel_settings"); $row = mysql_fetch_array($ris); if ($row['active'] == 1) { if ($row['filter_fpd'] == 1) { $sentinel->check_FPD(); } if ($row['filter_get'] == 1) { $sentinel->check_GET(); } if ($row['filter_post'] == 1) { $sentinel->check_POST(); } if ($row['filter_cookie'] == 1) { $sentinel->check_COOKIE(); } if ($row['filter_session'] == 1) { $sentinel->check_SESSION(); } if ($row['filter_ip'] == 1) { $sentinel->check_ban_ip($_SERVER['REMOTE_ADDR']);