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
|
|
|
|
|
|
|
switch ($service) {
|
|
|
|
|
|
|
|
case $prefixURL . "/ns":
|
|
|
|
$page['service'] = "Serveur de noms";
|
|
|
|
switch ($address) {
|
|
|
|
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":
|
|
|
|
$page['title'] = "Ajouter un enregistrement A ou AAAA";
|
|
|
|
break;
|
2021-01-22 20:58:46 +00:00
|
|
|
case "a":
|
|
|
|
$page['title'] = "Ajouter un enregistrement A";
|
|
|
|
break;
|
|
|
|
case "aaaa":
|
|
|
|
$page['title'] = "Ajouter un enregistrement AAAA";
|
|
|
|
break;
|
2021-02-12 14:32:48 +00:00
|
|
|
case "ns":
|
|
|
|
$page['title'] = "Ajouter un enregistrement NS";
|
|
|
|
break;
|
2021-01-22 20:58:46 +00:00
|
|
|
case "zone":
|
|
|
|
$page['title'] = "Ajouter une zone";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case $prefixURL . "/nic":
|
2021-02-12 14:32:48 +00:00
|
|
|
$page['service'] = "Registre";
|
2021-01-22 20:58:46 +00:00
|
|
|
switch ($address) {
|
|
|
|
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;
|
|
|
|
|
|
|
|
case $prefixURL . "/auth":
|
|
|
|
$page['service'] = "Authentification";
|
|
|
|
switch ($address) {
|
|
|
|
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;
|
|
|
|
|
|
|
|
case $prefixURL . "/ht":
|
|
|
|
$page['service'] = "Hypertexte";
|
|
|
|
switch ($address) {
|
|
|
|
case "mkdir":
|
|
|
|
$page['title'] = "Créer un dossier de site";
|
|
|
|
break;
|
|
|
|
case "onion":
|
|
|
|
$page['title'] = "Créer un accès en .onion";
|
|
|
|
break;
|
|
|
|
case "domain":
|
|
|
|
$page['title'] = "Ajouter un accès par domaine";
|
|
|
|
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;
|
|
|
|
|
|
|
|
case $prefixURL . "":
|
|
|
|
switch ($address) {
|
|
|
|
case "index":
|
|
|
|
$page['title'] = "Accueil";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
$page['service'] = "Erreur : Le service n'a pas été trouvé dans pages.inc.php";
|
|
|
|
}
|