add_zone_slave.php
changeset 110 455405c757e1
parent 82 c255196bc447
child 111 0a2342a64b83
--- a/add_zone_slave.php	Sat Mar 29 18:01:53 2008 +0000
+++ b/add_zone_slave.php	Sun Mar 30 09:20:38 2008 +0000
@@ -48,11 +48,11 @@
 	}
 }
 
-echo "     <h2>" . _('Add slave zone') . "</h2>\n"; 
+if ( $zone_slave_add != "1" ) {
+	error(ERR_PERM_ADD_ZONE_SLAVE);
+} else {
+	echo "     <h2>" . _('Add slave zone') . "</h2>\n"; 
 
-if ( $zone_slave_add != "1" ) {
-	echo "     <p>" . _("You do not have the permission to add a new slave zone.") . "</p>\n"; 
-} else {
 	$users = show_users();
 	echo "     <form method=\"post\" action=\"add_zone_slave.php\">\n";
 	echo "      <table>\n";
@@ -63,7 +63,7 @@
 	echo "        </td>\n";
 	echo "       </tr>\n";
 	echo "       <tr>\n";
-	echo "        <td class=\"n\">" . _('IP of master NS') . ":</td>\n";
+	echo "        <td class=\"n\">" . _('IP address of master NS') . ":</td>\n";
 	echo "        <td class=\"n\">\n";
 	echo "         <input type=\"text\" class=\"input\" name=\"slave_master\" value=\"" . $master . "\">\n";
 	echo "        </td>\n";