update: client ip logging when mail
This commit is contained in:
1 parent
e0a4f9ff77
commit
4b30f00872
1 file changed
+3
-2
@@ -14,11 +14,12 @@ function sendMail($subject, $message, $url, bool $log) {
|
||||
if ($log == true) {
|
||||
DatabaseInsert(
|
||||
"Mailing",
|
||||
"Datum, SUBJECT, MESSAGE, URL",
|
||||
"Datum, SUBJECT, MESSAGE, URL, CLIENT_IP",
|
||||
(new getSpecificData())->getRequestTime(),
|
||||
$subject,
|
||||
$message,
|
||||
$url
|
||||
$url,
|
||||
(new getSpecificData())->getClientIP(),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user