diff --git a/cp/app/Controllers/HomeController.php b/cp/app/Controllers/HomeController.php index 9041b81..8f49032 100644 --- a/cp/app/Controllers/HomeController.php +++ b/cp/app/Controllers/HomeController.php @@ -48,8 +48,10 @@ class HomeController extends Controller if ($clid !== null) { $domains = $db->selectValue('SELECT count(id) as domains FROM domain WHERE clid = ?', [$clid]); - $latest_domains = $db->select('SELECT name, crdate FROM domain WHERE clid = ? ORDER BY crdate DESC LIMIT 10', [$clid]); - $tickets = $db->select('SELECT id, subject, status, priority FROM support_tickets WHERE user_id = ? ORDER BY date_created DESC LIMIT 10', [$clid]); + $latest_domains = $db->select('SELECT name, crdate FROM domain WHERE clid = ? ORDER BY crdate DESC LIMIT 5', [$clid]); + $expiring_domains = $db->select('SELECT name, exdate FROM domain WHERE clid = ? AND exdate BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 30 DAY) ORDER BY exdate ASC LIMIT 5;', [$clid]); + $expired_domains = $db->select('SELECT name, exdate FROM domain WHERE clid = ? AND exdate BETWEEN DATE_SUB(CURDATE(), INTERVAL 30 DAY) AND CURDATE() ORDER BY exdate DESC LIMIT 5;', [$clid]); + $tickets = $db->select('SELECT id, subject, status, priority FROM support_tickets WHERE user_id = ? ORDER BY date_created DESC LIMIT 5', [$clid]); $hosts = $db->selectValue('SELECT count(id) as hosts FROM host WHERE clid = ?', [$clid]); $contacts = $db->selectValue('SELECT count(id) as contacts FROM contact WHERE clid = ?', [$clid]); @@ -58,6 +60,8 @@ class HomeController extends Controller 'hosts' => $hosts, 'contacts' => $contacts, 'latest_domains' => $latest_domains, + 'expiring_domains' => $expiring_domains, + 'expired_domains' => $expired_domains, 'tickets' => $tickets, ]); } else { @@ -162,8 +166,10 @@ class HomeController extends Controller } $domains = $db->selectValue('SELECT count(id) as domains FROM domain'); - $latest_domains = $db->select('SELECT name, crdate FROM domain ORDER BY crdate DESC LIMIT 10'); - $tickets = $db->select('SELECT id, subject, status, priority FROM support_tickets ORDER BY date_created DESC LIMIT 10'); + $latest_domains = $db->select('SELECT name, crdate FROM domain ORDER BY crdate DESC LIMIT 5'); + $expiring_domains = $db->select('SELECT name, exdate FROM domain WHERE exdate BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 30 DAY) ORDER BY exdate ASC LIMIT 5;'); + $expired_domains = $db->select('SELECT name, exdate FROM domain WHERE exdate BETWEEN DATE_SUB(CURDATE(), INTERVAL 30 DAY) AND CURDATE() ORDER BY exdate DESC LIMIT 5;'); + $tickets = $db->select('SELECT id, subject, status, priority FROM support_tickets ORDER BY date_created DESC LIMIT 5'); $hosts = $db->selectValue('SELECT count(id) as hosts FROM host'); $contacts = $db->selectValue('SELECT count(id) as contacts FROM contact'); $registrars = $db->selectValue('SELECT count(id) as registrars FROM registrar'); @@ -174,6 +180,8 @@ class HomeController extends Controller 'contacts' => $contacts, 'registrars' => $registrars, 'latest_domains' => $latest_domains, + 'expiring_domains' => $expiring_domains, + 'expired_domains' => $expired_domains, 'tickets' => $tickets, 'dates' => json_encode($dates), 'counts' => json_encode($counts), diff --git a/cp/lang/ar_SA/messages.po b/cp/lang/ar_SA/messages.po index 96ace0d..6dd6605 100644 --- a/cp/lang/ar_SA/messages.po +++ b/cp/lang/ar_SA/messages.po @@ -1658,4 +1658,43 @@ msgid "Choose Contact to Assign" msgstr "اختر جهة اتصال للتعيين" msgid "Assign Contact" -msgstr "تعيين جهة الاتصال" \ No newline at end of file +msgstr "تعيين جهة الاتصال" + +msgid "Expiring Domains" +msgstr "المجالات التي ستنتهي صلاحيتها" + +msgid "Expired Domains" +msgstr "المجالات المنتهية الصلاحية" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "WebAuthn معطل حاليًا لهذا التثبيت. لتمكين المصادقة عبر WebAuthn، يرجى الاتصال بمسؤول السجل." + +msgid "Security" +msgstr "الأمان" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "إذا قمت بتسجيل الدخول على عدة أجهزة أو متصفحات وتريد ضمان أمان حسابك، يمكنك تسجيل الخروج من جميع الجلسات الأخرى باستثناء هذه الجلسة. سيؤدي ذلك إلى إنهاء الوصول من أي أجهزة أخرى تم تسجيل الدخول إليها." + +msgid "Log Out from All Devices" +msgstr "تسجيل الخروج من جميع الأجهزة" + +msgid "Port 43 WHOIS Queries" +msgstr "استعلامات WHOIS على المنفذ 43" + +msgid "Web WHOIS Queries" +msgstr "استعلامات WHOIS عبر الويب" + +msgid "Enable DNSSEC" +msgstr "تمكين DNSSEC" + +msgid "DNSSEC Mode" +msgstr "وضع DNSSEC" + +msgid "DNSSEC Details" +msgstr "تفاصيل DNSSEC" + +msgid "Export IDN Table" +msgstr "تصدير جدول IDN" + +msgid "Published" +msgstr "منشور" diff --git a/cp/lang/en_US/messages.po b/cp/lang/en_US/messages.po index 0b7c269..bcab02d 100644 --- a/cp/lang/en_US/messages.po +++ b/cp/lang/en_US/messages.po @@ -1661,4 +1661,43 @@ msgid "Choose Contact to Assign" msgstr "Choose Contact to Assign" msgid "Assign Contact" -msgstr "Assign Contact" \ No newline at end of file +msgstr "Assign Contact" + +msgid "Expiring Domains" +msgstr "Expiring Domains" + +msgid "Expired Domains" +msgstr "Expired Domains" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." + +msgid "Security" +msgstr "Security" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." + +msgid "Log Out from All Devices" +msgstr "Log Out from All Devices" + +msgid "Port 43 WHOIS Queries" +msgstr "Port 43 WHOIS Queries" + +msgid "Web WHOIS Queries" +msgstr "Web WHOIS Queries" + +msgid "Enable DNSSEC" +msgstr "Enable DNSSEC" + +msgid "DNSSEC Mode" +msgstr "DNSSEC Mode" + +msgid "DNSSEC Details" +msgstr "DNSSEC Details" + +msgid "Export IDN Table" +msgstr "Export IDN Table" + +msgid "Published" +msgstr "Published" \ No newline at end of file diff --git a/cp/lang/es_ES/messages.po b/cp/lang/es_ES/messages.po index 1ca99f6..495954b 100644 --- a/cp/lang/es_ES/messages.po +++ b/cp/lang/es_ES/messages.po @@ -1661,4 +1661,43 @@ msgid "Choose Contact to Assign" msgstr "Elija un contacto para asignar" msgid "Assign Contact" -msgstr "Asignar contacto" \ No newline at end of file +msgstr "Asignar contacto" + +msgid "Expiring Domains" +msgstr "Dominios por expirar" + +msgid "Expired Domains" +msgstr "Dominios expirados" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "WebAuthn está actualmente deshabilitado para esta instalación. Para habilitar la autenticación WebAuthn, por favor contacte al administrador del registro." + +msgid "Security" +msgstr "Seguridad" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "Si has iniciado sesión en múltiples dispositivos o navegadores y quieres asegurar la seguridad de tu cuenta, puedes cerrar sesión en todas las demás sesiones excepto esta. Esto finalizará el acceso desde cualquier otro dispositivo conectado." + +msgid "Log Out from All Devices" +msgstr "Cerrar sesión en todos los dispositivos" + +msgid "Port 43 WHOIS Queries" +msgstr "Consultas WHOIS en el puerto 43" + +msgid "Web WHOIS Queries" +msgstr "Consultas WHOIS en la web" + +msgid "Enable DNSSEC" +msgstr "Habilitar DNSSEC" + +msgid "DNSSEC Mode" +msgstr "Modo DNSSEC" + +msgid "DNSSEC Details" +msgstr "Detalles de DNSSEC" + +msgid "Export IDN Table" +msgstr "Exportar tabla IDN" + +msgid "Published" +msgstr "Publicado" diff --git a/cp/lang/fr_FR/messages.po b/cp/lang/fr_FR/messages.po index a1606b5..18da4c1 100644 --- a/cp/lang/fr_FR/messages.po +++ b/cp/lang/fr_FR/messages.po @@ -1661,4 +1661,43 @@ msgid "Choose Contact to Assign" msgstr "Choisissez un contact à attribuer" msgid "Assign Contact" -msgstr "Attribuer un contact" \ No newline at end of file +msgstr "Attribuer un contact" + +msgid "Expiring Domains" +msgstr "Domaines expirant" + +msgid "Expired Domains" +msgstr "Domaines expirés" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "WebAuthn est actuellement désactivé pour cette installation. Pour activer l’authentification WebAuthn, veuillez contacter l’administrateur du registre." + +msgid "Security" +msgstr "Sécurité" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "Si vous vous êtes connecté sur plusieurs appareils ou navigateurs et que vous souhaitez assurer la sécurité de votre compte, vous pouvez vous déconnecter de toutes les autres sessions sauf celle-ci. Cela mettra fin à l'accès depuis tous les autres appareils connectés." + +msgid "Log Out from All Devices" +msgstr "Se déconnecter de tous les appareils" + +msgid "Port 43 WHOIS Queries" +msgstr "Requêtes WHOIS sur le port 43" + +msgid "Web WHOIS Queries" +msgstr "Requêtes WHOIS sur le Web" + +msgid "Enable DNSSEC" +msgstr "Activer DNSSEC" + +msgid "DNSSEC Mode" +msgstr "Mode DNSSEC" + +msgid "DNSSEC Details" +msgstr "Détails DNSSEC" + +msgid "Export IDN Table" +msgstr "Exporter le tableau IDN" + +msgid "Published" +msgstr "Publié" diff --git a/cp/lang/jp_JP/messages.po b/cp/lang/jp_JP/messages.po index cc4a816..0034064 100644 --- a/cp/lang/jp_JP/messages.po +++ b/cp/lang/jp_JP/messages.po @@ -1662,3 +1662,42 @@ msgstr "割り当てる連絡先を選択" msgid "Assign Contact" msgstr "連絡先を割り当てる" + +msgid "Expiring Domains" +msgstr "期限切れ間近のドメイン" + +msgid "Expired Domains" +msgstr "期限切れのドメイン" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "このインストールではWebAuthnが無効になっています。WebAuthn認証を有効にするには、レジストリ管理者に連絡してください。" + +msgid "Security" +msgstr "セキュリティ" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "複数のデバイスやブラウザでログインしている場合、アカウントのセキュリティを確保するために、このセッションを除くすべてのセッションからログアウトできます。これにより、他のログイン済みデバイスからのアクセスが終了します。" + +msgid "Log Out from All Devices" +msgstr "すべてのデバイスからログアウト" + +msgid "Port 43 WHOIS Queries" +msgstr "ポート43のWHOISクエリ" + +msgid "Web WHOIS Queries" +msgstr "Web WHOISクエリ" + +msgid "Enable DNSSEC" +msgstr "DNSSECを有効化" + +msgid "DNSSEC Mode" +msgstr "DNSSECモード" + +msgid "DNSSEC Details" +msgstr "DNSSECの詳細" + +msgid "Export IDN Table" +msgstr "IDNテーブルをエクスポート" + +msgid "Published" +msgstr "公開済み" diff --git a/cp/lang/messages_template.po b/cp/lang/messages_template.po index 030b953..b7385b2 100644 --- a/cp/lang/messages_template.po +++ b/cp/lang/messages_template.po @@ -1662,3 +1662,42 @@ msgstr "" msgid "Assign Contact" msgstr "" + +msgid "Expiring Domains" +msgstr "" + +msgid "Expired Domains" +msgstr "" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "" + +msgid "Security" +msgstr "" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "" + +msgid "Log Out from All Devices" +msgstr "" + +msgid "Port 43 WHOIS Queries" +msgstr "" + +msgid "Web WHOIS Queries" +msgstr "" + +msgid "Enable DNSSEC" +msgstr "" + +msgid "DNSSEC Mode" +msgstr "" + +msgid "DNSSEC Details" +msgstr "" + +msgid "Export IDN Table" +msgstr "" + +msgid "Published" +msgstr "" diff --git a/cp/lang/pt_PT/messages.po b/cp/lang/pt_PT/messages.po index df8f6f5..073460c 100644 --- a/cp/lang/pt_PT/messages.po +++ b/cp/lang/pt_PT/messages.po @@ -1661,4 +1661,43 @@ msgid "Choose Contact to Assign" msgstr "Escolha um contato para atribuir" msgid "Assign Contact" -msgstr "Atribuir contato" \ No newline at end of file +msgstr "Atribuir contato" + +msgid "Expiring Domains" +msgstr "Domínios a expirar" + +msgid "Expired Domains" +msgstr "Domínios expirados" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "O WebAuthn está atualmente desativado para esta instalação. Para ativar a autenticação WebAuthn, entre em contato com o administrador do registro." + +msgid "Security" +msgstr "Segurança" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "Se você fez login em vários dispositivos ou navegadores e deseja garantir a segurança da sua conta, pode sair de todas as outras sessões, exceto esta. Isso encerrará o acesso de qualquer outro dispositivo conectado." + +msgid "Log Out from All Devices" +msgstr "Sair de todos os dispositivos" + +msgid "Port 43 WHOIS Queries" +msgstr "Consultas WHOIS na porta 43" + +msgid "Web WHOIS Queries" +msgstr "Consultas WHOIS na web" + +msgid "Enable DNSSEC" +msgstr "Ativar DNSSEC" + +msgid "DNSSEC Mode" +msgstr "Modo DNSSEC" + +msgid "DNSSEC Details" +msgstr "Detalhes do DNSSEC" + +msgid "Export IDN Table" +msgstr "Exportar tabela IDN" + +msgid "Published" +msgstr "Publicado" diff --git a/cp/lang/uk_UA/messages.po b/cp/lang/uk_UA/messages.po index 9e23f2c..0bb2427 100644 --- a/cp/lang/uk_UA/messages.po +++ b/cp/lang/uk_UA/messages.po @@ -1661,4 +1661,43 @@ msgid "Choose Contact to Assign" msgstr "Виберіть контакт для призначення" msgid "Assign Contact" -msgstr "Призначити контакт" \ No newline at end of file +msgstr "Призначити контакт" + +msgid "Expiring Domains" +msgstr "Домени, що скоро закінчаться" + +msgid "Expired Domains" +msgstr "Домени, що закінчилися" + +msgid "WebAuthn is currently disabled for this installation. To enable WebAuthn authentication, please contact the registry administrator." +msgstr "WebAuthn наразі вимкнено для цієї інсталяції. Щоб увімкнути аутентифікацію WebAuthn, зверніться до адміністратора реєстру." + +msgid "Security" +msgstr "Безпека" + +msgid "If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices." +msgstr "Якщо ви увійшли на кількох пристроях або браузерах і хочете забезпечити безпеку свого облікового запису, ви можете вийти з усіх інших сесій, окрім цієї. Це завершить доступ з усіх інших увійдених пристроїв." + +msgid "Log Out from All Devices" +msgstr "Вийти з усіх пристроїв" + +msgid "Port 43 WHOIS Queries" +msgstr "WHOIS-запити на порту 43" + +msgid "Web WHOIS Queries" +msgstr "WHOIS-запити через веб" + +msgid "Enable DNSSEC" +msgstr "Увімкнути DNSSEC" + +msgid "DNSSEC Mode" +msgstr "Режим DNSSEC" + +msgid "DNSSEC Details" +msgstr "Деталі DNSSEC" + +msgid "Export IDN Table" +msgstr "Експортувати таблицю IDN" + +msgid "Published" +msgstr "Опубліковано" diff --git a/cp/resources/views/admin/dashboard/index.twig b/cp/resources/views/admin/dashboard/index.twig index 721f7d7..dc84a47 100644 --- a/cp/resources/views/admin/dashboard/index.twig +++ b/cp/resources/views/admin/dashboard/index.twig @@ -190,7 +190,7 @@ {% endif %} -
+

