aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-10-08 12:18:27 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-11 09:12:30 (GMT)
commiteb83e81e311b846c9e161b40ea282fe1916588fb (patch)
tree50eba2bca88bf14b5dfd49e59522608844e2cf04 /hs20
parentaf284f8a8e6e1ce03541e845dbe969a43c2c9275 (diff)
downloadhostap-eb83e81e311b846c9e161b40ea282fe1916588fb.zip
hostap-eb83e81e311b846c9e161b40ea282fe1916588fb.tar.gz
hostap-eb83e81e311b846c9e161b40ea282fe1916588fb.tar.bz2
HS 2.0 server: Make user list more readable
Order the rows based on identity and use a bit smaller font for some of the fields to make the table fit on the screen more easily. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/server/www/users.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/hs20/server/www/users.php b/hs20/server/www/users.php
index b6c6298..869adf6 100644
--- a/hs20/server/www/users.php
+++ b/hs20/server/www/users.php
@@ -313,10 +313,10 @@ if ($id == 0 && $cmd != 'eventlog') {
echo "[<a href=\"users.php?cmd=eventlog&limit=50\">Eventlog</a>] ";
echo "<br>\n";
-echo "<table border=1>\n";
-echo "<tr><th>User<th>Realm<th>Remediation<th>Policy<th>Account type<th>Phase 2 method(s)<th>DevId<th>MAC Address<th>T&C\n";
+echo "<table border=1 cellspacing=0 cellpadding=0>\n";
+echo "<tr><th>User<th>Realm<th><small>Remediation</small><th>Policy<th><small>Account type</small><th><small>Phase 2 method(s)</small><th>DevId<th>MAC Address<th>T&C\n";
-$res = $db->query('SELECT rowid,* FROM users WHERE phase2=1');
+$res = $db->query('SELECT rowid,* FROM users WHERE phase2=1 ORDER BY identity');
foreach ($res as $row) {
echo "<tr><td><a href=\"users.php?id=" . $row['rowid'] . "\"> " .
$row['identity'] . " </a>";
@@ -324,7 +324,7 @@ foreach ($res as $row) {
$rem = $row['remediation'];
echo "<td>";
if ($rem == "") {
- echo "Not required";
+ echo "-";
} else if ($rem == "user") {
echo "User";
} else if ($rem == "policy") {
@@ -339,18 +339,18 @@ foreach ($res as $row) {
echo "<td>shared";
else
echo "<td>default";
- echo "<td>" . $row['methods'];
+ echo "<td><small>" . $row['methods'] . "</small>";
echo "<td>";
$xml = xml_parser_create();
xml_parse_into_struct($xml, $row['devinfo'], $devinfo);
foreach($devinfo as $k) {
if ($k['tag'] == 'DEVID') {
- echo $k['value'];
+ echo "<small>" . $k['value'] . "</small>";
break;
}
}
- echo "<td>" . $row['mac_addr'];
- echo "<td>" . $row['t_c_timestamp'];
+ echo "<td><small>" . $row['mac_addr'] . "</small>";
+ echo "<td><small>" . $row['t_c_timestamp'] . "</small>";
echo "\n";
}
echo "</table>\n";