Fix: Mailbox Stats über Dovecot mit config/mailpool.php

main v1.0.94
boban 2025-10-29 03:44:49 +01:00
parent 47bca4c8de
commit ab13bab984
2 changed files with 25 additions and 9 deletions

View File

@ -569,9 +569,11 @@ class DomainDnsModal extends ModalComponent
private function ptrFromIPv6(string $ip): string
{
$expanded = strtolower(inet_ntop(inet_pton($ip)));
$hex = str_replace(':', '', $expanded);
return implode('.', array_reverse(str_split($hex))) . '.ip6.arpa';
$bin = @inet_pton($ip);
if ($bin === false) return '';
$hex = bin2hex($bin); // exakt 32 Hex-Zeichen, lowercase
$nibbles = str_split($hex, 1); // 32 Nibbles
return implode('.', array_reverse($nibbles)) . '.ip6.arpa';
}
public function render()

View File

@ -68,16 +68,30 @@
<div class="space-y-4">
@foreach ($static as $r)
<div class="rounded-xl border {{ $r['boxClass'] ?? $stateColors['neutral'] }}">
<div class="flex items-center justify-between px-4 py-2 text-[12px]">
<div class="flex items-center gap-2">
<span class="px-2 py-0.5 rounded {{ $recordColors[$r['type']] ?? 'bg-slate-700/50 text-slate-300' }}">{{ $r['type'] }}</span>
<span class="text-slate-200">{{ $r['name'] }}</span>
{{-- <div class="flex items-center justify-between px-4 py-2 text-[12px]">--}}
{{-- <div class="flex items-center gap-2">--}}
{{-- <span class="px-2 py-0.5 rounded {{ $recordColors[$r['type']] ?? 'bg-slate-700/50 text-slate-300' }}">{{ $r['type'] }}</span>--}}
{{-- <span class="text-slate-200">{{ $r['name'] }}</span>--}}
{{-- </div>--}}
{{-- <div class="flex items-center gap-2 text-slate-300/70">--}}
{{-- <x-button.copy-btn :text="$r['value']" />--}}
{{-- </div>--}}
{{-- </div>--}}
<div class="flex items-start justify-between gap-2 px-4 py-2 text-[12px]">
<div class="min-w-0 flex items-start gap-2">
<span class="px-2 py-0.5 rounded {{ $recordColors[$r['type']] ?? 'bg-slate-700/50 text-slate-300' }}">
{{ $r['type'] }}
</span>
<div class="min-w-0 flex-1">
<span
class="text-[12px] leading-5 text-slate-200 break-all"
title="{{ $r['name'] }}">{{ $r['name'] }}</span>
</div>
</div>
<div class="flex items-center gap-2 text-slate-300/70">
<div class="shrink-0">
<x-button.copy-btn :text="$r['value']" />
</div>
</div>
<div class="px-4 pb-3 space-y-2">
<pre class="text-[12px] w-full rounded-lg bg-white/5 border border-white/10 text-white px-3 py-2 opacity-80 whitespace-pre-wrap break-all">{{ $r['value'] }}</pre>
@if($checked && ($r['state'] ?? 'neutral') !== 'ok' && !empty($r['display_actual']))