summaryrefslogtreecommitdiff
path: root/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'users.php')
-rw-r--r--users.php10
1 files changed, 5 insertions, 5 deletions
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 == "") {
<html>
<head>
- <title>User list - <?php echo INSTANCE_NAME ?></title>
+ <title>User list - <?php echo CONFIG['instance']['name'] ?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
</head>
@@ -272,7 +272,7 @@ if ($is_json) {
<html>
<head>
- <title><?php echo sprintf("%s - %s", $user->username, INSTANCE_NAME) ?></title>
+ <title><?php echo sprintf("%s - %s", $user->username, CONFIG['instance']['name']) ?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
</head>
@@ -369,7 +369,7 @@ if ($is_json) {
<td>
<?php
foreach ($fav_reactions as $reaction) {
- echo $reaction["c"] . ' <img src="/static/img/icons/ratings/' . $reaction["rate"] . '.png" alt="' . RATING_NAMES[$reaction["rate"]] . '" title="' . RATING_NAMES[$reaction["rate"]] . '">';
+ echo $reaction["c"] . ' <img src="/static/img/icons/ratings/' . $reaction["rate"] . '.png" alt="' . CONFIG['rating']['names'][$reaction["rate"]] . '" title="' . CONFIG['rating']['names'][$reaction["rate"]] . '">';
}
?>
</td>