X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/062258ffca3e14131ac530492d36ea0b0430602f..6210ec482efa44e152fb8bc61d4dd8f529687cb9:/settings/index.php
diff --git a/settings/index.php b/settings/index.php
index ba3427d..16f33d6 100644
--- a/settings/index.php
+++ b/settings/index.php
@@ -9,7 +9,7 @@ do_log($_POST);
?>
-
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_auth/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))
@@ -64,8 +65,6 @@ $userlist = [];
Hook::run(HOOKTYPE_GET_USER_LIST, $userlist);
?>
-
-Panel Access
Click on a username to view more information.
@@ -97,10 +96,15 @@ Click on a username to view more information.
+
+
+
-
+
+
@@ -128,6 +132,7 @@ Click on a username to view more information.
Username |
First Name |
Last Name |
+ Email |
Created |
Bio |
Last login |
@@ -139,9 +144,10 @@ Click on a username to view more information.
{
echo " | ";
- echo "id\">$user->username | ";
+ echo "id\">$user->username | ";
echo "".$user->first_name." | ";
echo "".$user->last_name." | ";
+ echo "email\">$user->email | ";
echo "".$user->created." | ";
echo "".$user->bio." | ";
$last = (isset($user->user_meta['last_login'])) ? "".$user->user_meta['last_login'] . "
".how_long_ago($user->user_meta['last_login'])."" : "none";