summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_captiveportal.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-17 11:34:44 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-17 11:34:44 -0300
commit5705c60a24ce8a5887dda0f7c1a73231de42827e (patch)
treee03f1e22e4292db3ff8904fd043842259a05eb22 /usr/local/www/status_captiveportal.php
parent290296cdc05747b65145077e2715e7c4e2ae60aa (diff)
downloadpfsense-5705c60a24ce8a5887dda0f7c1a73231de42827e.zip
pfsense-5705c60a24ce8a5887dda0f7c1a73231de42827e.tar.gz
Revert "Merge pull request #417 from miken32/cp-database-fix"
It breaks customizations, it's not a good time for such big change. This reverts commit 40c7b1a98bfdc61261154adaac5fdefc234ecb08, reversing changes made to d896f86751bae79625197da6c80d709fdf185448.
Diffstat (limited to 'usr/local/www/status_captiveportal.php')
-rwxr-xr-xusr/local/www/status_captiveportal.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index 15a2227..2e303b6 100755
--- a/usr/local/www/status_captiveportal.php
+++ b/usr/local/www/status_captiveportal.php
@@ -50,7 +50,7 @@ if (isset($_POST['zone']))
$cpzone = $_POST['zone'];
if ($_GET['act'] == "del" && !empty($cpzone)) {
- captiveportal_disconnect_client($_GET['id'], RADIUS_TERM_ADMIN_RESET);
+ captiveportal_disconnect_client($_GET['id']);
Header("Location: status_captiveportal.php?zone={$cpzone}");
exit;
}
@@ -156,16 +156,16 @@ if (!empty($cpzone)) {
</tr>
<?php foreach ($cpdb as $cpent): ?>
<tr>
- <td class="listlr"><?=$cpent['ip'];?></td>
- <td class="listr"><?=$cpent['mac'];?>&nbsp;</td>
- <td class="listr"><?=$cpent['username'];?>&nbsp;</td>
- <td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent['allow_time']));?></td>
+ <td class="listlr"><?=$cpent[2];?></td>
+ <td class="listr"><?=$cpent[3];?>&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']):
- $last_act = captiveportal_get_last_activity($cpent['ip']); ?>
+ $last_act = captiveportal_get_last_activity($cpent[2]); ?>
<td class="listr"><?php if ($last_act != 0) echo htmlspecialchars(date("m/d/Y H:i:s", $last_act));?></td>
<?php endif; ?>
<td valign="middle" class="list" nowrap>
- <a href="?zone=<?=$cpzone;?>&order=<?=$_GET['order'];?>&showact=<?=htmlspecialchars($_GET['showact']);?>&act=del&id=<?=$cpent['sessionid'];?>" onclick="return confirm('<?=gettext("Do you really want to disconnect this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("Disconnect");?>"></a></td>
+ <a href="?zone=<?=$cpzone;?>&order=<?=$_GET['order'];?>&showact=<?=htmlspecialchars($_GET['showact']);?>&act=del&id=<?=$cpent[5];?>" onclick="return confirm('<?=gettext("Do you really want to disconnect this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("Disconnect");?>"></a></td>
</tr>
<?php endforeach; endif; ?>
</table>
OpenPOWER on IntegriCloud