Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
a6355e5c
Commit
a6355e5c
authored
Sep 23, 2016
by
Carsten Rose
Browse files
Database.php: logging remote IP address.
parent
b0626481
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/Database.php
View file @
a6355e5c
...
...
@@ -335,7 +335,16 @@ class Database {
throw
new
UserFormException
(
"Unknown SQL_LOG_MODE:
$mode
"
,
ERROR_UNKNOWN_SQL_LOG_MODE
);
}
$msg
=
'['
.
date
(
'Y.m.d H:i:s O'
)
.
']['
;
// Client IP Address
$remoteAddress
=
$this
->
store
->
getVar
(
CLIENT_REMOTE_ADDRESS
,
STORE_CLIENT
);
$msg
=
'['
.
date
(
'Y.m.d H:i:s O'
)
.
']['
.
$remoteAddress
.
']['
;
// // FE User
// $feUser = $this->sqlLog = $this->store->getVar(TYPO3_FE_USER, STORE_TYPO3);
// $pageId = $this->sqlLog = $this->store->getVar(TYPO3_PAGE_ID, STORE_TYPO3);
// $ttcontentId = $this->sqlLog = $this->store->getVar(TYPO3_TT_CONTENT_UID, STORE_TYPO3);
if
(
count
(
$parameterArray
)
===
0
)
{
$msg
.
=
$sql
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment