servnest/inc/pages.inc.php

108 lines
2.5 KiB
PHP
Raw Normal View History

2021-01-22 20:58:46 +00:00
<?php
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-01-22 20:58:46 +00:00
$page['service'] = "Serveur 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":
$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;
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;
2021-02-16 18:20:19 +00:00
case "nic":
$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":
$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":
$page['title'] = "Créer un Glue Record";
2021-01-22 20:58:46 +00:00
break;
case "ds":
$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;
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;
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";
}