1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

Refactor.

This commit is contained in:
Jean Paul Galea 2016-05-17 11:08:34 +02:00
parent c6cbf17d7b
commit 24fb8be4c5

View File

@ -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);