summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-11-18 11:40:47 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-11-18 11:40:47 -0200
commite91a43d6febae9826a9ef7261ba8cf234f3eeae9 (patch)
treebe530e62ad959f1052a485690a7cfade2aa3b279
parentd56dc72a43405ef7276f2b22ce4dc204ac1469fe (diff)
downloadpfsense-e91a43d6febae9826a9ef7261ba8cf234f3eeae9.zip
pfsense-e91a43d6febae9826a9ef7261ba8cf234f3eeae9.tar.gz
Fix whitespace and indent
-rw-r--r--usr/local/www/widgets/widgets/captive_portal_status.widget.php61
1 files changed, 38 insertions, 23 deletions
diff --git a/usr/local/www/widgets/widgets/captive_portal_status.widget.php b/usr/local/www/widgets/widgets/captive_portal_status.widget.php
index 4726ba1..9fa2709 100644
--- a/usr/local/www/widgets/widgets/captive_portal_status.widget.php
+++ b/usr/local/www/widgets/widgets/captive_portal_status.widget.php
@@ -88,7 +88,7 @@ if ($_GET['order']) {
else if ($_GET['order'] == "mac")
$order = 3;
else if ($_GET['order'] == "user")
- $order = 4;
+ $order = 4;
else if ($_GET['order'] == "lastact")
$order = 5;
else if ($_GET['order'] == "zone")
@@ -99,26 +99,41 @@ if ($_GET['order']) {
}
?>
<table class="sortable" id="sortabletable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="captive portal status">
- <tr>
- <td class="listhdrr"><a href="?order=ip&amp;showact=<?=$_GET['showact'];?>">IP address</a></td>
- <td class="listhdrr"><a href="?order=mac&amp;showact=<?=$_GET['showact'];?>">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&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Session start");?></a></td>
- <td class="listhdrr"><a href="?order=start&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Last activity");?></a></td>
- <?php endif; ?>
- </tr>
-<?php foreach ($cpdb_all as $cpent): ?>
- <tr>
- <td class="listlr"><?=$cpent[2];?></td>
- <td class="listr"><?=$cpent[3];?>&nbsp;</td>
- <td class="listr"><?=$cpent[4];?>&nbsp;</td>
- <?php if ($_GET['showact']): ?>
- <td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td>
- <td class="listr"><?php if ($cpent[11] && ($cpent[11] > 0)) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[11]));?></td>
- <?php endif; ?>
- <td valign="middle" class="list nowrap">
- <a href="?order=<?=$_GET['order'];?>&amp;showact=<?=$_GET['showact'];?>&amp;act=del&amp;zone=<?=$cpent[10];?>&amp;id=<?=$cpent[5];?>" 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" alt="x" /></a></td>
- </tr>
-<?php endforeach; ?>
+ <tr>
+ <td class="listhdrr"><a href="?order=ip&amp;showact=<?=$_GET['showact'];?>">IP address</a></td>
+ <td class="listhdrr"><a href="?order=mac&amp;showact=<?=$_GET['showact'];?>">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&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Session start");?></a></td>
+ <td class="listhdrr"><a href="?order=start&amp;showact=<?=$_GET['showact'];?>"><?=gettext("Last activity");?></a></td>
+<?php
+ endif;
+?>
+ </tr>
+<?php
+foreach ($cpdb_all as $cpent):
+?>
+ <tr>
+ <td class="listlr"><?=$cpent[2];?></td>
+ <td class="listr"><?=$cpent[3];?>&nbsp;</td>
+ <td class="listr"><?=$cpent[4];?>&nbsp;</td>
+<?php
+ if ($_GET['showact']):
+?>
+ <td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td>
+ <td class="listr"><?php if ($cpent[11] && ($cpent[11] > 0)) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[11]));?></td>
+<?php
+ endif;
+?>
+ <td valign="middle" class="list nowrap">
+ <a href="?order=<?=$_GET['order'];?>&amp;showact=<?=$_GET['showact'];?>&amp;act=del&amp;zone=<?=$cpent[10];?>&amp;id=<?=$cpent[5];?>" 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" alt="x" />
+ </a>
+ </td>
+ </tr>
+<?php
+endforeach;
+?>
</table>
OpenPOWER on IntegriCloud