summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-21 21:44:38 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-21 21:44:58 +0000
commitf8b1131038f1a8ced102c79ed6c72ef9dc05e6f1 (patch)
treeaf5965311271a555f903685cbb586a40aed64ff9 /usr/local/www/services_captiveportal.php
parent868a5b990ab32dbea625c254a6daa264086fd08b (diff)
downloadpfsense-f8b1131038f1a8ced102c79ed6c72ef9dc05e6f1.zip
pfsense-f8b1131038f1a8ced102c79ed6c72ef9dc05e6f1.tar.gz
Make CP multi-interface capable.
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index 7d5a73d..bc07fb2 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -149,7 +149,7 @@ if ($_POST) {
}
if (!$input_errors) {
- $config['captiveportal']['interface'] = $_POST['cinterface'];
+ $config['captiveportal']['interface'] = implode(",", $_POST['cinterface']);
$config['captiveportal']['maxproc'] = $_POST['maxproc'];
$config['captiveportal']['maxprocperip'] = $_POST['maxprocperip'] ? $_POST['maxprocperip'] : false;
$config['captiveportal']['timeout'] = $_POST['timeout'];
@@ -194,6 +194,8 @@ if ($_POST) {
$retval = captiveportal_configure();
$savemsg = get_std_save_message($retval);
+
+ $pconfig['cinterface'] = implode(",", $_POST['cinterface']);
}
}
include("head.inc");
@@ -276,16 +278,16 @@ function enable_change(enable_change) {
<tr>
<td width="22%" valign="top" class="vncellreq">Interface</td>
<td width="78%" class="vtable">
- <select name="cinterface" class="formselect" id="cinterface">
+ <select name="cinterface[]" multiple="true" size="3" class="formselect" id="cinterface">
<?php
$interfaces = get_configured_interface_with_descr();
foreach ($interfaces as $iface => $ifacename): ?>
- <option value="<?=$iface;?>" <?php if ($iface == $pconfig['cinterface']) echo "selected"; ?>>
+ <option value="<?=$iface;?>" <?php if (stristr($pconfig['cinterface'], $iface)) echo "selected"; ?>>
<?=htmlspecialchars($ifacename);?>
</option>
<?php endforeach; ?>
</select> <br>
- <span class="vexpl">Choose which interface to run the captive portal on.</span></td>
+ <span class="vexpl">Choose which interface(s) to run the captive portal on.</span></td>
</tr>
<tr>
<td valign="top" class="vncell">Maximum concurrent connections</td>
OpenPOWER on IntegriCloud