本文整理汇总了PHP中networking::BuildResolvConf方法的典型用法代码示例。如果您正苦于以下问题:PHP networking::BuildResolvConf方法的具体用法?PHP networking::BuildResolvConf怎么用?PHP networking::BuildResolvConf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类networking
的用法示例。
在下文中一共展示了networking::BuildResolvConf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: NicNameServerMove
function NicNameServerMove()
{
$index = $_GET["NicNameServerMove"];
$move = $_GET["move"];
$nic = new networking();
$newarray = array_move_element($nic->arrayNameServers, $nic->arrayNameServers[$index], $move);
$nic->BuildResolvConf();
}
示例2: save_nic
function save_nic()
{
$nic = trim($_GET["save_nic"]);
$IPADDR = trim($_GET["IPADDR"]);
$NETMASK = trim($_GET["NETMASK"]);
$GATEWAY = trim($_GET["GATEWAY"]);
$DNS_1 = $_GET["DNS_1"];
$DNS_2 = $_GET["DNS_2"];
$dhcp = trim($_GET["dhcp"]);
writelogs("save nic infos : {$nic};{$IPADDR};{$NETMASK};{$GATEWAY};{$dhcp}", __FUNCTION__, __FILE__);
$ip = new networking();
$ip->nameserver_add($DNS_1);
if (trim($DNS_2) != null) {
$ip->nameserver_add($DNS_2);
}
$ip->BuildResolvConf();
$sock = new sockets();
$sock->getFrameWork("cmd.php?SaveNic={$nic}&ip={$IPADDR}&net={$NETMASK}&gw={$GATEWAY}&dhcp={$dhcp}");
$tpl = new templates();
echo $tpl->_ENGINE_parse_body('{success}\\n{success_save_nic_infos}');
}