aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-12 07:57:46 +0000
committerErmal <eri@pfsense.org>2012-07-12 07:57:46 +0000
commit311ee04dbf4a90a34c2f16fdf510eb642d41aff3 (patch)
treedbef03798e59428543f89a6c62eb63c20db84657
parent1efdf15caddd3a8fa26fd4ea0a9634e04a1a2e8a (diff)
downloadpfsense-packages-311ee04dbf4a90a34c2f16fdf510eb642d41aff3.tar.gz
pfsense-packages-311ee04dbf4a90a34c2f16fdf510eb642d41aff3.tar.bz2
pfsense-packages-311ee04dbf4a90a34c2f16fdf510eb642d41aff3.zip
Do not make url browseable when not enabled
-rw-r--r--config/snort/snort_rulesets.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/config/snort/snort_rulesets.php b/config/snort/snort_rulesets.php
index 98e3c76d..050ec2ce 100644
--- a/config/snort/snort_rulesets.php
+++ b/config/snort/snort_rulesets.php
@@ -227,6 +227,7 @@ if ($savemsg) {
<td colspan="2" valign="center"><br/><input value="Select All" type="submit" name="selectall" id="selectall" /><br/<br/></td>
<td colspan="2" valign="center"><br/><input value="Unselect All" type="submit" name="unselectall" id="selectall" /><br/<br/></td>
</tr>
+ <tr> <td colspan="6">&nbsp;</td> </tr>
<tr id="frheader">
<td width="5%" class="listhdrr">Enabled</td>
<td width="25%" class="listhdrr"><?php echo 'Ruleset: Emerging Threats.';?></td>
@@ -277,7 +278,10 @@ if ($savemsg) {
echo " \n<input type='checkbox' name='toenable[]' value='$file' {$CHECKED} />\n";
echo "</td>\n";
echo "<td class='listr' width='25%' >\n";
- echo "<a href='snort_rules.php?id={$jd}&openruleset={$snortdir}/snort_{$jface_uuid}_{$jf_real}/rules/" . urlencode($file) . "'>{$file}</a>\n";
+ if (empty($CHECKED))
+ echo $file;
+ else
+ echo "<a href='snort_rules.php?id={$jd}&openruleset={$snortdir}/snort_{$jface_uuid}_{$jf_real}/rules/" . urlencode($file) . "'>{$file}</a>\n";
echo "</td>\n";
} else
echo "<td class='listbggrey' width='30%' colspan='2'><br/></td>\n";
@@ -294,7 +298,10 @@ if ($savemsg) {
echo " \n<input type='checkbox' name='toenable[]' value='{$file}' {$CHECKED} />\n";
echo "</td>\n";
echo "<td class='listr' width='25%' >\n";
- echo "<a href='snort_rules.php?id={$jd}&openruleset={$snortdir}/snort_{$jface_uuid}_{$jf_real}/rules/" . urlencode($file) . "'>{$file}</a>\n";
+ if (empty($CHECKED))
+ echo $file;
+ else
+ echo "<a href='snort_rules.php?id={$jd}&openruleset={$snortdir}/snort_{$jface_uuid}_{$jf_real}/rules/" . urlencode($file) . "'>{$file}</a>\n";
echo "</td>\n";
} else
echo "<td class='listbggrey' width='30%' colspan='2'><br/></td>\n";
@@ -311,7 +318,10 @@ if ($savemsg) {
echo " \n<input type='checkbox' name='toenable[]' value='{$file}' {$CHECKED} />\n";
echo "</td>\n";
echo "<td class='listr' width='25%' >\n";
- echo "<a href='snort_rules.php?id={$jd}&openruleset={$snortdir}/snort_{$jface_uuid}_{$jf_real}/rules/" . urlencode($file) . "'>{$file}</a>\n";
+ if (empty($CHECKED))
+ echo $file;
+ else
+ echo "<a href='snort_rules.php?id={$jd}&openruleset={$snortdir}/snort_{$jface_uuid}_{$jf_real}/rules/" . urlencode($file) . "'>{$file}</a>\n";
echo "</td>\n";
} else
echo "<td class='listbggrey' width='30%' colspan='2'><br/></td>\n";