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"]))
- {
- ?>
-
echo _('Error'); ?>: echo ('There is no owner for this zone, please assign someone.'); ?>
-
- }
- $domain_type=get_domain_type($_GET['id']);
- if ($domain_type == "SLAVE" )
- {
- $slave_master=get_domain_slave_master($_GET['id']);
- if ($slave_master == "" )
- {
?>
- echo _('Type of this zone is "slave", but there is no IP address for it\'s master given.'); ?>
+ echo _('Error'); ?>: echo ('There is no owner for this zone, please assign someone.'); ?>
- }
- }
}
-
+if ($domain_type == "SLAVE" && $slave_master )
+{
+?>
+ echo _('Error'); ?>: echo _('Type of this zone is "slave", but there is no IP address for it\'s master given.'); ?>
+
+}
?>
echo _('Edit zone'); ?> " echo get_domain_name_from_id($_GET["id"]) ?>"
-
if (level(5))
{ ?>
@@ -120,10 +113,6 @@
// eo div meta-left ?>
-
-
- $domain_type=get_domain_type($_GET['id']);
-?>
// eo div meta-right ?>
- // eo div meta ?>
+ // eo div meta
+}
+else
+{
+?>
+ // eo div meta
+}
+?>