diff --git a/.gitattributes b/.gitattributes
index 9ea9afb4..4e2bcc49 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -76,8 +76,7 @@ bureau/admin/adm_panel.php -text
bureau/admin/adm_passpolicy.php -text
bureau/admin/adm_quotadoedit.php -text
bureau/admin/adm_quotaedit.php -text
-bureau/admin/adm_slaveaccount.php -text
-bureau/admin/adm_slaveip.php -text
+bureau/admin/adm_slavedns.php -text
bureau/admin/adm_tld.php -text
bureau/admin/adm_tldadd.php -text
bureau/admin/adm_tlddoadd.php -text
diff --git a/bureau/admin/adm_slaveaccount.php b/bureau/admin/adm_slaveaccount.php
deleted file mode 100644
index 22f23713..00000000
--- a/bureau/admin/adm_slaveaccount.php
+++ /dev/null
@@ -1,115 +0,0 @@
-enabled) {
- __("This page is restricted to authorized staff");
- exit();
-}
-
-$fields = array (
- "delaccount" => array ("request", "string", ""),
-
- "newlogin" => array ("request", "string", ""),
- "newpass" => array ("request", "string", ""),
-);
-getFields($fields);
-
-if ($delaccount) {
- // Delete an account
- if ($dom->del_slave_account($delaccount)) {
- $error=_("The requested account has been deleted. It is now denied.");
- }
-}
-if ($newlogin) {
- // Add an account
- if ($dom->add_slave_account($newlogin,$newpass)) {
- $error=_("The requested account address has been created. It is now allowed.");
- unset($newlogin); unset($newpass);
- }
-}
-
-include_once ("head.php");
-
-?>
-
-
-
-$error";
- }
-
-$c=$dom->enum_slave_account();
-
-if (is_array($c)) {
-
-?>
-
-
-
-
-
-
-
-
-
diff --git a/bureau/admin/adm_slavedns.php b/bureau/admin/adm_slavedns.php
new file mode 100644
index 00000000..00a1b437
--- /dev/null
+++ b/bureau/admin/adm_slavedns.php
@@ -0,0 +1,176 @@
+enabled) {
+ __("This page is restricted to authorized staff");
+ exit();
+}
+
+$fields = array (
+ "delaccount" => array ("request", "string", ""),
+ "newlogin" => array ("request", "string", ""),
+ "newpass" => array ("request", "string", ""),
+
+ "delip" => array ("request", "string", ""),
+ "newip" => array ("request", "string", ""),
+ "newclass" => array ("request", "string", "32"),
+ );
+getFields($fields);
+
+if ($delaccount) {
+ // Delete an account
+ if ($dom->del_slave_account($delaccount)) {
+ $error=_("The requested account has been deleted. It is now denied.");
+ }
+}
+if ($newlogin) {
+ // Add an account
+ if ($dom->add_slave_account($newlogin,$newpass)) {
+ $error=_("The requested account address has been created. It is now allowed.");
+ unset($newlogin); unset($newpass);
+ }
+}
+
+if ($delip) {
+ // Delete an ip address/class
+ if ($dom->del_slave_ip($delip)) {
+ $error=_("The requested ip address has been deleted. It will be denied in one hour.");
+ }
+}
+if ($newip) {
+ // Add an ip address/class
+ if ($dom->add_slave_ip($newip,$newclass)) {
+ $error=_("The requested ip address has been added to the list. It will be allowed in one hour.");
+ unset($newip); unset($newclass);
+ }
+}
+
+include_once("head.php");
+
+if (!empty($error)) {
+ echo "$error
";
+}
+
+?>
+
+
+enum_slave_ip();
+
+if (is_array($c)) { ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+enum_slave_account();
+
+if (is_array($c)) { ?>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bureau/admin/adm_slaveip.php b/bureau/admin/adm_slaveip.php
deleted file mode 100644
index 6356ad08..00000000
--- a/bureau/admin/adm_slaveip.php
+++ /dev/null
@@ -1,112 +0,0 @@
-enabled) {
- __("This page is restricted to authorized staff");
- exit();
-}
-
-$fields = array (
- "delip" => array ("request", "string", ""),
- "newip" => array ("request", "string", ""),
- "newclass" => array ("request", "string", "32"),
-);
-getFields($fields);
-
-if ($delip) {
- // Delete an ip address/class
- if ($dom->del_slave_ip($delip)) {
- $error=_("The requested ip address has been deleted. It will be denied in one hour.");
- }
-}
-if ($newip) {
- // Add an ip address/class
- if ($dom->add_slave_ip($newip,$newclass)) {
- $error=_("The requested ip address has been added to the list. It will be allowed in one hour.");
- unset($newip); unset($newclass);
- }
-}
-
-include_once("head.php");
-
-?>
-
-
-
-$error";
- }
-
-$c=$dom->enum_slave_ip();
-
-if (is_array($c)) {
-
-?>
-
-
-
-
-
-
-
-
-
-
-