summaryrefslogtreecommitdiffstats
path: root/server/report/index.php
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-20 22:52:08 +0200
committerGitHub <noreply@github.com>2020-05-20 22:52:08 +0200
commit4c37a95100098235151e044f3788dcba0c75c60f (patch)
treebddd55b376b5467020126020925216f96c6c9c1d /server/report/index.php
parentMerge pull request #10 from beziapp/dev (diff)
parenti should check code before pushing (diff)
downloadbeziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.gz
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.bz2
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.lz
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.xz
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.zst
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.zip
Diffstat (limited to 'server/report/index.php')
-rw-r--r--server/report/index.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/report/index.php b/server/report/index.php
index 7b48b35..b9ead0b 100644
--- a/server/report/index.php
+++ b/server/report/index.php
@@ -37,14 +37,15 @@
app_version VARCHAR(420) ,
previous_commit VARCHAR(69) ,
ip VARCHAR(69) ,
+ username VARCHAR(69)
)";
$result = mysqli_query($conn, $query);
- $stmt = $conn->prepare("INSERT INTO error_reports (msg, url, line, colno, obj, ua, app_version, previous_commit, ip) VALUES".
- "(?, ?, ?, ?, ?, ?, ?, ?, ?)");
- $stmt->bind_param("ssiisssss", $_REQUEST["error"]["msg"], $_REQUEST["error"]["url"], $_REQUEST["error"]["line"],
+ $stmt = $conn->prepare("INSERT INTO error_reports (msg, url, line, colno, obj, ua, app_version, previous_commit, ip, username) VALUES".
+ "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
+ $stmt->bind_param("ssiissssss", $_REQUEST["error"]["msg"], $_REQUEST["error"]["url"], $_REQUEST["error"]["line"],
$_REQUEST["error"]["column"], $_REQUEST["error"]["obj"], $_REQUEST["client"]["ua"], $_REQUEST["client"]["app_version"],
- $_REQUEST["client"]["previous_commit"], $_SERVER["REMOTE_ADDR"]);
+ $_REQUEST["client"]["previous_commit"], $_SERVER["REMOTE_ADDR"], $_REQUEST["client"]["username"]);
$stmt->execute();