diff --git a/cp/app/Controllers/SystemController.php b/cp/app/Controllers/SystemController.php index de4d8e0..8597fbd 100644 --- a/cp/app/Controllers/SystemController.php +++ b/cp/app/Controllers/SystemController.php @@ -28,5 +28,16 @@ class SystemController extends Controller return view($response,'admin/system/registry.twig', [ 'tlds' => $tlds, ]); - } + } + + public function manageTlds(Request $request, Response $response) + { + if ($_SESSION["auth_roles"] != 0) { + return $response->withHeader('Location', '/dashboard')->withStatus(302); + } + + $db = $this->container->get('db'); + + return view($response,'admin/system/manageTlds.twig'); + } } \ No newline at end of file diff --git a/cp/resources/views/admin/system/manageTlds.twig b/cp/resources/views/admin/system/manageTlds.twig new file mode 100644 index 0000000..e63e9d7 --- /dev/null +++ b/cp/resources/views/admin/system/manageTlds.twig @@ -0,0 +1,95 @@ +{% extends "layouts/app.twig" %} + +{% block title %}{{ __('TLD Management') }}{% endblock %} + +{% block content %} +
+ + + +
+
+
+ {% if subject is defined %} + + {% endif %} +
+
+
+
+ + + + +
+
+ Search: +
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + +{% endblock %} \ No newline at end of file diff --git a/cp/resources/views/admin/system/registry.twig b/cp/resources/views/admin/system/registry.twig index f6b547c..a63145a 100644 --- a/cp/resources/views/admin/system/registry.twig +++ b/cp/resources/views/admin/system/registry.twig @@ -17,6 +17,23 @@ {{ __('Registry Configuration') }} + +
+
+ + + {{ __('Manage Reserved Names') }} + + + + + {{ __('Create New TLD') }} + + + + +
+
@@ -25,142 +42,30 @@
-
- -
-
-
-
General Settings
-
-
- -
- - -
The official name of the organization operating the registry.
-
- - -
- - -
The email address for general inquiries to the registry.
-
+
+
+
+ + +
The official name of the organization operating the registry.
+
+
+ + +
The email address for general inquiries to the registry.
+
- - -
+ +
-
- -
- - -
Choose the primary method of authentication for accessing the registry system.
-
- - -
- - -
A unique identifier for the registry which will be appended to each object handle.
-
-
-
-
-
-
-
TLD Settings
- Add New TLD -
- {% if tlds %} - {% for tld in tlds %} -
-
-
Number of Domains: {{ tld.domain_count }}
-
{{ tld.tld }}
-
    - {% if tld.secure == 1 %} -
  • - - Signed with DNSSEC -
  • - {% else %} -
  • - - Not signed with DNSSEC -
  • - {% endif %} -
  • - - Supports Standard Latin Characters Only -
  • -
- -
-
- {% endfor %} - {% endif %} -
-
-
DNS Settings
-
- -
- - -
The address of the primary DNS server for the registry.
-
-
- - -
The address of the secondary DNS server for redundancy.
-
- -
- - -
The email address to be used in the SOA (Start of Authority) record for DNS zones.
-
- - - -
-
-
-

Automation tab

-
Donec ac vitae diam amet vel leo egestas consequat rhoncus in luctus amet, facilisi sit mauris accumsan nibh habitant senectus
-
+
+
+ + +
A unique identifier for the registry which will be appended to each object handle.
+
+
diff --git a/cp/resources/views/layouts/app.twig b/cp/resources/views/layouts/app.twig index 197c41b..ec22b2b 100644 --- a/cp/resources/views/layouts/app.twig +++ b/cp/resources/views/layouts/app.twig @@ -6,7 +6,7 @@ {% block title %}{% endblock %} | Namingo - {% if route_is('domains') or route_is('contacts') or route_is('hosts') or route_is('epphistory') or route_is('registrars') or route_is('transactions') or route_is('overview') or route_is('reports') or route_is('transfers') or route_is('users') or route_is('support') or route_is('poll') or route_is('log') or route_is('invoices') %} + {% if route_is('domains') or route_is('contacts') or route_is('hosts') or route_is('epphistory') or route_is('registrars') or route_is('transactions') or route_is('overview') or route_is('reports') or route_is('transfers') or route_is('users') or route_is('support') or route_is('poll') or route_is('log') or route_is('invoices') or route_is('registry/tlds') %} {% include 'partials/css-tables.twig' %} {% else %} {% include 'partials/css.twig' %} @@ -189,7 +189,7 @@
-
  • +
  • {{ __('Configuration') }} + + {{ __('TLDs') }} + {{ __('Reports') }} @@ -382,6 +385,8 @@ {% include 'partials/js-log.twig' %} {% elseif route_is('invoices') %} {% include 'partials/js-invoices.twig' %} +{% elseif route_is('registry/tlds') %} + {% include 'partials/js-tlds.twig' %} {% else %} {% include 'partials/js.twig' %} {% endif %} diff --git a/cp/resources/views/partials/js-tlds.twig b/cp/resources/views/partials/js-tlds.twig new file mode 100644 index 0000000..77c1cb4 --- /dev/null +++ b/cp/resources/views/partials/js-tlds.twig @@ -0,0 +1,90 @@ + + + + + + \ No newline at end of file diff --git a/cp/routes/web.php b/cp/routes/web.php index 4d3b7cc..462ee1d 100644 --- a/cp/routes/web.php +++ b/cp/routes/web.php @@ -89,7 +89,11 @@ $app->group('', function ($route) { $route->get('/overview', FinancialsController::class .':overview')->setName('overview'); $route->get('/registry', SystemController::class .':registry')->setName('registry'); - + $route->map(['GET', 'POST'], '/registry/tld/create', SystemController::class .':createTld')->setName('createTld'); + $route->map(['GET', 'POST'], '/registry/tld/{tld}', SystemController::class . ':viewTld')->setName('viewTld'); + $route->get('/registry/tlds', SystemController::class .':manageTlds')->setName('manageTlds'); + $route->map(['GET', 'POST'], '/registry/reserved', SystemController::class .':manageReserved')->setName('manageReserved'); + $route->get('/support', SupportController::class .':view')->setName('ticketview'); $route->map(['GET', 'POST'], '/support/new', SupportController::class .':newticket')->setName('newticket'); $route->get('/support/docs', SupportController::class .':docs')->setName('docs');