From 9541bd01267fe9d34dd0127e20c269aab82353da Mon Sep 17 00:00:00 2001 From: robiscool Date: Thu, 9 Sep 2010 23:44:05 -0700 Subject: snort, correct line endings, finx cron loglimit code --- config/snort/snort_head.inc | 156 +++++++++++++++++++++++--------------------- 1 file changed, 81 insertions(+), 75 deletions(-) (limited to 'config/snort/snort_head.inc') diff --git a/config/snort/snort_head.inc b/config/snort/snort_head.inc index 9e009016..70dece63 100644 --- a/config/snort/snort_head.inc +++ b/config/snort/snort_head.inc @@ -1,16 +1,16 @@ "") - $g['theme'] = $config['theme']; +$g['theme'] = $config['theme']; else - $g['theme'] = "pfsense"; +$g['theme'] = "pfsense"; /* * If this device is an apple ipod/iphone @@ -18,8 +18,8 @@ else */ $apple_ua = array("iPhone","iPod", "iPad"); foreach($apple_ua as $useragent) - if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent)) - $g['theme'] = "pfsense"; +if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent)) +$g['theme'] = "pfsense"; $pagetitle = gentitle( $pgtitle ); @@ -28,80 +28,86 @@ $pagetitle = gentitle( $pgtitle ); "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <?php echo($config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle); ?> - - - - "; ?> - - - - - - - - - - - - - - + - \n"; ?> + \n"; ?> \n"; - echo "\t\n"; - } - - /* only load javascript that you need, jquery and prototype dont play together */ - //if ($snort_load_jquery == 'yes') { - echo "\t\n"; - //} - //if ($snort_load_jquery_colorbox == 'yes') { - echo "\t\n"; - echo "\t\n"; - //} - if ($snort_load_mootools == 'yes') { - echo "\t\n"; - } - if ($snort_load_sortabletable == 'yes') { - echo "\t\n"; - } - - /* some pfsense commercial versions require prototype to be in every tab on the GUI, for custom logos */ - 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 - */ +if($_GET['enablefirebuglite']) { + echo "\t\n"; + echo "\t\n"; +} + +/* only load javascript that you need, jquery and prototype dont play together */ +//if ($snort_load_jquery == 'yes') { +echo "\t\n"; +//} +//if ($snort_load_jquery_colorbox == 'yes') { +echo "\t\n"; +echo "\t\n"; +//} +if ($snort_load_mootools == 'yes') { + echo "\t\n"; +} +if ($snort_load_sortabletable == 'yes') { + echo "\t\n"; +} + +/* some pfsense commercial versions require prototype to be in every tab on the GUI, for custom logos */ +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); +$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 ""; +echo ""; /* If this page is being remotely managed then do not allow the loading of the contents. */ if($config['remote_managed_pages']['item']) { @@ -112,7 +118,7 @@ if($config['remote_managed_pages']['item']) { include("fend.inc"); exit; } - } + } } ?> \ No newline at end of file -- cgit v1.2.3