summaryrefslogtreecommitdiff
path: root/report/send.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-09 01:43:12 +0500
committerilotterytea <iltsu@alright.party>2025-12-09 01:43:12 +0500
commit29477e67ede12347b153e2255325327374e1b073 (patch)
treebe9170a20d332eab1fcc8b380f70f231921aac45 /report/send.php
parent28bb4f3618e2e947d14a05a24e99d826c26c0ce3 (diff)
feat: new configuration
Diffstat (limited to 'report/send.php')
-rw-r--r--report/send.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/report/send.php b/report/send.php
index fe10ba6..fb4a726 100644
--- a/report/send.php
+++ b/report/send.php
@@ -4,7 +4,7 @@ include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.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;
}
@@ -18,7 +18,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']);
if (!isset($_POST["contents"])) {
generate_alert("/report", "Not enough POST fields");