diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-09-25 22:46:48 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-09-25 22:46:48 +0000 |
commit | df0ea86399fb15c129012024f1dc42341d282b58 (patch) | |
tree | a778103cb42a489ae8f1d08f89f57052b81f7263 /packages/snort/snort_rulesets.php | |
parent | 1633da33efd5cd469caabb2a289dea4ac8ff0997 (diff) | |
download | pfsense-packages-df0ea86399fb15c129012024f1dc42341d282b58.tar.gz pfsense-packages-df0ea86399fb15c129012024f1dc42341d282b58.tar.bz2 pfsense-packages-df0ea86399fb15c129012024f1dc42341d282b58.zip |
misc HTML cleanup
Diffstat (limited to 'packages/snort/snort_rulesets.php')
-rw-r--r-- | packages/snort/snort_rulesets.php | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/packages/snort/snort_rulesets.php b/packages/snort/snort_rulesets.php index a84fafc2..b60318f4 100644 --- a/packages/snort/snort_rulesets.php +++ b/packages/snort/snort_rulesets.php @@ -56,10 +56,8 @@ include("head.inc"); <body link="#000000" vlink="#000000" alink="#000000"> <?php include("fbegin.inc"); ?> -<p class="pgtitle"><?=$pgtitle?></font></p> -<form action="snort_rulesets.php" method="post" name="iform"> -<script src="/javascript/scriptaculous/prototype.js" type="text/javascript"></script> -<script src="/javascript/scriptaculous/scriptaculous.js" type="text/javascript"></script> + +<form action="snort_rulesets.php" method="post" name="iform" id="iform"> <script src="/row_toggle.js" type="text/javascript"></script> <script src="/javascript/sorttable.js" type="text/javascript"></script> <?php if ($savemsg) print_info_box($savemsg); ?> @@ -78,10 +76,10 @@ include("head.inc"); <tr> <td> <div id="mainarea"> - <table id="maintable" name="maintable" class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> + <table id="maintable" class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> - <table id="sortabletable1" name="sortabletable1" class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> + <table id="sortabletable1" class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr id="frheader"> <td width="5%" class="listhdrr">Enabled</td> <td class="listhdrr">Ruleset</td> @@ -90,23 +88,30 @@ 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>"; - if(in_array($file, $enabled_rulesets_array)) - $CHECKED = " CHECKED"; - else + echo "<td align=\"center\" valign=\"top\">"; + if(in_array($file, $enabled_rulesets_array)) { + $CHECKED = " checked=\"checked\""; + } else { $CHECKED = ""; - echo "<td align=\"center\" valign=\"top\"><input type='checkbox' name='toenable[]' value='$file'{$CHECKED}></td>"; - echo "<td>{$file}</td>"; + } + echo " <input type='checkbox' name='toenable[]' value='$file' {$CHECKED} />"; + echo "</td>"; + echo "<td>"; + echo "{$file}"; + echo "</td>"; //echo "<td>"; //echo "description"; //echo "</td>"; } + ?> </table> </td> @@ -114,7 +119,7 @@ include("head.inc"); <tr><td> </td></tr> <tr><td>Check the rulesets that you would like Snort to load at startup.</td></tr> <tr><td> </td></tr> - <tr><td><input value="Save" type="submit"></td></tr> + <tr><td><input value="Save" type="submit" name="save" id="save" /></td></tr> </table> </div> </td> @@ -123,8 +128,6 @@ include("head.inc"); </form> -<br> - <?php include("fend.inc"); ?> </body> |