Example #1
0
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck('environment-menu', 'PolicyHosts');
Filter_list::create_filter_copy();
$extra_filters = array(7 => array('id' => 7, 'filter' => 'network', 'name' => Util::js_entities(_('Network'))), 18 => array('id' => 18, 'filter' => 'group', 'name' => Util::js_entities(_('Group'))), 14 => array('id' => 14, 'filter' => 'sensor', 'name' => Util::js_entities(_('Sensor'))), 8 => array('id' => 8, 'filter' => 'device_type', 'name' => Util::js_entities(_('Device Type'))), 10 => array('id' => 10, 'filter' => 'service', 'name' => Util::js_entities(_('Service'))), 20 => array('id' => 20, 'filter' => 'operating_system', 'name' => Util::js_entities(_('Operating System'))), 9 => array('id' => 9, 'filter' => 'software', 'name' => Util::js_entities(_('Software'))), 21 => array('id' => 21, 'filter' => 'model', 'name' => Util::js_entities(_('Model'))), 19 => array('id' => 19, 'filter' => 'label', 'name' => Util::js_entities(_('Label'))), 13 => array('id' => 13, 'filter' => 'location', 'name' => Util::js_entities(_('Location'))), 25 => array('id' => 25, 'filter' => 'plugin', 'name' => Util::js_entities(_('Plugin'))));
$filter_list = Filter_list::retrieve_filter_list_session();
$valid_filters = $filter_list->get_valid_filters();
$extra_filters = array_intersect_key($extra_filters, $valid_filters);
$ordered_list = array_values($extra_filters);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title><?php 
echo _('AlienVault ' . (Session::is_pro() ? 'USM' : 'OSSIM'));
?>
</title>
        <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
        <meta http-equiv="Pragma" content="no-cache"/>