summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_captiveportal.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-07-25 14:10:10 -0300
committerRenato Botelho <renato@netgate.com>2017-07-25 14:10:10 -0300
commitf4c867e009b8270ec6b61db92f6c53f60b128770 (patch)
tree8107677bcf3ba53d0eff9710e4de9987ea8b4c3c /src/usr/local/www/status_captiveportal.php
parent5f6825bbac6373a909651c90e8ca268242f6eedc (diff)
downloadpfsense-f4c867e009b8270ec6b61db92f6c53f60b128770.zip
pfsense-f4c867e009b8270ec6b61db92f6c53f60b128770.tar.gz
Remove unused parameters
Diffstat (limited to 'src/usr/local/www/status_captiveportal.php')
-rw-r--r--src/usr/local/www/status_captiveportal.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/status_captiveportal.php b/src/usr/local/www/status_captiveportal.php
index 597656f..8950c2f 100644
--- a/src/usr/local/www/status_captiveportal.php
+++ b/src/usr/local/www/status_captiveportal.php
@@ -59,7 +59,7 @@ function print_details($cpent) {
/* print idle time and time left before disconnection if idle timeout is set */
if ($_REQUEST['showact']) {
- $last_act = captiveportal_get_last_activity($cpent[2], $cpent[3]);
+ $last_act = captiveportal_get_last_activity($cpent[2]);
/* if the user never sent traffic, set last activity time to the login time */
$last_act = $last_act ? $last_act : $cpent[0];
@@ -74,7 +74,7 @@ function print_details($cpent) {
}
/* print bytes sent and received, invert the values if reverse accounting is enabled */
- $volume = getVolume($cpent[2], $cpent[3]);
+ $volume = getVolume($cpent[2]);
$reverse = isset($config['captiveportal'][$cpzone]['reverseacct']) ? true : false;
if ($reverse) {
printf(gettext("Bytes sent: %s") . "<br>" . gettext("Bytes received: %s") . "\" data-html=\"true\">", format_bytes($volume['output_bytes']), format_bytes($volume['input_bytes']));
@@ -233,7 +233,7 @@ if (!empty($cpzone)): ?>
<td><?php print_details($cpent); ?></td>
<?php
if ($_REQUEST['showact']):
- $last_act = captiveportal_get_last_activity($cpent[2], $cpent[3]);
+ $last_act = captiveportal_get_last_activity($cpent[2]);
/* if the user never sent traffic, set last activity time to the login time */
$last_act = $last_act ? $last_act : $cpent[0];
?>
OpenPOWER on IntegriCloud