mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 00:24:13 +01:00
Refactor.
- move further down, easier to read, but no real benefit resource wise.
This commit is contained in:
parent
d8e5a1324b
commit
3a344668d0
@ -31,15 +31,15 @@ require_once 'ykval-common.php';
|
||||
require_once 'ykval-config.php';
|
||||
require_once 'ykval-synclib.php';
|
||||
|
||||
$ipaddr = $_SERVER['REMOTE_ADDR'];
|
||||
$allowed = $baseParams['__YKVAL_ALLOWED_SYNC_POOL__'];
|
||||
|
||||
header('content-type: text/plain');
|
||||
|
||||
if (empty($_SERVER['QUERY_STRING'])) {
|
||||
sendResp(S_MISSING_PARAMETER, $myLog);
|
||||
}
|
||||
|
||||
$ipaddr = $_SERVER['REMOTE_ADDR'];
|
||||
$allowed = $baseParams['__YKVAL_ALLOWED_SYNC_POOL__'];
|
||||
|
||||
$myLog = new Log('ykval-sync');
|
||||
$myLog->addField('ip', $ipaddr);
|
||||
$myLog->log(LOG_INFO, 'Request: ' . $_SERVER['QUERY_STRING']);
|
||||
|
Loading…
Reference in New Issue
Block a user