46 unset($zone, $owner, $webip, $mailip, $empty, $type, $master); |
46 unset($zone, $owner, $webip, $mailip, $empty, $type, $master); |
47 } |
47 } |
48 } |
48 } |
49 } |
49 } |
50 |
50 |
51 echo " <h2>" . _('Add slave zone') . "</h2>\n"; |
51 if ( $zone_slave_add != "1" ) { |
|
52 error(ERR_PERM_ADD_ZONE_SLAVE); |
|
53 } else { |
|
54 echo " <h2>" . _('Add slave zone') . "</h2>\n"; |
52 |
55 |
53 if ( $zone_slave_add != "1" ) { |
|
54 echo " <p>" . _("You do not have the permission to add a new slave zone.") . "</p>\n"; |
|
55 } else { |
|
56 $users = show_users(); |
56 $users = show_users(); |
57 echo " <form method=\"post\" action=\"add_zone_slave.php\">\n"; |
57 echo " <form method=\"post\" action=\"add_zone_slave.php\">\n"; |
58 echo " <table>\n"; |
58 echo " <table>\n"; |
59 echo " <tr>\n"; |
59 echo " <tr>\n"; |
60 echo " <td class=\"n\">" . _('Zone name') . "</td>\n"; |
60 echo " <td class=\"n\">" . _('Zone name') . "</td>\n"; |
61 echo " <td class=\"n\">\n"; |
61 echo " <td class=\"n\">\n"; |
62 echo " <input type=\"text\" class=\"input\" name=\"domain\" value=\"" . $zone . "\">\n"; |
62 echo " <input type=\"text\" class=\"input\" name=\"domain\" value=\"" . $zone . "\">\n"; |
63 echo " </td>\n"; |
63 echo " </td>\n"; |
64 echo " </tr>\n"; |
64 echo " </tr>\n"; |
65 echo " <tr>\n"; |
65 echo " <tr>\n"; |
66 echo " <td class=\"n\">" . _('IP of master NS') . ":</td>\n"; |
66 echo " <td class=\"n\">" . _('IP address of master NS') . ":</td>\n"; |
67 echo " <td class=\"n\">\n"; |
67 echo " <td class=\"n\">\n"; |
68 echo " <input type=\"text\" class=\"input\" name=\"slave_master\" value=\"" . $master . "\">\n"; |
68 echo " <input type=\"text\" class=\"input\" name=\"slave_master\" value=\"" . $master . "\">\n"; |
69 echo " </td>\n"; |
69 echo " </td>\n"; |
70 echo " </tr>\n"; |
70 echo " </tr>\n"; |
71 echo " <tr>\n"; |
71 echo " <tr>\n"; |