mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 09:24:12 +01:00
Refactor.
This commit is contained in:
parent
c6cbf17d7b
commit
24fb8be4c5
@ -58,9 +58,8 @@ $myLog->request->set('time_start', $time_start);
|
|||||||
unset($time_start);
|
unset($time_start);
|
||||||
|
|
||||||
|
|
||||||
$request = array();
|
if ($_GET)
|
||||||
$message = '';
|
{
|
||||||
if ($_GET) {
|
|
||||||
$request = $_GET;
|
$request = $_GET;
|
||||||
$message = 'Request: ' . $_SERVER['QUERY_STRING'];
|
$message = 'Request: ' . $_SERVER['QUERY_STRING'];
|
||||||
}
|
}
|
||||||
@ -75,6 +74,11 @@ else if ($_POST)
|
|||||||
$message = 'POST: ' . join('&', $kv);
|
$message = 'POST: ' . join('&', $kv);
|
||||||
unset($kv);
|
unset($kv);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$request = array();
|
||||||
|
$message = '';
|
||||||
|
}
|
||||||
$message .= ' (at ' . date('c') . ' ' . microtime() . ') HTTP' . ($https ? 'S' : '');
|
$message .= ' (at ' . date('c') . ' ' . microtime() . ') HTTP' . ($https ? 'S' : '');
|
||||||
$myLog->log(LOG_INFO, $message);
|
$myLog->log(LOG_INFO, $message);
|
||||||
unset($message);
|
unset($message);
|
||||||
|
Loading…
Reference in New Issue
Block a user