本文整理汇总了PHP中get_possible_listen_ips函数的典型用法代码示例。如果您正苦于以下问题:PHP get_possible_listen_ips函数的具体用法?PHP get_possible_listen_ips怎么用?PHP get_possible_listen_ips使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_possible_listen_ips函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: build_if_list
function build_if_list($selectedifs)
{
$interface_addresses = get_possible_listen_ips(true);
$iflist = array('options' => array(), 'selected' => array());
$iflist['options']['all'] = gettext("All");
if (empty($selectedifs) || empty($selectedifs[0]) || in_array("all", $selectedifs)) {
array_push($iflist['selected'], "all");
}
foreach ($interface_addresses as $laddr => $ldescr) {
$iflist['options'][$laddr] = htmlspecialchars($ldescr);
if ($selectedifs && in_array($laddr, $selectedifs)) {
array_push($iflist['selected'], $laddr);
}
}
unset($interface_addresses);
return $iflist;
}
开发者ID:dirkx,项目名称:pfsense,代码行数:17,代码来源:services_unbound.php
示例2: build_parent_list
function build_parent_list()
{
global $g;
$parentlist = array();
$portlist = get_possible_listen_ips();
$count = 0;
foreach ($portlist as $ifn => $ifinfo) {
if (preg_match($g['wireless_regex'], $ifn)) {
$parentlist[$ifn] = htmlspecialchars($ifn . '(' . $ifinfo['mac'] . ')');
$count++;
}
}
if ($count > 0) {
return $parentlist;
} else {
return array('0' => gettext('None available'));
}
}
开发者ID:hexaclock,项目名称:pfsense,代码行数:18,代码来源:interfaces_wireless_edit.php
示例3: gettext
echo gettext("Interface Binding");
?>
</strong></td>
<td align="right" class="optsect_s"> </td></tr>
</table></td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq"><?php
echo gettext("Bind Interface");
?>
</td>
<td width="78%" class="vtable">
<select name="bindip" class="formselect">
<option value="">All</option>
<?php
$listenips = get_possible_listen_ips();
foreach ($listenips as $lip) {
$selected = "";
if ($lip['value'] == $pconfig['bindip']) {
$selected = "selected=\"selected\"";
}
?>
<option value="<?php
echo $lip['value'];
?>
" <?php
echo $selected;
?>
>
<?php
echo htmlspecialchars($lip['name']);
开发者ID:mtisza,项目名称:pfsense,代码行数:31,代码来源:services_snmp.php
示例4: build_parent_list
function build_parent_list()
{
$parentlist = array();
$portlist = get_possible_listen_ips();
foreach ($portlist as $ifn => $ifinfo) {
$parentlist[$ifn] = $ifinfo;
}
return $parentlist;
}
开发者ID:dariomas,项目名称:pfsense,代码行数:9,代码来源:interfaces_gre_edit.php
示例5: build_iplist
function build_iplist()
{
$listenips = get_possible_listen_ips();
$iplist = array();
$iplist[''] = 'All';
foreach ($listenips as $lip => $ldescr) {
$iplist[$lip] = $ldescr;
}
unset($listenips);
return $iplist;
}
开发者ID:nwholloway,项目名称:pfsense,代码行数:11,代码来源:services_snmp.php
示例6: build_if_list
function build_if_list()
{
$interface_addresses = get_possible_listen_ips(true);
$iflist = array('options' => array(), 'selected' => array());
$iflist['options'][""] = "All";
if (empty($pconfig['interface']) || empty($pconfig['interface'][0])) {
array_push($iflist['selected'], "");
}
foreach ($interface_addresses as $laddr => $ldescr) {
$iflist['options'][$laddr] = htmlspecialchars($ldescr);
if ($pconfig['interface'] && in_array($laddr, $pconfig['interface'])) {
array_push($iflist['selected'], $laddr);
}
}
unset($interface_addresses);
return $iflist;
}
开发者ID:toshisam,项目名称:pfsense,代码行数:17,代码来源:services_dnsmasq.php
示例7: gettext
</option>
<?php
}
?>
</select>
<br /><br />
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq"><?php
echo gettext("Outgoing Network Interfaces");
?>
</td>
<td width="78%" class="vtable">
<?php
$interface_addresses = get_possible_listen_ips(true);
$size = count($interface_addresses) + 1;
?>
<?php
echo gettext("Utilize different network interface(s) that the DNS Resolver will use to send queries to authoritative servers and receive their replies. By default all interfaces are used.");
?>
<br /><br />
<select id="outgoing_interface" name="outgoing_interface[]" multiple="multiple" size="3" class="selectpicker" data-live-search="true">
<option value="" <?php
if (empty($pconfig['outgoing_interface']) || empty($pconfig['outgoing_interface'][0])) {
echo 'selected="selected"';
}
?>
>All</option>
<?php
foreach ($interface_addresses as $laddr) {
开发者ID:oparoz,项目名称:core-1,代码行数:31,代码来源:services_unbound.php
示例8: gettext
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="interfaces gif edit">
<tr>
<td colspan="2" valign="top" class="listtopic"><?php
echo gettext("GIF configuration");
?>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq"><?php
echo gettext("Parent interface");
?>
</td>
<td width="78%" class="vtable">
<select name="if" class="formselect">
<?php
$portlist = get_possible_listen_ips();
foreach ($portlist as $ifn => $ifinfo) {
echo "<option value=\"{$ifn}\"";
if ($ifn == $pconfig['if']) {
echo " selected=\"selected\"";
}
echo ">" . htmlspecialchars($ifinfo) . "</option>\n";
}
?>
</select>
<br />
<span class="vexpl">
<?php
echo gettext("The interface here serves as the local address to be used for the gif tunnel.");
?>
</span>
开发者ID:rohankapoorcom,项目名称:pfsense,代码行数:31,代码来源:interfaces_gif_edit.php
注:本文中的get_possible_listen_ips函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论