aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-12-08 16:22:05 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:15:49 -0500
commit88fa32ca9c528019b55ea25aee562e3d6d642640 (patch)
tree87ae682f9028a3b9a68b78bab39cec5bf2c574e5
parentb4b3c760a22e87c3c87ff6fd2634087dece77ff9 (diff)
downloadpfsense-packages-88fa32ca9c528019b55ea25aee562e3d6d642640.tar.gz
pfsense-packages-88fa32ca9c528019b55ea25aee562e3d6d642640.tar.bz2
pfsense-packages-88fa32ca9c528019b55ea25aee562e3d6d642640.zip
Hide JavaScript code when IP REP or SID MGMT are disabled.
-rw-r--r--config/suricata/suricata_ip_reputation.php2
-rw-r--r--config/suricata/suricata_sid_mgmt.php4
2 files changed, 6 insertions, 0 deletions
diff --git a/config/suricata/suricata_ip_reputation.php b/config/suricata/suricata_ip_reputation.php
index 3e02d484..b5a472d8 100644
--- a/config/suricata/suricata_ip_reputation.php
+++ b/config/suricata/suricata_ip_reputation.php
@@ -386,6 +386,7 @@ if ($savemsg)
</tbody>
</table>
+<?php if $g['platform' != "nanobsd") : ?>
<script type="text/javascript">
Event.observe(
window, "load",
@@ -473,6 +474,7 @@ function iplistComplete(req) {
}
</script>
+<?php endif; ?>
</form>
<?php include("fend.inc"); ?>
diff --git a/config/suricata/suricata_sid_mgmt.php b/config/suricata/suricata_sid_mgmt.php
index b546db94..c2d58af8 100644
--- a/config/suricata/suricata_sid_mgmt.php
+++ b/config/suricata/suricata_sid_mgmt.php
@@ -588,6 +588,8 @@ if ($savemsg) {
<?php include("fend.inc"); ?>
+
+<?php if ($g['platform'] != "nanobsd") : ?>
<script type="text/javascript">
function enable_sid_conf() {
@@ -603,5 +605,7 @@ function enable_sid_conf() {
enable_sid_conf();
</script>
+<?php endif; ?>
+
</body>
</html>