summaryrefslogtreecommitdiffstats
path: root/server/report/index.php
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-22 13:02:03 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-22 13:02:03 +0200
commitf600a895ae5b96b7e664fe091ca4faf0c467082f (patch)
tree2c7c0e6c4a51e5216c12928084d97ddacd805883 /server/report/index.php
parenti should check code before pushing (diff)
downloadbeziapp-f600a895ae5b96b7e664fe091ca4faf0c467082f.tar
beziapp-f600a895ae5b96b7e664fe091ca4faf0c467082f.tar.gz
beziapp-f600a895ae5b96b7e664fe091ca4faf0c467082f.tar.bz2
beziapp-f600a895ae5b96b7e664fe091ca4faf0c467082f.tar.lz
beziapp-f600a895ae5b96b7e664fe091ca4faf0c467082f.tar.xz
beziapp-f600a895ae5b96b7e664fe091ca4faf0c467082f.tar.zst
beziapp-f600a895ae5b96b7e664fe091ca4faf0c467082f.zip
Diffstat (limited to '')
-rw-r--r--server/report/index.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/report/index.php b/server/report/index.php
index b9ead0b..d89f41d 100644
--- a/server/report/index.php
+++ b/server/report/index.php
@@ -37,12 +37,13 @@
app_version VARCHAR(420) ,
previous_commit VARCHAR(69) ,
ip VARCHAR(69) ,
- username VARCHAR(69)
+ username VARCHAR(69) ,
+ timestamp DATETIME
)";
$result = mysqli_query($conn, $query);
- $stmt = $conn->prepare("INSERT INTO error_reports (msg, url, line, colno, obj, ua, app_version, previous_commit, ip, username) VALUES".
- "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
+ $stmt = $conn->prepare("INSERT INTO error_reports (msg, url, line, colno, obj, ua, app_version, previous_commit, ip, username, timestamp) VALUES".
+ "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, now())");
$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"]["username"]);