# HG changeset patch # User rejo # Date 1185228319 0 # Node ID cf767482333adc75be2492ff1e6de1bae5892b8a # Parent b785e54690ce78c73f3373d9fcb799e596b8b368 [feladat @ 85] The type of zone wasn't show to users with access level 1. If a user with access level 1 did have access to a slave zone the user did not see the IP of the master nameserver of that zone. Now the user will the IP address (readonly and only if one is set). Bugfix. If no master IP for a slave zone is given, a warning is shown regardless of the userlevel. Bugfix. Both the "add record" and "edit record" buttons in the "edit zone" screen is no longer available for users with level 1 for domains of type "slave". Bug report by Antonio Prado. Some PHP and HTML cleanup (removing of empty tags and unnecessary repeatings of calls to a single function). diff -r b785e54690ce -r cf767482333a edit.php --- a/edit.php Tue Jul 10 21:24:06 2007 +0000 +++ b/edit.php Mon Jul 23 22:05:19 2007 +0000 @@ -30,32 +30,25 @@ } $info = get_domain_info_from_id($_GET["id"]); include_once("inc/header.inc.php"); + +$domain_type=get_domain_type($_GET['id']); +if ($domain_type == "SLAVE" ) { $slave_master=get_domain_slave_master($_GET['id']); }; -if (level(5)) +if(!isset($info["ownerid"]) && $domain_type != "SLAVE") { - if(!isset($info["ownerid"])) - { - ?> -
:
- -
+
:
+
:
+

""

@@ -120,10 +113,6 @@
- -
@@ -177,11 +166,35 @@
- + +
+
+ + + + + + + + + +
+
+
- ">[ <? echo _('Edit record'); ?> ] - ">[ <? echo _('Delete record'); ?> ] + ">[ <? echo _('Edit record'); ?> ] + ">[ <? echo _('Delete record'); ?> ] - +