Esempio n. 1
0
         $server = "";
     }
 }
 if (0) {
     if (!empty($zonearea)) {
         if (strcmp($zonetypenew, 'P')) {
             $content .= sprintf($html->string_warning, $l['str_no_zonearea']);
             $zonearea = "";
         }
     }
 }
 if ($config->usergroups) {
     // if usergroups, zone is owned by
     // group and not individuals
     if ($usergrouprights != 'R') {
         $newzonereturn = $newzone->zoneCreate($zonenamenew, $zonetypenew, $template, $server, $group->groupid, $zonearea);
         // logs
         if (!$newzone->error) {
             if ($config->userlogs) {
                 $userlogs->addLogs($newzone->zoneid, sprintf($l['str_creation_of_x_x'], $zonenamenew, $zonetypenew));
                 if ($userlogs->error) {
                     $content .= sprintf($html->string_error, sprintf($l['str_logging_action_x'], $userlogs->error));
                 }
             }
         }
     } else {
         // user is read only
         $content .= sprintf($html->string_error, $l['str_not_allowed_by_group_admin_to_create_write_zones']);
         $localerror = 1;
     }
 } else {