{{ __('Recent Domains') }}

@@ -219,7 +219,65 @@
-
+
+
+
+

{{ __('Expiring Domains') }}

+
+
+ + + + + + + + + {% if expiring_domains|length > 0 %} + {% for domain in expiring_domains %} + + + + + {% endfor %} + {% else %} + + {% endif %} + +
{{ __('Name') }}{{ __('Expiration Date') }}
{{ domain.name }}{{ domain.exdate }}
{{ __('No Data') }}
+
+
+
+
+
+
+

{{ __('Expired Domains') }}

+
+
+ + + + + + + + + {% if expired_domains|length > 0 %} + {% for domain in expired_domains %} + + + + + {% endfor %} + {% else %} + + {% endif %} + +
{{ __('Name') }}{{ __('Expiration Date') }}
{{ domain.name }}{{ domain.exdate }}
{{ __('No Data') }}
+
+
+
+

{{ __('Recent Support Tickets') }}

diff --git a/cp/resources/views/admin/profile/profile.twig b/cp/resources/views/admin/profile/profile.twig index 706da8f..da1f7f3 100644 --- a/cp/resources/views/admin/profile/profile.twig +++ b/cp/resources/views/admin/profile/profile.twig @@ -208,7 +208,7 @@

{{ __('Security') }}

-

{{ __('If you’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices.') }}

+

{{ __('If you\’ve logged in on multiple devices or browsers and want to ensure your account remains secure, you can log out from all other sessions except this one. This will end access from any other logged-in devices.') }}

{{ csrf.field | raw }}
-
Enable DNSSEC
+
{{ __('Enable DNSSEC') }}
-
DNSSEC Mode
+
{{ __('DNSSEC Mode') }}