]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - misc/user-lookup-misc.php
Security: check passwords against Have I Been Pwned
[irc/unrealircd/unrealircd-webpanel.git] / misc / user-lookup-misc.php
index c1b32c897eb7d20dceb8f0c30ec18166ac76a4e6..fd7cebc87fbf767c9d0d40d95196b0cd0956602f 100644 (file)
@@ -6,6 +6,15 @@ function generate_html_whois($user)
        ?>
 
        <table class="table-sm table-responsive caption-top table-hover">
+               <span class="badge rounded-pill"
+                       style="position: absolute;
+                       top:25px;
+                       right: 25px;
+                       background-color:lightgrey;
+                       font-size:small;
+                       "
+               >Reputation <span class="badge badge-danger" style="font-size:small;"><?php echo $user->user->reputation; ?></span>
+               </span>
                <tbody>
                        <tr>
                                <th>Nick</th>
@@ -55,7 +64,6 @@ function generate_html_whois($user)
                                                height:100%;
                                                border-radius:5px;
                                                background-color: blanchedalmond\"><tr>";
-                                               $i = 1;
                                                foreach($user->user->{"security-groups"} as $sg)
                                                {
                                                        echo "<th><div class=\"badge badge-secondary rounded-pill\">$sg</th></tr><tr>";
@@ -63,7 +71,7 @@ function generate_html_whois($user)
                                                echo "</tr></table>"; ?>
                                                </td>
                                        </code>
-                               </td>;
+                               </td>
                        </tr>
 
                </tbody>