]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - users.php
Add "User Lookup" page with cleaner info
[irc/unrealircd/unrealircd-webpanel.git] / users.php
index 0bebbf234d6620eeaf3c57dab66a1fbb497ec2cf..cbc44b07fc664ecd9a9c27598a1a584bd17ebed0 100644 (file)
--- a/users.php
+++ b/users.php
@@ -50,6 +50,7 @@ $users = $rpc->user()->getAll();
 ?>
 <h4>Users Overview</h4><br>
 
+Click on a username to view more information.
 
 <div id="Users">
        
@@ -68,7 +69,7 @@ $users = $rpc->user()->getAll();
 
        ?>
        <table class="table table-responsive caption-top table-striped">
-       <thead class="table-light">
+       <thead>
                <th scope="col"><h5>Filter:</h5></th>
                <form action="" method="post">
                <th scope="col" colspan="2">Nick <input name="uf_nick" type="text" class="form-control short-form-control">
@@ -96,6 +97,7 @@ $users = $rpc->user()->getAll();
                foreach($users as $user)
                {
 
+               
                        /* Some basic filtering for NICK */
                        if (isset($_POST['uf_nick']) && strlen($_POST['uf_nick']) && 
                        strpos(strtolower($user->name), strtolower($_POST['uf_nick'])) !== 0 &&
@@ -123,7 +125,7 @@ $users = $rpc->user()->getAll();
                        echo "<tr>";
                        echo "<th scope=\"row\"><input type=\"checkbox\" value='" . base64_encode($user->id)."' name=\"userch[]\"></th>";
                        $isBot = (strpos($user->user->modes, "B") !== false) ? ' <span class="badge-pill badge-dark">Bot</span>' : "";
-                       echo "<td>".$user->name.$isBot.'</td>';
+                       echo "<td><a href=\"user-lookup.php?nick=".$user->id."\">$user->name$isBot</a></td>";
                        echo "<td>".$user->id."</td>";
                        echo "<td>".$user->hostname." (".$user->ip.")</td>";
                        $account = (isset($user->user->account)) ? $user->user->account : '<span class="badge-pill badge-primary">None</span>';