if (!$localerror) { if (!checkZone($zonenamenew)) { $localerror = 1; $content .= sprintf($html->string_error, sprintf($l['str_bad_zone_name_x'], $zonenamenew)) . '<br>'; if ($zonenamenew != idn_to_ascii($zonenamenew)) { $content .= sprintf($html->fontred, sprintf($l['str_bad_zone_name_idn_x'], idn_to_ascii($zonenamenew))) . '<br>'; } } else { if (preg_match("/^(.*)\\.\$/", $zonenamenew, $newzonename)) { $zonenamenew = $newzonename[1]; } $newzone = new Zone('', ''); if ($config->usergroups) { // if usergroups, zone is owned by // group and not individuals $list = $newzone->subExists($zonenamenew, $group->groupid); } else { $list = $newzone->subExists($zonenamenew, $user->userid); } if ($list == 0) { $localerror = 1; $content .= sprintf($html->string_error, $newzone->error) . '<br>'; } else { if (count($list) != 0) { if (count($list) == 1) { $toprint = $l['str_zone_linked_exists_and_not_manageable'] . '<br> '; } else { $toprint = $l['str_zones_linked_exist_and_not_manageable'] . '<br> '; } if (count($list) < 10) { $toprint .= implode("<br>", $list) . '<br>';