$_REQUEST, 'GET' => $_GET, 'POST' => $_POST, 'COOKIE' => $_COOKIE ); $init = IDS_Init::init( dirname(__FILE__) . '/tools/phpids/lib/IDS/Config/Config.ini.php' ); $init->config['General']['base_path'] = dirname(__FILE__) . '/tools/phpids/lib/IDS/'; $init->config['General']['use_base_path'] = true; $init->config['Caching']['caching'] = 'none'; // 2. Initiate the PHPIDS and fetch the results $ids = new IDS_Monitor($request, $init); $result = $ids->run(); if (!$result->isEmpty()) { if ($_SESSION['config']['debug'] == 'true') { echo $result; } $_SESSION['securityMessage'] = (string) $result; $varRedirect = '"; echo $varRedirect; exit; } } catch (Exception $e) { /* * sth went terribly wrong - maybe the * filter rules weren't found? */ printf( 'An error occured: %s', $e->getMessage() ); } }