diff --git a/admin/reg.php b/admin/reg.php
index 9041f25..cb92ca9 100644
--- a/admin/reg.php
+++ b/admin/reg.php
@@ -2,9 +2,8 @@
define("PREFIX", "/malaxe");
define("ROOT_PATH", "/var/www/niver" . PREFIX);
define("DB_PATH", ROOT_PATH . "/db/auth.db");
-
$suffixes = array(
- "atope.art.",
+ /* "atope.art.", */
"asso.atope.art.",
"org.atope.art.",
@@ -106,6 +105,7 @@ $suffixes = array(
);
foreach ($suffixes as $extension) {
+ /*
$db = new PDO('sqlite:' . DB_PATH);
$stmt = $db->prepare("INSERT INTO registry(domain, username, last_renewal) VALUES(:domain, :username, :last_renewal)");
@@ -116,7 +116,7 @@ foreach ($suffixes as $extension) {
$stmt->bindParam(':last_renewal', $time);
$stmt->execute();
- /*
+
echo $extension . "\n";
exec("cp /var/lib/knot/zones/template /var/lib/knot/zones/" . $extension . "zone");
exec("sed -i 's/maison.atope.art./" . $extension . "/g' /var/lib/knot/zones/" . $extension . "zone");
@@ -135,14 +135,14 @@ foreach ($suffixes as $extension) {
exec("knotc zone-set " . $extension . " " . $extension . " 86400 IN NS ns1.atope.art.");
exec("knotc zone-set " . $extension . " " . $extension . " 86400 IN NS ns6.gandi.net.");
exec("knotc zone-commit " . $extension);
-
+*/
unset($output);
exec("/usr/sbin/keymgr " . $extension . " ds", $output);
$dsRecord = preg_replace("/DS/", "86400 DS", $output[0]);
- exec("knotc zone-begin " . $extension);
- exec("knotc zone-set " . $extension . " " . $dsRecord);
- exec("knotc zone-commit " . $extension);
- */
+ exec("knotc zone-begin atope.art.");
+ exec("knotc zone-set atope.art. " . $dsRecord);
+ exec("knotc zone-commit atope.art.");
+
}
diff --git a/inc/pages.inc.php b/inc/pages.inc.php
index ff7c664..297f761 100644
--- a/inc/pages.inc.php
+++ b/inc/pages.inc.php
@@ -5,7 +5,7 @@ if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
switch (SERVICE) {
case "ns":
- $page['service'] = "Serveur de noms";
+ $page['service'] = "Serveurs de noms";
switch (PAGE) {
case "index":
$page['title'] = "Accueil";
@@ -14,16 +14,13 @@ switch (SERVICE) {
$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";
+ $page['title'] = "Enregistrements A ou AAAA";
break;
case "ns":
- $page['title'] = "Ajouter un enregistrement NS";
+ $page['title'] = "Enregistrement NS";
+ break;
+ case "txt":
+ $page['title'] = "Enregistrement TXT";
break;
case "zone":
$page['title'] = "Ajouter une zone";
diff --git a/ns/dnssec.php b/ns/dnssec.php
index e089269..40bf7bb 100644
--- a/ns/dnssec.php
+++ b/ns/dnssec.php
@@ -5,7 +5,7 @@
prepare('SELECT zone FROM zones WHERE username = ?');
@@ -18,7 +18,7 @@
$domain = $req->fetch()['zone'];
}
- ?>
+ ?>
diff --git a/ns/index.php b/ns/index.php
index b2d3f0a..1e11e2e 100644
--- a/ns/index.php
+++ b/ns/index.php
@@ -2,11 +2,29 @@