From 165f7370b89857b4db89eb2d873fa120791bd8cf Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 2 Aug 2011 15:59:36 +0000 Subject: Polishing of the snort pacakge, part 2: * Get rid of snort_head.inc * No more apply settings button since it does not make sense * Other cleanups in many parts of the code Tested only on 2.0 --- config/snort/snort_head.inc | 130 -------------------------------------------- 1 file changed, 130 deletions(-) delete mode 100644 config/snort/snort_head.inc (limited to 'config/snort/snort_head.inc') diff --git a/config/snort/snort_head.inc b/config/snort/snort_head.inc deleted file mode 100644 index 3ab02c84..00000000 --- a/config/snort/snort_head.inc +++ /dev/null @@ -1,130 +0,0 @@ - "") -$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. - */ -$apple_ua = array("iPhone","iPod", "iPad"); -foreach($apple_ua as $useragent) -if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent)) -$g['theme'] = "pfsense"; - -$pagetitle = gentitle( $pgtitle ); - -?> - - - -<?php echo($config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle); ?> - - - -"; ?> - - - - - - -= 6): ?> - - - - - - - - - - - - \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 - */ - -$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; - } - } -} - -?> -- cgit v1.2.3