Snort Enable All/Disable All Categories
-
I took the lazy way out of clicking all of those little checkboxes.
What you need to do:
Create /usr/local/www/javascript/checkboxes.js
Fill with:function SetAllCheckBoxes(FormName, FieldName, CheckValue) { if(!document.forms[FormName]) return; var objCheckBoxes = document.forms[FormName].elements[FieldName]; if(!objCheckBoxes) return; var countCheckBoxes = objCheckBoxes.length; if(!countCheckBoxes) objCheckBoxes.checked = CheckValue; else // set the check value for all check boxes for(var i = 0; i < countCheckBoxes; i++) objCheckBoxes[i].checked = CheckValue; } Edit /usr/local/pkg/snort/snort_head.inc Add this: [code][/code] above where it says: [code][/code] and finally edit /usr/local/www/snort/snort_rulesets.php and add: [code] [/code] above: [code][/code][/i]
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.