aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-09 23:10:54 +0000
committerErmal <eri@pfsense.org>2012-07-09 23:10:54 +0000
commitbfbab2aca5e5d5bd41589e78f7efcdd465093b7d (patch)
treecc89d73a3c9eaebf738f2e13f8d22c2221203dca /config/snort/snort_interfaces.php
parent55286c130496f41de39496a475688abda13d7a29 (diff)
downloadpfsense-packages-bfbab2aca5e5d5bd41589e78f7efcdd465093b7d.tar.gz
pfsense-packages-bfbab2aca5e5d5bd41589e78f7efcdd465093b7d.tar.bz2
pfsense-packages-bfbab2aca5e5d5bd41589e78f7efcdd465093b7d.zip
Resolve issues reported here. http://forum.pfsense.org/index.php/topic,51295.0.html
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r--config/snort/snort_interfaces.php19
1 files changed, 8 insertions, 11 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index 8f600182..f72bf391 100644
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -70,10 +70,10 @@ if (isset($_POST['del_x'])) {
/* if there are no ifaces do not create snort.sh */
if (!empty($config['installedpackages']['snortglobal']['rule']))
- create_snort_sh();
+ snort_create_rc();
else {
conf_mount_rw();
- exec('/bin/rm /usr/local/etc/rc.d/snort.sh');
+ @unlink('/usr/local/etc/rc.d/snort.sh');
conf_mount_ro();
}
@@ -275,24 +275,21 @@ if ($pfsense_stable == 'yes')
$color2_upb = Running_Ck_b($snort_uuid, $if_real, $id);
- if ($color2_upb == 'yes') {
- $class_color_upb = 'listbg2';
- }else{
- $class_color_upb = 'listbg';
- }
+ if ($color2_upb == 'yes')
+ $color_status = 'listr';
+ else
+ $color_status = 'listbg';
?>
- <td class="listr" onClick="fr_toggle(<?=$nnats;?>)"
+ <td class="<?=$color_status;?>" onClick="fr_toggle(<?=$nnats;?>)"
id="frd<?=$nnats;?>"
ondblclick="document.location='snort_interfaces_edit.php?id=<?=$nnats;?>';">
<?php
$check_snortbarnyardlog_info = $config['installedpackages']['snortglobal']['rule'][$nnats]['barnyard_enable'];
if ($check_snortbarnyardlog_info == "on")
- {
$check_snortbarnyardlog = strtoupper(enabled);
- }else{
+ else
$check_snortbarnyardlog = strtoupper(disabled);
- }
?> <?php echo "$check_snortbarnyardlog";?></td>
<td class="listbg" onClick="fr_toggle(<?=$nnats;?>)"
ondblclick="document.location='snort_interfaces_edit.php?id=<?=$nnats;?>';">