本文整理匯總了PHP中Zone::zoneCreate方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zone::zoneCreate方法的具體用法?PHP Zone::zoneCreate怎麽用?PHP Zone::zoneCreate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zone
的用法示例。
在下文中一共展示了Zone::zoneCreate方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: sprintf
$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 {