summaryrefslogtreecommitdiff
path: root/report/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'report/list.php')
-rw-r--r--report/list.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/report/list.php b/report/list.php
index 71c233e..94154fe 100644
--- a/report/list.php
+++ b/report/list.php
@@ -5,7 +5,7 @@ include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php";
include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php";
include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php";
-if (!REPORTS_ENABLE) {
+if (!CONFIG['reports']['enable']) {
generate_alert("/404.php", "Reports are disabled", 403);
exit;
}
@@ -19,7 +19,7 @@ if (isset($_SESSION["user_role"]) && !$_SESSION["user_role"]["permission_report"
exit;
}
-$db = new PDO(DB_URL, DB_USER, DB_PASS);
+$db = new PDO(CONFIG['database']['url'], CONFIG['database']['user'], CONFIG['database']['pass']);
$stmt = $db->prepare("SELECT * FROM reports WHERE sender_id = ? ORDER BY sent_at DESC");
$stmt->execute([$_SESSION["user_id"]]);
@@ -30,7 +30,7 @@ $reports = $stmt->fetchAll(PDO::FETCH_ASSOC);
<html>
<head>
- <title>Report list - <?php echo INSTANCE_NAME ?></title>
+ <title>Report 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>