summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-08-08 16:30:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-08-08 16:30:31 +0000
commit644905e8681c0f15ff1038e79ab26f9bfccf4aa6 (patch)
treee8b6ee633dc581bc6f724ed9055a98197737c242 /usr
parent9be23653c4a3fab139d945cd9a484621ea70af66 (diff)
downloadpfsense-644905e8681c0f15ff1038e79ab26f9bfccf4aa6.zip
pfsense-644905e8681c0f15ff1038e79ab26f9bfccf4aa6.tar.gz
Sync w/ HEAD
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_captiveportal.php42
1 files changed, 20 insertions, 22 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index 30a3154..8f57a0a 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,48 +89,44 @@ if ($fp) {
}
captiveportal_unlock();
?>
-<table class="sortable" name="sortabletable" id="sortabletable" width="100%" border="0" cellpadding="0" cellspacing="0">
+<table class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td class="listhdrr"><a href="?order=ip&showact=<?=$_GET['showact'];?>">IP address</a></td>
- <td class="listhdrr"><a href="?order=mac&showact=<?=$_GET['showact'];?>">MAC address</a></td>
- <td class="listhdrr"><a href="?order=user&amp;showact=<?=$_GET['showact'];?>">Username</a></td>
+ <td class="listhdrr"><a href="?order=ip&amp;showact=<?=$_GET['showact'];?>"><?=gettext("IP address");?></a></td>
+ <td class="listhdrr"><a href="?order=mac&amp;showact=<?=$_GET['showact'];?>"><?=gettext("MAC address");?></a></td>
+ <td class="listhdrr"><a href="?order=user&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Username");?></a></td>
<?php if ($_GET['showact']): ?>
- <td class="listhdrr"><a href="?order=start&showact=<?=$_GET['showact'];?>">Session start</a></td>
- <td class="listhdr"><a href="?order=lastact&showact=<?=$_GET['showact'];?>">Last activity</a></td>
+ <td class="listhdrr"><a href="?order=start&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Session start");?></a></td>
+ <td class="listhdr"><a href="?order=lastact&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Last activity");?></a></td>
<?php else: ?>
- <td class="listhdr"><a href="?order=start&showact=<?=$_GET['showact'];?>">Session start</a></td>
+ <td class="listhdr"><a href="?order=start&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Session start");?></a></td>
<?php endif; ?>
- <td class="list"></td>
+ <td class="list sort_ignore"></td>
</tr>
<?php foreach ($cpdb as $cpent): ?>
<tr>
<td class="listlr"><?=$cpent[2];?></td>
<td class="listr"><?=$cpent[3];?>&nbsp;</td>
- <td class="listr"><?=$cpent[4];?>&nbsp;</td>
+ <td class="listr"><?=$cpent[4];?>&nbsp;</td>
<td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td>
<?php if ($_GET['showact']): ?>
- <td class="listr"><?php if ($cpent[4]) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[4]));?></td>
+ <td class="listr"><?php if ($cpent[5]) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[5]));?></td>
<?php endif; ?>
<td valign="middle" class="list" nowrap>
<a href="?order=<?=$_GET['order'];?>&showact=<?=$_GET['showact'];?>&act=del&id=<?=$cpent[1];?>" onclick="return confirm('Do you really want to disconnect this client?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
</tr>
<?php endforeach; ?>
</table>
-<p>
-<form action="status_captiveportal.php" method="GET">
-<input type="hidden" name="order" value="<?=$_GET['order'];?>">
+<form action="status_captiveportal.php" method="get" style="margin: 14px;">
+<input type="hidden" name="order" value="<?=$_GET['order'];?>" />
<?php if ($_GET['showact']): ?>
-<input type="hidden" name="showact" value="0">
-<input type="submit" class="formbtn" value="Don't show last activity">
+<input type="hidden" name="showact" value="0" />
+<input type="submit" class="formbtn" value="<?=gettext("Don't show last activity");?>" />
<?php else: ?>
-<input type="hidden" name="showact" value="1">
-<input type="submit" class="formbtn" value="Show last activity">
+<input type="hidden" name="showact" value="1" />
+<input type="submit" class="formbtn" value="<?=gettext("Show last activity");?>" />
<?php endif; ?>
</form>
-</p>
<?php include("fend.inc"); ?>
-<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
-
</body>
</html>
OpenPOWER on IntegriCloud