diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php index 1dcf2ba71f..8f57a0a113 100755 --- a/usr/local/www/status_captiveportal.php +++ b/usr/local/www/status_captiveportal.php @@ -66,7 +66,7 @@ if ($fp) { if ($line) { $cpent = explode(",", $line); if ($_GET['showact']) - $cpent[4] = captiveportal_get_last_activity($cpent[1]); + $cpent[5] = captiveportal_get_last_activity($cpent[1]); $cpdb[] = $cpent; } } @@ -78,8 +78,10 @@ if ($fp) { $order = 2; else if ($_GET['order'] == "mac") $order = 3; - else if ($_GET['order'] == "lastact") + else if ($_GET['order'] == "user") $order = 4; + else if ($_GET['order'] == "lastact") + $order = 5; else $order = 0; usort($cpdb, "clientcmp"); @@ -87,18 +89,18 @@ if ($fp) { } captiveportal_unlock(); ?> -
| IP address | -MAC address | -Username | +=gettext("IP address");?> | +=gettext("MAC address");?> | +=gettext("Username");?> | -Session start | -Last activity | +=gettext("Session start");?> | +=gettext("Last activity");?> | -Session start | +=gettext("Session start");?> | -+ | |
| =$cpent[4];?> | =htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?> | -+ |
|
-
- - -