add with_ips parameter to SubDomains.listing() and SubDomains.get(); add column ips/ports to domain tablelisting (admin and customer)
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -197,4 +197,16 @@ class Domain
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function listIPs(array $attributes): string
|
||||
{
|
||||
if (isset($attributes['fields']['ipsandports']) && !empty($attributes['fields']['ipsandports'])) {
|
||||
$iplist = "";
|
||||
foreach ($attributes['fields']['ipsandports'] as $ipport) {
|
||||
$iplist .= $ipport['ip'].':'.$ipport['port'].'<br>';
|
||||
}
|
||||
return $iplist;
|
||||
}
|
||||
return lng('panel.empty');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user