X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/180b8ec1d4d2b3d4e930f57b9850348159510b27..d16e35f5edf92883bbd14eb8cbac3547e634fff3:/settings/index.php
diff --git a/settings/index.php b/settings/index.php
index 705c4c2..453101b 100644
--- a/settings/index.php
+++ b/settings/index.php
@@ -1,15 +1,15 @@
-
Panel Settings Overview
+Panel Accounts
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";
@@ -43,6 +43,7 @@ if (isset($_POST))
$user['user_pass'] = $p['password'];
$user['fname'] = $p['add_first_name'];
$user['lname'] = $p['add_last_name'];
+ $user['user_email'] = $p['user_email'];
$user['user_bio'] = $p['user_bio'];
$user['err'] = "";
if (!create_new_user($user))
@@ -51,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
@@ -59,13 +61,10 @@ if (isset($_POST))
}
}
}
-
$userlist = [];
Hook::run(HOOKTYPE_GET_USER_LIST, $userlist);
?>
-
-Panel Access
Click on a username to view more information.
@@ -97,10 +96,24 @@ Click on a username to view more information.
+
+
+
+
+
-
+
+
@@ -126,8 +139,10 @@ Click on a username to view more information.