servnest/pages.inc.php
2021-02-16 19:20:19 +01:00

107 lines
2.5 KiB
PHP

<?php
if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
exit("This file is meant to be included.");
switch (SERVICE) {
case "ns":
$page['service'] = "Serveur de noms";
switch (PAGE) {
case "index":
$page['title'] = "Accueil";
break;
case "dnssec":
$page['title'] = "Obtenir les enregistrements DS";
break;
case "ip":
$page['title'] = "Ajouter un enregistrement A ou AAAA";
break;
case "a":
$page['title'] = "Ajouter un enregistrement A";
break;
case "aaaa":
$page['title'] = "Ajouter un enregistrement AAAA";
break;
case "ns":
$page['title'] = "Ajouter un enregistrement NS";
break;
case "zone":
$page['title'] = "Ajouter une zone";
break;
}
break;
case "nic":
$page['service'] = "Registre";
switch (PAGE) {
case "index":
$page['title'] = "Accueil";
break;
case "ns":
$page['title'] = "Ajouter un enregistrement NS";
break;
case "register":
$page['title'] = "Enregistrer un nouveau nom de domaine";
break;
case "glue":
$page['title'] = "Créer un Glue Record";
break;
case "ds":
$page['title'] = "Ajouter un enregistrement DS";
break;
}
break;
case "auth":
$page['service'] = "Authentification";
switch (PAGE) {
case "index":
$page['title'] = "Accueil";
break;
case "login":
$page['title'] = "Se connecter";
break;
case "register":
$page['title'] = "Créer un compte";
break;
case "password":
$page['title'] = "Changer le mot de passe";
break;
}
break;
case "ht":
$page['service'] = "Hypertexte";
switch (PAGE) {
case "mkdir":
$page['title'] = "Créer un dossier de site";
break;
case "http-onion":
$page['title'] = "Accès HTTP en .onion";
break;
case "https-domain":
$page['title'] = "Accès HTTPS par domaine";
break;
case "le":
$page['title'] = "Installer un certificat Let's Encrypt";
break;
case "index":
$page['title'] = "Accueil";
break;
case "sftp":
$page['title'] = "Gérer l'accès SFTP";
break;
}
break;
case "":
switch (PAGE) {
case "index":
$page['title'] = "Accueil";
break;
}
break;
default:
$page['service'] = "Erreur : Le service n'a pas été trouvé dans pages.inc.php";
}