]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - settings/index.php
Users: get rid of "user modes" column. Similar to previous, at least for now.
[irc/unrealircd/unrealircd-webpanel.git] / settings / index.php
index 001120a5d55402f83533703aa52474ac4d339b21..a3ca2f2cd3a0669b4b0077614c2ccca503b9757f 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 $conn = NULL;
 
-require_once "../common.php";
-require_once "../header.php";
+require_once "../inc/common.php";
+require_once "../inc/header.php";
 do_log($_POST);
 
 
 
 
 ?>
-<h4>Panel Settings Overview</h4>
+<h4>Panel Accounts</h4>
 
 <?php
 
@@ -27,7 +27,7 @@ if (isset($_POST))
                        if ($us->id == $user->id) // if it's the current user
                        {
                                session_destroy();
-                               header("Location: " . BASE_URL . "plugins/sql_auth/login.php");
+                               header("Location: " . get_config("base_url") . "plugins/sql_db/login.php");
                                die();
                        }
                        $msg = ($deleted = 1) ? "Message::Success" : "Message::Fail";
@@ -60,13 +60,10 @@ if (isset($_POST))
                }
        }
 }
-
 $userlist = [];
 Hook::run(HOOKTYPE_GET_USER_LIST, $userlist);
 
 ?>
-<br>
-<h5>Panel Access</h5>
 Click on a username to view more information.
 <br><br>
 <div id="Users">
@@ -146,7 +143,7 @@ Click on a username to view more information.
                {
                        
                        echo "<td scope=\"col\"><input type=\"checkbox\" value='" .$user->id . "' name=\"userch[]\"></td>";
-                       echo "<td scope=\"col\"><a href=\"".BASE_URL."settings/user-edit.php?id=$user->id\">$user->username</a></td>";
+                       echo "<td scope=\"col\"><a href=\"".get_config("base_url")."settings/user-edit.php?id=$user->id\">$user->username</a></td>";
                        echo "<td scope=\"col\">".$user->first_name."</td>";
                        echo "<td scope=\"col\">".$user->last_name."</td>";
                        echo "<td scope=\"col\"><a href=\"mailto:$user->email\">$user->email</a></td>";
@@ -184,4 +181,4 @@ Click on a username to view more information.
        </div>
        </div></form></div></div><br></div>
 <?php
-require_once '../footer.php'; ?>
+require_once '../inc/footer.php'; ?>