. All rights reserved. Pfsense Old snort GUI Copyright (C) 2006 Scott Ullrich. Pfsense snort GUI Copyright (C) 2008-2012 Robert Zelaya. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the pfSense nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* pfSense_MODULE: header */ /* * if user has selected a custom template, use it. * otherwise default to pfsense tempalte */ if (($g["disablethemeselection"] === true) && !empty($g["default_theme"]) && (is_dir($g["www_path"].'/themes/'.$g["default_theme"]))) $g['theme'] = $g["default_theme"]; elseif($config['theme'] <> "" && (is_dir($g["www_path"].'/themes/'.$config['theme']))) $g['theme'] = $config['theme']; else $g['theme'] = "pfsense"; /* * If this device is an apple ipod/iphone * switch the theme to one that works with it. */ $lowres_ua = array("iPhone","iPod", "iPad", "Android"); foreach($lowres_ua as $useragent) if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent)) $g['theme'] = empty($g['theme_lowres']) ? "pfsense" : $g['theme_lowres']; $pagetitle = gentitle( $pgtitle ); ?> <?php echo($config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle); ?> "; ?> \n"; ?> echo "\n"; include('/usr/local/pkg/snort/snort_headbase.inc'); echo "\n"; // ?> \n"; echo "\t\n"; } echo "\t\n"; echo "\t\n"; echo "\t\n"; echo "\t\n"; if(file_exists("{$g['www_path']}/javascript/global.js")) echo "\t\n"; /* * Find all javascript files that need to be included * for this page ... from the arrays ... :) * Coded by: Erik Kristensen */ $dir = trim(basename($_SERVER["SCRIPT_FILENAME"], '.php')); $path = "{$g['www_path']}/javascript/" . $dir . "/"; if (is_dir($path)) { if ($dh = opendir($path)) { while (($file = readdir($dh)) !== false) { if (is_dir($file)) continue; echo "\t\n"; } closedir($dh); } } if (!isset($closehead)) echo ""; /* If this page is being remotely managed then do not allow the loading of the contents. */ if($config['remote_managed_pages']['item']) { foreach($config['remote_managed_pages']['item'] as $rmp) { if($rmp == $_SERVER['SCRIPT_NAME']) { include("fbegin.inc"); print_info_box_np("This page is currently being managed by a remote machine."); include("fend.inc"); exit; } } } ?>