X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/c06c1713af2db485d55a91073bbc5b63b6aa8c0b..579020f8c67f7bdfd9d530a25b701af6ee53c412:/settings/index.php diff --git a/settings/index.php b/settings/index.php index 3798fea..e6bb0d1 100644 --- a/settings/index.php +++ b/settings/index.php @@ -27,7 +27,7 @@ if (isset($_POST)) if ($us->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 @@ -89,27 +90,36 @@ Click on a username to view more information. @@ -129,6 +139,7 @@ Click on a username to view more information.
Username + Role First Name Last Name Email @@ -144,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";