diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-25 22:38:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-25 22:38:09 +0000 |
commit | 1633da33efd5cd469caabb2a289dea4ac8ff0997 (patch) | |
tree | d3eb62908c9074c7a8a33097d5f06b45b96ba372 /packages | |
parent | 268d4888ebf92b514e236a330829156f52376b49 (diff) | |
download | pfsense-packages-1633da33efd5cd469caabb2a289dea4ac8ff0997.tar.gz pfsense-packages-1633da33efd5cd469caabb2a289dea4ac8ff0997.tar.bz2 pfsense-packages-1633da33efd5cd469caabb2a289dea4ac8ff0997.zip |
Misc cleanups
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort_rulesets.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/packages/snort/snort_rulesets.php b/packages/snort/snort_rulesets.php index 4b22e8a3..a84fafc2 100644 --- a/packages/snort/snort_rulesets.php +++ b/packages/snort/snort_rulesets.php @@ -90,30 +90,23 @@ include("head.inc"); <?php $dir = "/usr/local/etc/snort/rules/"; $dh = opendir($dir); - while (false !== ($filename = readdir($dh))) { + while (false !== ($filename = readdir($dh))) $files[] = $filename; - } sort($files); foreach($files as $file) { if(!stristr($file, ".rules")) continue; echo "<tr>"; - echo "<td><center>"; - if(in_array($file, $enabled_rulesets_array)) { + if(in_array($file, $enabled_rulesets_array)) $CHECKED = " CHECKED"; - } else { + else $CHECKED = ""; - } - echo " <input type='checkbox' name='toenable[]' value='$file' {$CHECKED}>"; - echo "</center></td>"; - echo "<td>"; - echo "{$file}"; - echo "</td>"; + echo "<td align=\"center\" valign=\"top\"><input type='checkbox' name='toenable[]' value='$file'{$CHECKED}></td>"; + echo "<td>{$file}</td>"; //echo "<td>"; //echo "description"; //echo "</td>"; } - ?> </table> </td> |