X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/6210ec482efa44e152fb8bc61d4dd8f529687cb9..d16e35f5edf92883bbd14eb8cbac3547e634fff3:/settings/index.php diff --git a/settings/index.php b/settings/index.php index 16f33d6..453101b 100644 --- a/settings/index.php +++ b/settings/index.php @@ -1,8 +1,8 @@ id == $user->id) // if it's the current user { session_destroy(); - header("Location: " . get_config("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"; @@ -52,6 +52,7 @@ if (isset($_POST)) } else if (($usr_obj = new PanelUser($user['user_name'])) && isset($usr_obj->id)) { + $usr_obj->add_meta("role", $p['user_role']); Message::Success("Successfully created user \"" . $user['user_name'] . "\""); } else @@ -60,7 +61,6 @@ if (isset($_POST)) } } } - $userlist = []; Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); @@ -96,6 +96,15 @@ Click on a username to view more information. +
+
@@ -130,6 +139,7 @@ Click on a username to view more information.
Username + Role First Name Last Name Email @@ -145,6 +155,7 @@ Click on a username to view more information. echo ""; echo "id\">$user->username"; + echo "".((isset($user->user_meta['role'])) ? $user->user_meta['role'] : "").""; echo "".$user->first_name.""; echo "".$user->last_name.""; echo "email\">$user->email"; @@ -182,4 +193,4 @@ Click on a username to view more information.

+require_once '../inc/footer.php'; ?>