From aba7b1c3ed1a47be00810694811bb54980e0fbaa Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 8 Aug 2007 16:30:37 +0000 Subject: [PATCH] Sync w/ HEAD --- usr/local/www/status_captiveportal.php | 40 ++++++++++++-------------- 1 file changed, 19 insertions(+), 21 deletions(-) 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(); ?> - +
- - - + + + - - + + - + - + @@ -107,28 +109,24 @@ captiveportal_unlock(); - +
IP addressMAC addressUsername Session startLast activity Session start
 
-

-

- + + - - + +" /> - - + +" />
-

- -