summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-09 14:32:43 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-09 14:32:43 +0545
commit919d91f973c4e730bd3a0999e3aeaefd3df9d61d (patch)
tree66e066b3e1632b4944959219fd5bfff3be770072 /src/usr/local/www/services_captiveportal.php
parentd6b8120d1b3962efd4089c880f018bb736ad1a2d (diff)
downloadpfsense-919d91f973c4e730bd3a0999e3aeaefd3df9d61d.zip
pfsense-919d91f973c4e730bd3a0999e3aeaefd3df9d61d.tar.gz
EOL whitespace and header consistency for www
Diffstat (limited to 'src/usr/local/www/services_captiveportal.php')
-rw-r--r--src/usr/local/www/services_captiveportal.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php
index 4b5cc64..d2c8c15 100644
--- a/src/usr/local/www/services_captiveportal.php
+++ b/src/usr/local/www/services_captiveportal.php
@@ -306,11 +306,11 @@ if ($_POST) {
}
}
}
-
+
if ($_POST['idletimeout'] && (!is_numeric($_POST['idletimeout']) || ($_POST['idletimeout'] < 1))) {
$input_errors[] = gettext("The idle timeout must be at least 1 minute.");
}
-
+
if ($_POST['freelogins_count'] && (!is_numeric($_POST['freelogins_count']))) {
$input_errors[] = gettext("The pass-through credit count must be a number or left blank.");
} else if ($_POST['freelogins_count'] && is_numeric($_POST['freelogins_count']) && ($_POST['freelogins_count'] >= 1)) {
@@ -318,47 +318,47 @@ if ($_POST) {
$input_errors[] = gettext("The waiting period to restore pass-through credits must be above 0 hours.");
}
}
-
+
if (($_POST['radiusip'] && !is_ipaddr($_POST['radiusip']))) {
$input_errors[] = sprintf(gettext("A valid IP address must be specified. [%s]"), $_POST['radiusip']);
}
-
+
if (($_POST['radiusip2'] && !is_ipaddr($_POST['radiusip2']))) {
$input_errors[] = sprintf(gettext("A valid IP address must be specified. [%s]"), $_POST['radiusip2']);
}
-
+
if (($_POST['radiusip3'] && !is_ipaddr($_POST['radiusip3']))) {
$input_errors[] = sprintf(gettext("A valid IP address must be specified. [%s]"), $_POST['radiusip3']);
}
-
+
if (($_POST['radiusip4'] && !is_ipaddr($_POST['radiusip4']))) {
$input_errors[] = sprintf(gettext("A valid IP address must be specified. [%s]"), $_POST['radiusip4']);
}
-
+
if (($_POST['radiusport'] && !is_port($_POST['radiusport']))) {
$input_errors[] = sprintf(gettext("A valid port number must be specified. [%s]"), $_POST['radiusport']);
}
-
+
if (($_POST['radiusport2'] && !is_port($_POST['radiusport2']))) {
$input_errors[] = sprintf(gettext("A valid port number must be specified. [%s]"), $_POST['radiusport2']);
}
-
+
if (($_POST['radiusport3'] && !is_port($_POST['radiusport3']))) {
$input_errors[] = sprintf(gettext("A valid port number must be specified. [%s]"), $_POST['radiusport3']);
}
-
+
if (($_POST['radiusport4'] && !is_port($_POST['radiusport4']))) {
$input_errors[] = sprintf(gettext("A valid port number must be specified. [%s]"), $_POST['radiusport4']);
}
-
+
if (($_POST['radiusacctport'] && !is_port($_POST['radiusacctport']))) {
$input_errors[] = sprintf(gettext("A valid port number must be specified. [%s]"), $_POST['radiusacctport']);
}
-
+
if ($_POST['maxproc'] && (!is_numeric($_POST['maxproc']) || ($_POST['maxproc'] < 4) || ($_POST['maxproc'] > 100))) {
$input_errors[] = gettext("The maximum number of concurrent connections per client IP address may not be larger than the global maximum.");
}
-
+
if (trim($_POST['radiusnasid']) !== "" && !preg_match("/^[\x21-\x7e]{3,253}$/i", trim($_POST['radiusnasid']))) {
$input_errors[] = gettext("The NAS-Identifier must be 3-253 characters long and should only contain ASCII characters.");
}
@@ -594,7 +594,7 @@ $section->addInput(new Form_Input(
$pconfig['maxprocperip'],
['min' => '0', 'max' => '100']
))->setHelp('Limits the number of concurrent connections to the captive portal HTTP(S) server. This does not set how many users can be logged in ' .
- 'to the captive portal, but rather how many connections a single IP can establish to the portal web server.');
+ 'to the captive portal, but rather how many connections a single IP can establish to the portal web server.');
$section->addInput(new Form_Input(
'idletimeout',
OpenPOWER on IntegriCloud