X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/4b48b46f55bb6a03a29d0d0db04b3076c1eaae8f..0d62343db7cf98dda603d338e1948a9a09af5862:/settings/index.php diff --git a/settings/index.php b/settings/index.php index b2e6f22..e6bb0d1 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 @@ -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"; @@ -181,4 +193,4 @@ Click on a username to view more information.

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