servnest/pages.php

213 lines
8.3 KiB
PHP
Raw Permalink Normal View History

2023-07-17 19:15:18 +00:00
<?php declare(strict_types=1);
2021-01-22 20:58:46 +00:00
define('PAGES', [
'index' => [
'title' => '<span aria-hidden="true">' . CONF['common']['service_emoji'] . ' </span>' . CONF['common']['service_name'],
],
'auth' => [
'index' => [
'title' => '<span aria-hidden="true">🔐 </span>' . _('Authentication'),
'description' => _('Manage account'),
],
'login' => [
'title' => _('Log in'),
'description' => _('Start a new navigation session with an existing account'),
'require-login' => false,
],
'logout' => [
'title' => _('Log out'),
'description' => _('End the current session and delete cookies and cache'),
],
'register' => [
'title' => _('Create account'),
'description' => _('Create a new account, and log in with it'),
'require-login' => false,
'tokens_instance_cost' => 1800,
],
'unregister' => [
'title' => _('Delete account'),
'description' => _('Erase all current account\'s data'),
],
'approval' => [
'title' => _('Switch to an approved account'),
'description' => _('Switch to an approved account using an approval key'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 300,
],
'password' => [
'title' => _('Change password'),
'description' => _('Change the character string used to authenticate yourself'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 300,
],
'username' => [
'title' => _('Change username'),
'description' => _('Change the name used to identify your account when logging in and displayed at the start of every page'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 300,
],
],
'reg' => [
'index' => [
2023-01-23 00:14:59 +00:00
'title' => '<span aria-hidden="true">🏷️ </span>' . sprintf(_('%s registry'), '<code>' . key(CONF['reg']['suffixes']) . '</code>'),
'description' => sprintf(_('Register and delegate a %s subdomain'), '<code>' . key(CONF['reg']['suffixes']) . '</code>'),
],
'register' => [
'title' => _('Register domain'),
2023-01-23 00:14:59 +00:00
'description' => sprintf(_('Get a %s subdomain'), '<code>' . key(CONF['reg']['suffixes']) . '</code>'),
2022-09-16 22:49:07 +00:00
'tokens_account_cost' => 3600,
],
'unregister' => [
'title' => _('Unregister domain'),
'description' => _('Delete all data related to a domain and make it available to the public again'),
],
'print' => [
'title' => _('Display domain records'),
'description' => _('Print every record related to a domain and served by the registry'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 60,
],
2023-07-30 23:13:06 +00:00
'edit' => [
'title' => _('Edit records'),
'description' => _('Set registry records to delegate a domain to chosen name servers'),
'tokens_account_cost' => 900,
],
'ns' => [
'title' => sprintf(_('%s records'), '<abbr title="Name Server">NS</abbr>'),
2023-01-23 00:14:59 +00:00
'description' => sprintf(_('Indicate the name servers of a %s subdomain'), '<code>' . key(CONF['reg']['suffixes']) . '</code>'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 300,
],
'ds' => [
'title' => sprintf(_('%s records'), '<abbr title="Delegation Signer">DS</abbr>'),
'description' => _('Delegate <abbr title="Domain Name System Security Extensions">DNSSEC</abbr> trust'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 300,
],
2022-12-13 15:52:10 +00:00
'transfer' => [
'title' => _('Receive a domain transfer'),
'description' => _('Transfer a domain owned by another account to the current account'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 300,
2022-12-13 15:52:10 +00:00
],
'glue' => [
'title' => _('Glue records'),
'description' => _('Advanced: store the IP address of a name server whose domain is inside the domain it serves'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 300,
],
],
'ns' => [
'index' => [
'title' => '<span aria-hidden="true">📖 </span>' . _('Name servers'),
'description' => _('Host and manage domain\'s records'),
],
'zone-add' => [
'title' => _('Add zone'),
'description' => sprintf(_('The zone will be managed by %s name servers'), CONF['common']['service_name']),
2022-09-16 22:49:07 +00:00
'tokens_account_cost' => 1800,
],
'zone-del' => [
'title' => _('Delete zone'),
'description' => _('Erase all zone data'),
],
'print' => [
'title' => _('Display zone'),
'description' => _('Print zonefile content'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 60,
],
'edit' => [
'title' => _('Edit zone'),
'description' => _('Change zonefile content'),
'tokens_account_cost' => 300,
],
'ip' => [
'title' => _('AAAA and A records'),
'description' => _('Store domain\'s IP address'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'ns' => [
'title' => sprintf(_('%s records'), '<abbr title="Name Server">NS</abbr>'),
'description' => _('Store zone\'s name server'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'txt' => [
'title' => sprintf(_('%s records'), '<abbr title="TeXT">TXT</abbr>'),
'description' => _('Associate text to domain'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'caa' => [
'title' => sprintf(_('%s records'), '<abbr title="Certification Authority Authorization">CAA</abbr>'),
'description' => _('Limit the certificate authorities allowed to certify the domain'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'srv' => [
'title' => sprintf(_('%s records'), '<abbr title="SeRVice">SRV</abbr>'),
'description' => _('Store the location of a domain\'s service'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'mx' => [
'title' => sprintf(_('%s records'), '<abbr title="Mail eXchanger">MX</abbr>'),
'description' => _('Store the email server\'s address'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'sshfp' => [
'title' => sprintf(_('%s records'), '<abbr title="Secure SHell FingerPrint">SSHFP</abbr>'),
'description' => _('Store <abbr title="Secure SHell">SSH</abbr> public keys fingerprints'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'tlsa' => [
'title' => sprintf(_('%s records'), '<abbr title="Transport Layer Security Association">TLSA</abbr>'),
'description' => _('Setup <abbr title="DNS-based Authentication of Named Entities">DANE</abbr> by publishing the <abbr title="Transport Layer Security">TLS</abbr> certificate fingerprint'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'cname' => [
'title' => sprintf(_('%s records'), '<abbr title="Canonical NAME">CNAME</abbr>'),
'description' => _('Define a domain as an alias of another'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'dname' => [
'title' => sprintf(_('%s records'), '<abbr title="Delegation NAME">DNAME</abbr>'),
'description' => _('Define all subdomains of a domain as aliases of subdomains of another domain'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
'loc' => [
'title' => sprintf(_('%s records'), '<abbr title="LOCation">LOC</abbr>'),
'description' => _('Store geographic coordinates'),
2023-04-28 13:39:05 +00:00
'tokens_account_cost' => 120,
],
2023-06-24 14:54:36 +00:00
'sync' => [
'title' => sprintf(_('Synchronized records')),
2023-06-26 02:13:52 +00:00
'description' => _('Regularly fetch distant records and update them to a local zone'),
2023-06-24 14:54:36 +00:00
'tokens_account_cost' => 900,
],
],
'ht' => [
'index' => [
'title' => '<span aria-hidden="true">🕸️ </span>' . _('Web'),
'description' => _('Upload a static website into an <abbr title="SSH File Transfer Protocol">SFTP</abbr> space'),
],
'add-subpath' => [
'title' => sprintf(_('%s subpath access'), '<code>' . CONF['ht']['subpath_domain'] . '/</code>'),
'description' => sprintf(_('Its URL will look like %s'), '<code>https://' . CONF['ht']['subpath_domain'] . '/<em>' . _('mysite') . '</em>/</code>'),
'tokens_account_cost' => 900,
],
'add-subdomain' => [
'title' => sprintf(_('%s subdomain access'), '<code>.' . CONF['ht']['subdomain_domain'] . '</code>'),
'description' => sprintf(_('Its URL will look like %s'), '<code>https://<em>' . _('mysite') . '</em>.' . CONF['ht']['subpath_domain'] . '/</code>'),
'tokens_account_cost' => 1800,
],
'add-dns' => [
'title' => _('Dedicated domain with Let\'s Encrypt certificate access'),
'description' => sprintf(_('Its URL will look like %s'), '<code>https://<em>' . _('mysite') . '</em>.' . PLACEHOLDER_DOMAIN . '/</code>'),
2022-09-16 22:49:07 +00:00
'tokens_account_cost' => 3600,
],
'add-onion' => [
'title' => _('Onion service access'),
'description' => sprintf(_('Its URL will look like %s, and work only through the Tor network'), '<code>http://nrdselxjgryq5fwek2xh3pxg4b26z26eyzlbs4y5lownk465jhaamayd.onion/</code>'),
2022-11-08 15:30:20 +00:00
'tokens_account_cost' => 1800,
],
'del' => [
'title' => _('Delete access'),
'description' => _('Delete an existing HTTP access from a subdirectory of the SFTP space'),
2022-11-08 15:30:20 +00:00
],
'keys' => [
'title' => _('Manage SSH keys'),
'description' => _('Choose what SSH key can edit what directory'),
'tokens_account_cost' => 300,
],
],
]);