X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/180b8ec1d4d2b3d4e930f57b9850348159510b27..c06c1713af2db485d55a91073bbc5b63b6aa8c0b:/settings/index.php diff --git a/settings/index.php b/settings/index.php index 705c4c2..3798fea 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_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)) @@ -59,13 +60,10 @@ if (isset($_POST)) } } } - $userlist = []; Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); ?> -
-
Panel Access
Click on a username to view more information.

@@ -97,10 +95,15 @@ Click on a username to view more information.
+
+ +
-
+
+
@@ -128,6 +131,7 @@ Click on a username to view more information. Username First Name Last Name + Email Created Bio Last login @@ -139,17 +143,22 @@ Click on a username to view more information. { echo ""; - echo "".$user->username.""; + echo "id\">$user->username"; echo "".$user->first_name.""; echo "".$user->last_name.""; - echo "".$user->created.""; + echo "email\">$user->email"; + echo "".$user->created.""; echo "".$user->bio.""; - echo "".$user->user_meta['last_login'].""; - echo ""; + $last = (isset($user->user_meta['last_login'])) ? "".$user->user_meta['last_login'] . " ".how_long_ago($user->user_meta['last_login'])."" : "none"; + echo "$last"; + echo "\n"; } - ?>

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