Merge branch 'main' of github.com:Froxlor/Froxlor

This commit is contained in:
Michael Kaufmann
2023-01-23 09:00:21 +01:00
2 changed files with 12 additions and 3 deletions

View File

@@ -263,7 +263,9 @@ class PhpHelper
try {
$answer = $resolver->query($host, 'A')->answer;
foreach ($answer as $rr) {
$ips[] = inet_ntop(inet_pton($rr->address));
if ($rr instanceof Net_DNS2_RR_A) {
$ips[] = inet_ntop(inet_pton($rr->address));
}
}
} catch (Net_DNS2_Exception $e) {
// we can't do anything here, just continue
@@ -274,7 +276,9 @@ class PhpHelper
try {
$answer = $resolver->query($host, 'AAAA')->answer;
foreach ($answer as $rr) {
$ips[] = inet_ntop(inet_pton($rr->address));
if ($rr instanceof Net_DNS2_RR_AAAA) {
$ips[] = inet_ntop(inet_pton($rr->address));
}
}
} catch (Net_DNS2_Exception $e) {
// we can't do anything here, just continue

View File

@@ -110,6 +110,11 @@ return [
'class' => 'text-center',
'callback' => [Text::class, 'boolean'],
],
'c.lastlogin_succ' => [
'label' => lng('admin.lastlogin_succ'),
'field' => 'lastlogin_succ',
'callback' => [Text::class, 'timestamp'],
],
'c.phpenabled' => [
'label' => lng('admin.phpenabled'),
'field' => 'phpenabled',
@@ -138,7 +143,7 @@ return [
'class' => 'text-center',
'callback' => [Text::class, 'boolean'],
],
'api_allowed' => [
'c.api_allowed' => [
'label' => lng('usersettings.api_allowed.title'),
'field' => 'api_allowed',
'class' => 'text-center',