mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 00:24:13 +01:00
Refactor.
This commit is contained in:
parent
262671f50b
commit
82d5796245
@ -42,7 +42,7 @@ $myLog = new Log('ykval-verify');
|
||||
$myLog->addField('ip', $ipaddr);
|
||||
|
||||
// FIXME clean
|
||||
$query_string = '';
|
||||
$message = '';
|
||||
if ($_POST)
|
||||
{
|
||||
$kv = array();
|
||||
@ -50,14 +50,15 @@ if ($_POST)
|
||||
{
|
||||
$kv[] = "$key=$value";
|
||||
}
|
||||
$query_string = 'POST: ' . join('&', $kv);
|
||||
$message = 'POST: ' . join('&', $kv);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query_string = 'Request: ' . $_SERVER['QUERY_STRING'];
|
||||
$message = 'Request: ' . $_SERVER['QUERY_STRING'];
|
||||
}
|
||||
$myLog->log(LOG_INFO, $query_string . ' (at ' . date('c') . ' ' . microtime() . ') HTTP' . ($https ? 'S' : ''));
|
||||
unset($query_string);
|
||||
$message .= ' (at ' . date('c') . ' ' . microtime() . ') HTTP' . ($https ? 'S' : '');
|
||||
$myLog->log(LOG_INFO, $message);
|
||||
unset($message);
|
||||
|
||||
|
||||
/* Detect protocol version */
|
||||
|
Loading…
Reference in New Issue
Block a user