Ver código fonte

add admin view

andre 4 anos atrás
pai
commit
f0dedde3a4
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5 2
      admin.php

+ 5 - 2
admin.php

@@ -83,9 +83,12 @@ switch($action) {
 </div>
 <h3>Clients</h3>
 <table>
+<tr><th>Token</th><th>Role</th><th>Description</th><th></th></tr>
 <?php
-$user = (new action)->getUser();
-print_r($user);
+$userlist = (new action)->getUser();
+foreach($userlist as $user) {
+    echo "<tr><td>" . $user[0] . "</td><td>" . $user[1] . "</td><td>" . $user[2] . "</td><td><a href=admin.php?token=" . $token . "&action=deblacklist&ip=" . long2ip($blip) . ">remove from blacklist</a></td></tr>";
+}
 ?>
 <tr>
     <form action="admin.php">