2021-01-22 20:58:46 +00:00
|
|
|
<?php
|
2021-02-08 11:57:32 +00:00
|
|
|
if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
|
|
|
|
exit("This file is meant to be included.");
|
2021-01-22 20:58:46 +00:00
|
|
|
|
2021-02-16 18:20:19 +00:00
|
|
|
switch (SERVICE) {
|
2021-01-22 20:58:46 +00:00
|
|
|
|
2021-02-16 18:20:19 +00:00
|
|
|
case "ns":
|
2021-02-24 17:39:42 +00:00
|
|
|
$page['service'] = "Serveurs de noms";
|
2021-02-16 18:20:19 +00:00
|
|
|
switch (PAGE) {
|
2021-01-22 20:58:46 +00:00
|
|
|
case "index":
|
|
|
|
$page['title'] = "Accueil";
|
|
|
|
break;
|
2021-01-23 16:26:46 +00:00
|
|
|
case "dnssec":
|
2021-02-12 14:32:48 +00:00
|
|
|
$page['title'] = "Obtenir les enregistrements DS";
|
2021-01-23 16:26:46 +00:00
|
|
|
break;
|
|
|
|
case "ip":
|
2021-02-24 17:39:42 +00:00
|
|
|
$page['title'] = "Enregistrements A ou AAAA";
|
2021-01-22 20:58:46 +00:00
|
|
|
break;
|
2021-02-12 14:32:48 +00:00
|
|
|
case "ns":
|
2021-02-24 17:39:42 +00:00
|
|
|
$page['title'] = "Enregistrement NS";
|
|
|
|
break;
|
|
|
|
case "txt":
|
|
|
|
$page['title'] = "Enregistrement TXT";
|
2021-02-12 14:32:48 +00:00
|
|
|
break;
|
2021-01-22 20:58:46 +00:00
|
|
|
case "zone":
|
|
|
|
$page['title'] = "Ajouter une zone";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2021-02-18 21:40:16 +00:00
|
|
|
case "reg":
|
2021-02-12 14:32:48 +00:00
|
|
|
$page['service'] = "Registre";
|
2021-02-16 18:20:19 +00:00
|
|
|
switch (PAGE) {
|
2021-01-22 20:58:46 +00:00
|
|
|
case "index":
|
|
|
|
$page['title'] = "Accueil";
|
|
|
|
break;
|
|
|
|
case "ns":
|
2021-02-12 14:32:48 +00:00
|
|
|
$page['title'] = "Ajouter un enregistrement NS";
|
2021-01-22 20:58:46 +00:00
|
|
|
break;
|
2021-01-25 12:39:31 +00:00
|
|
|
case "register":
|
|
|
|
$page['title'] = "Enregistrer un nouveau nom de domaine";
|
|
|
|
break;
|
2021-01-22 20:58:46 +00:00
|
|
|
case "glue":
|
2021-02-12 14:32:48 +00:00
|
|
|
$page['title'] = "Créer un Glue Record";
|
2021-01-22 20:58:46 +00:00
|
|
|
break;
|
|
|
|
case "ds":
|
2021-02-12 14:32:48 +00:00
|
|
|
$page['title'] = "Ajouter un enregistrement DS";
|
2021-01-22 20:58:46 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2021-02-16 18:20:19 +00:00
|
|
|
case "auth":
|
2021-01-22 20:58:46 +00:00
|
|
|
$page['service'] = "Authentification";
|
2021-02-16 18:20:19 +00:00
|
|
|
switch (PAGE) {
|
2021-01-22 20:58:46 +00:00
|
|
|
case "index":
|
|
|
|
$page['title'] = "Accueil";
|
|
|
|
break;
|
|
|
|
case "login":
|
|
|
|
$page['title'] = "Se connecter";
|
|
|
|
break;
|
|
|
|
case "register":
|
|
|
|
$page['title'] = "Créer un compte";
|
|
|
|
break;
|
2021-02-12 14:32:48 +00:00
|
|
|
case "password":
|
|
|
|
$page['title'] = "Changer le mot de passe";
|
|
|
|
break;
|
2021-01-22 20:58:46 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2021-02-16 18:20:19 +00:00
|
|
|
case "ht":
|
2021-01-22 20:58:46 +00:00
|
|
|
$page['service'] = "Hypertexte";
|
2021-02-16 18:20:19 +00:00
|
|
|
switch (PAGE) {
|
2021-01-22 20:58:46 +00:00
|
|
|
case "mkdir":
|
|
|
|
$page['title'] = "Créer un dossier de site";
|
|
|
|
break;
|
2021-02-16 18:20:19 +00:00
|
|
|
case "http-onion":
|
|
|
|
$page['title'] = "Accès HTTP en .onion";
|
2021-01-22 20:58:46 +00:00
|
|
|
break;
|
2021-02-16 18:20:19 +00:00
|
|
|
case "https-domain":
|
|
|
|
$page['title'] = "Accès HTTPS par domaine";
|
2021-01-22 20:58:46 +00:00
|
|
|
break;
|
|
|
|
case "le":
|
|
|
|
$page['title'] = "Installer un certificat Let's Encrypt";
|
|
|
|
break;
|
|
|
|
case "index":
|
|
|
|
$page['title'] = "Accueil";
|
|
|
|
break;
|
2021-02-12 14:32:48 +00:00
|
|
|
case "sftp":
|
|
|
|
$page['title'] = "Gérer l'accès SFTP";
|
2021-01-22 20:58:46 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2021-02-16 18:20:19 +00:00
|
|
|
case "":
|
|
|
|
switch (PAGE) {
|
2021-01-22 20:58:46 +00:00
|
|
|
case "index":
|
|
|
|
$page['title'] = "Accueil";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
$page['service'] = "Erreur : Le service n'a pas été trouvé dans pages.inc.php";
|
|
|
|
}
|