本文整理汇总了PHP中system_hosts_generate函数的典型用法代码示例。如果您正苦于以下问题:PHP system_hosts_generate函数的具体用法?PHP system_hosts_generate怎么用?PHP system_hosts_generate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了system_hosts_generate函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: elseif
} elseif ($act == "newpool") {
$a_pools[] = $dhcpdconf;
} else {
$config['dhcpd'][$if] = $dhcpdconf;
}
write_config();
}
}
if (isset($_POST['submit']) || isset($_POST['apply'])) {
$retval = 0;
$retvaldhcp = 0;
$retvaldns = 0;
/* Stop DHCP so we can cleanup leases */
killbyname("dhcpd");
dhcp_clean_leases();
system_hosts_generate();
/* dnsmasq_configure calls dhcpd_configure */
/* no need to restart dhcpd twice */
if (isset($config['dnsmasq']['enable']) && isset($config['dnsmasq']['regdhcpstatic'])) {
$retvaldns = services_dnsmasq_configure();
if ($retvaldns == 0) {
clear_subsystem_dirty('hosts');
clear_subsystem_dirty('staticmaps');
}
} else {
if (isset($config['unbound']['enable']) && isset($config['unbound']['regdhcpstatic'])) {
$retvaldns = services_unbound_configure();
if ($retvaldns == 0) {
clear_subsystem_dirty('unbound');
}
} else {
开发者ID:karawan,项目名称:core,代码行数:31,代码来源:services_dhcp.php
示例2: mwexec
// Remove the route. Later calls will add the correct new route if needed.
if (is_ipaddrv4($olddnsservers[$dnscounter - 1])) {
mwexec("/sbin/route delete " . escapeshellarg($olddnsservers[$dnscounter - 1]));
} else {
if (is_ipaddrv6($olddnsservers[$dnscounter - 1])) {
mwexec("/sbin/route delete -inet6 " . escapeshellarg($olddnsservers[$dnscounter - 1]));
}
}
}
}
if ($changecount > 0) {
write_config($changedesc);
}
$retval = 0;
$retval = system_hostname_configure();
$retval |= system_hosts_generate();
$retval |= system_resolvconf_generate();
if (isset($config['dnsmasq']['enable'])) {
$retval |= services_dnsmasq_configure();
} elseif (isset($config['unbound']['enable'])) {
$retval |= services_unbound_configure();
}
$retval |= system_timezone_configure();
$retval |= system_ntp_configure();
if ($olddnsallowoverride != $config['system']['dnsallowoverride']) {
$retval |= send_event("service reload dns");
}
// Reload the filter - plugins might need to be run.
$retval |= filter_configure();
$savemsg = get_std_save_message($retval);
}
开发者ID:LFCavalcanti,项目名称:pfsense,代码行数:31,代码来源:system.php
注:本文中的system_hosts_generate函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论