本文整理汇总了PHP中return_gateway_groups_array函数的典型用法代码示例。如果您正苦于以下问题:PHP return_gateway_groups_array函数的具体用法?PHP return_gateway_groups_array怎么用?PHP return_gateway_groups_array使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了return_gateway_groups_array函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
$pconfig['dst'] = "any";
}
/* Allow the FloatingRules to work */
$if = $pconfig['interface'];
if (isset($_GET['dup']) && is_numericint($_GET['dup'])) {
unset($id);
}
read_altq_config();
/* XXX: */
$qlist =& get_unique_queue_list();
read_dummynet_config();
/* XXX: */
$dnqlist =& get_unique_dnqueue_list();
read_layer7_config();
$l7clist =& get_l7_unique_list();
$a_gatewaygroups = return_gateway_groups_array();
if ($_POST) {
unset($input_errors);
if (isset($a_filter[$id]['associated-rule-id'])) {
$_POST['proto'] = $pconfig['proto'];
if ($pconfig['proto'] == "icmp") {
$_POST['icmptype'] = $pconfig['icmptype'];
}
}
if ($_POST['ipprotocol'] != "" && $_POST['gateway'] != "") {
if (is_array($config['gateways']['gateway_group'])) {
foreach ($config['gateways']['gateway_group'] as $gw_group) {
if ($gw_group['name'] == $_POST['gateway']) {
$family = $a_gatewaygroups[$_POST['gateway']]['ipprotocol'];
if ($_POST['ipprotocol'] == $family) {
continue;
示例2: get_configured_interface_with_descr
?>
'">
<td class="listlr">
<?php
$iflist = get_configured_interface_with_descr();
foreach ($iflist as $if => $ifdesc) {
if ($dyndns['interface'] == $if) {
if (!isset($dyndns['enable'])) {
echo "<span class=\"gray\">{$ifdesc}</span>";
} else {
echo "{$ifdesc}";
}
break;
}
}
$groupslist = return_gateway_groups_array();
foreach ($groupslist as $if => $group) {
if ($dyndns['interface'] == $if) {
if (!isset($dyndns['enable'])) {
echo "<span class=\"gray\">{$if}</span>";
} else {
echo "{$if}";
}
break;
}
}
?>
</td>
<td class="listr">
<?php
$types = explode(",", DYNDNS_PROVIDER_DESCRIPTIONS);
示例3: build_if_list
function build_if_list()
{
$list = array();
$iflist = get_configured_interface_with_descr();
foreach ($iflist as $if => $ifdesc) {
$list[$if] = $ifdesc;
}
unset($iflist);
$grouplist = return_gateway_groups_array();
foreach ($grouplist as $name => $group) {
$list[$name] = 'GW Group ' . $name;
}
unset($grouplist);
return $list;
}
示例4: build_if_list
function build_if_list()
{
$list = array();
$interfaces = get_configured_interface_with_descr();
$carplist = get_configured_carp_interface_list();
foreach ($carplist as $cif => $carpip) {
$interfaces[$cif . '|' . $carpip] = $carpip . " (" . get_vip_descr($carpip) . ")";
}
$aliaslist = get_configured_ip_aliases_list();
foreach ($aliaslist as $aliasip => $aliasif) {
$interfaces[$aliasif . '|' . $aliasip] = $aliasip . " (" . get_vip_descr($aliasip) . ")";
}
$grouplist = return_gateway_groups_array();
foreach ($grouplist as $name => $group) {
if ($group['ipprotocol'] != inet) {
continue;
}
if ($group[0]['vip'] != "") {
$vipif = $group[0]['vip'];
} else {
$vipif = $group[0]['int'];
}
$interfaces[$name] = "GW Group {$name}";
}
$interfaces['lo0'] = "Localhost";
$interfaces['any'] = "any";
foreach ($interfaces as $iface => $ifacename) {
$list[$iface] = $ifacename;
}
return $list;
}
示例5: build_interface_list
function build_interface_list()
{
$interfaces = get_configured_interface_with_descr();
$viplist = get_configured_vip_list();
foreach ($viplist as $vip => $address) {
$interfaces[$vip] = $address;
if (get_vip_descr($address)) {
$interfaces[$vip] .= " (" . get_vip_descr($address) . ")";
}
}
$grouplist = return_gateway_groups_array();
foreach ($grouplist as $name => $group) {
if ($group[0]['vip'] != "") {
$vipif = $group[0]['vip'];
} else {
$vipif = $group[0]['int'];
}
$interfaces[$name] = sprintf(gettext("GW Group %s"), $name);
}
return $interfaces;
}
示例6: build_interface_list
function build_interface_list()
{
$interfaces = get_configured_interface_with_descr();
$carplist = get_configured_carp_interface_list();
foreach ($carplist as $cif => $carpip) {
$interfaces[$cif] = $carpip . " (" . get_vip_descr($carpip) . ")";
}
$aliaslist = get_configured_ip_aliases_list();
foreach ($aliaslist as $aliasip => $aliasif) {
$interfaces[$aliasip] = $aliasip . " (" . get_vip_descr($aliasip) . ")";
}
$grouplist = return_gateway_groups_array();
foreach ($grouplist as $name => $group) {
if ($group[0]['vip'] != "") {
$vipif = $group[0]['vip'];
} else {
$vipif = $group[0]['int'];
}
$interfaces[$name] = "GW Group {$name}";
}
return $interfaces;
}