Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
1fd71940
Commit
1fd71940
authored
Aug 03, 2022
by
Dominik Hebeler
Browse files
added dnaa to log
parent
e5ab418c
Changes
1
Hide whitespace changes
Inline
Side-by-side
metager/app/Http/Controllers/HumanVerification.php
View file @
1fd71940
...
...
@@ -124,7 +124,7 @@ class HumanVerification extends Controller
$time
=
microtime
(
true
)
-
$time
;
}
}
self
::
logCaptchaSolve
(
$query
,
$time
);
self
::
logCaptchaSolve
(
$query
,
$time
,
$request
->
has
(
"dnaa"
)
);
$params
[
'token'
]
=
$token
;
// Overwrite if exists
...
...
@@ -145,12 +145,13 @@ class HumanVerification extends Controller
}
}
private
static
function
logCaptchaSolve
(
string
$query
,
float
$time
)
private
static
function
logCaptchaSolve
(
string
$query
,
float
$time
,
bool
$dnaa
=
false
)
{
$log
=
[
now
()
->
format
(
"Y-m-d H:i:s"
),
$query
,
"time="
.
$time
,
"dnaa="
.
var_export
(
$dnaa
,
true
)
];
$file_path
=
\
storage_path
(
"logs/metager/captcha_solve.csv"
);
$fh
=
fopen
(
$file_path
,
"a"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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