aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_import_aliases.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-02-24 20:38:03 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-02-24 20:38:03 -0500
commit729d5f667c2d658586b634c074eca1400e34e0be (patch)
tree4740d75a6cebacd7e1af02e1bcfd7e7984a9b042 /config/suricata/suricata_import_aliases.php
parent348de1c7372ec0b1d7a21955939373df5eb675ba (diff)
downloadpfsense-packages-729d5f667c2d658586b634c074eca1400e34e0be.tar.gz
pfsense-packages-729d5f667c2d658586b634c074eca1400e34e0be.tar.bz2
pfsense-packages-729d5f667c2d658586b634c074eca1400e34e0be.zip
Some bug fixes and replace $_GET with $_POST in parameter passing.
Diffstat (limited to 'config/suricata/suricata_import_aliases.php')
-rw-r--r--config/suricata/suricata_import_aliases.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/config/suricata/suricata_import_aliases.php b/config/suricata/suricata_import_aliases.php
index a93d2d64..ccaaf29d 100644
--- a/config/suricata/suricata_import_aliases.php
+++ b/config/suricata/suricata_import_aliases.php
@@ -39,6 +39,8 @@
$a_aliases --> $config['aliases']['alias'] array
$title --> title string for import alias engine type
$used --> array of currently used engine 'bind_to' Alias names
+ $selectalias --> boolean to display radio buttons instead of checkboxes
+ $mode --> string value to indicate current operation mode
Information is returned from this page via the following form fields:
@@ -51,11 +53,21 @@
<?php $selectablealias = false;
if (!is_array($a_aliases))
$a_aliases = array();
+ if ($mode <> "")
+ echo '<input type="hidden" name="mode" id="mode" value="' . $mode . '"/>';
+ if ($selectalias == true) {
+ $fieldtype = "radio";
+ $header = gettext("Select an Alias to use as {$title} target from the list below.");
+ }
+ else {
+ $fieldtype = "checkbox";
+ $header = gettext("Select one or more Aliases to use as {$title} targets from the list below.");
+ }
?>
+
<table id="maintable" class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td class="listtopic" align="center"><?=gettext("Select one or more Aliases to use as {$title} targets from the list below.");?>
- </td>
+ <td class="listtopic" align="center"><?=$header;?></td>
</tr>
<tr>
<td>
@@ -99,7 +111,7 @@
<td class="listlr" align="center"><img src="../themes/<?=$g['theme'];?>/images/icons/icon_block_d.gif" width="11" height"11" border="0"/>
<?php else: ?>
<tr>
- <td class="listlr" align="center"><input type="checkbox" name="aliastoimport[]" value="<?=htmlspecialchars($alias['name']);?>" title="<?=$tooltip;?>"/></td>
+ <td class="listlr" align="center"><input type="<?=$fieldtype;?>" name="aliastoimport[]" value="<?=htmlspecialchars($alias['name']);?>" title="<?=$tooltip;?>"/></td>
<?php endif; ?>
<td class="listr" align="left"><?=$textss . htmlspecialchars($alias['name']) . $textse;?></td>
<td class="listr" align="left">