]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - users/index.php
Move users stuff in users/ directory. Plus add new REQUIRED CONFIG ITEM,
[irc/unrealircd/unrealircd-webpanel.git] / users / index.php
similarity index 97%
rename from users.php
rename to users/index.php
index ebb9e93b44cbd349ce551bc78ea77fa5c7091aeb..2f06e80ca89350d1f11eb7a12106a32777afb41d 100644 (file)
--- a/users.php
@@ -1,6 +1,6 @@
 <?php
-require_once "common.php";
-require_once "header.php";
+require_once "../common.php";
+require_once UPATH . "/header.php";
 
 if (!empty($_POST)) {
        do_log($_POST);
@@ -93,7 +93,7 @@ Click on a username to view more information.
        </thead>
        
        <tbody>
-       <form action="users.php" method="post">
+       <form method="post">
        <?php
 
                foreach($users as $user)
@@ -127,7 +127,7 @@ Click on a username to view more information.
                        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><a href=\"user-lookup.php?nick=".$user->id."\">$user->name$isBot</a></td>";
+                       echo "<td><a href=\"details.php?nick=".$user->id."\">$user->name$isBot</a></td>";
                        echo "<td>".$user->hostname." (".$user->ip.")</td>";
                        $account = (isset($user->user->account)) ? $user->user->account : '<span class="badge-pill badge-primary">None</span>';
                        echo "<td>".$account."</td>";
@@ -241,4 +241,4 @@ Click on a username to view more information.
     });
 </script>
 
-<?php require_once 'footer.php'; ?>
+<?php require_once UPATH.'/footer.php'; ?>