From ddadd6547c7a810e53d5341c361112082bb1b3b8 Mon Sep 17 00:00:00 2001
From: Ermal
Check the rulesets that you would like Snort to load at startup. |
+ ||||||
Enabled | ++ | Enabled | +Enabled | -- + | "; - if(is_array($enabled_rulesets_array)) - if(in_array($file, $enabled_rulesets_array)) { - $CHECKED = " checked=\"checked\""; - } else { - $CHECKED = ""; - } - else - $CHECKED = ""; - echo " \n\n"; - echo " | \n"; - echo "\n"; - echo "{$file}\n"; - echo " | \n\n\n"; + if (!empty($emergingrules[$j])) { + $file = $emergingrules[$j]; + echo ""; + if(is_array($enabled_rulesets_array)) { + if(in_array($file, $enabled_rulesets_array)) + $CHECKED = " checked=\"checked\""; + else + $CHECKED = ""; + } else + $CHECKED = ""; + echo " \n\n"; + echo " | \n"; + echo "\n"; + echo "{$file}\n"; + echo " | \n"; + } else + echo ""; + if(is_array($enabled_rulesets_array)) { + if(in_array($file, $enabled_rulesets_array)) + $CHECKED = " checked=\"checked\""; + else + $CHECKED = ""; + } else + $CHECKED = ""; + echo " \n\n"; + echo " | \n"; + echo "\n"; + echo "{$file}\n"; + echo " | \n"; + } else + echo ""; + if(is_array($enabled_rulesets_array)) { + if(in_array($file, $enabled_rulesets_array)) + $CHECKED = " checked=\"checked\""; + else + $CHECKED = ""; + } else + $CHECKED = ""; + echo " \n\n"; + echo " | \n"; + echo "\n"; + echo "{$file}\n"; + echo " | \n"; + } else + echo "