From 29477e67ede12347b153e2255325327374e1b073 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 9 Dec 2025 01:43:12 +0500 Subject: feat: new configuration --- users.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'users.php') diff --git a/users.php b/users.php index 45fd6d4..726482e 100644 --- a/users.php +++ b/users.php @@ -14,10 +14,10 @@ $is_json = isset($_SERVER["HTTP_ACCEPT"]) && $_SERVER["HTTP_ACCEPT"] == "applica $id = $_GET["id"] ?? ""; $alias_id = $_GET["alias_id"] ?? ""; -$db = new PDO(DB_URL, DB_USER, DB_PASS); +$db = new PDO(CONFIG['database']['url'], CONFIG['database']['user'], CONFIG['database']['pass']); if ($id == "" && $alias_id == "") { - if (!ACCOUNT_PUBLIC_LIST) { + if (!CONFIG['account']['publiclist']) { generate_alert("/404.php", "The public list of accounts is disabled", 403); exit; } @@ -58,7 +58,7 @@ if ($id == "" && $alias_id == "") { - User list - <?php echo INSTANCE_NAME ?> + User list - <?php echo CONFIG['instance']['name'] ?> @@ -272,7 +272,7 @@ if ($is_json) { - <?php echo sprintf("%s - %s", $user->username, INSTANCE_NAME) ?> + <?php echo sprintf("%s - %s", $user->username, CONFIG['instance']['name']) ?> @@ -369,7 +369,7 @@ if ($is_json) { '; + echo $reaction["c"] . ' ' . CONFIG['rating']['names'][$reaction['; } ?> -- cgit v1.2.3