本文整理汇总了PHP中pprint_port函数的典型用法代码示例。如果您正苦于以下问题:PHP pprint_port函数的具体用法?PHP pprint_port怎么用?PHP pprint_port使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pprint_port函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialchars
<td >
<?php
echo htmlspecialchars($natent['target']);
?>
</td>
<td>
<?php
$localport = $natent['local-port'];
list($dstbeginport, $dstendport) = explode("-", $natent['destination']['port']);
if ($dstendport) {
$localendport = $natent['local-port'] + $dstendport - $dstbeginport;
$localport .= '-' . $localendport;
}
?>
<?php
echo htmlspecialchars(pprint_port($localport));
?>
</td>
<td>
<?php
echo htmlspecialchars($natent['descr']);
?>
</td>
<td>
<a class="fa fa-pencil" title="<?php
echo gettext("Edit rule");
?>
" href="firewall_nat_edit.php?id=<?php
echo $i;
?>
示例2: htmlspecialchars
<?php
}
?>
</td>
<td>
<?php
if (isset($config['interfaces'][$filterent['gateway']]['descr'])) {
?>
<?php
echo htmlspecialchars($config['interfaces'][$filterent['gateway']]['descr']);
?>
<?php
} else {
?>
<?php
echo htmlspecialchars(pprint_port($filterent['gateway']));
?>
<?php
}
?>
</td>
<td>
<?php
if (isset($filterent['ackqueue']) && isset($filterent['defaultqueue'])) {
$desc = $filterent['ackqueue'];
echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['ackqueue']}&action=show\">{$desc}</a>";
$desc = $filterent['defaultqueue'];
echo "/<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&action=show\">{$desc}</a>";
} else {
if (isset($filterent['defaultqueue'])) {
$desc = $filterent['defaultqueue'];
示例3: gettext
?>
<a href="/firewall_aliases_edit.php?id=<?php
echo $alias['targetport'];
?>
" data-toggle="popover" data-trigger="hover focus" title="<?php
echo gettext('Alias details');
?>
" data-content="<?php
echo alias_info_popup($alias['targetport']);
?>
" data-html="true">
<?php
}
?>
<?php
echo str_replace('_', ' ', htmlspecialchars(pprint_port($localport)));
if (isset($alias['targetport'])) {
?>
</a>
<?php
}
?>
</td>
<td>
<?php
echo htmlspecialchars($natent['descr']);
?>
</td>
<td>
<a class="fa fa-pencil" title="<?php
示例4: htmlspecialchars
if (isset($filterent['destination']['port']) && is_alias($filterent['destination']['port'])) {
?>
<a href="/firewall_aliases_edit.php?name=<?php
echo htmlspecialchars($filterent['destination']['port']);
?>
"><i class="fa fa-list"></i> </a>
<?php
}
?>
</td>
<td class="hidden-xs hidden-sm">
<?php
if (isset($filterent['gateway'])) {
?>
<?php
echo isset($config['interfaces'][$filterent['gateway']]['descr']) ? htmlspecialchars($config['interfaces'][$filterent['gateway']]['descr']) : htmlspecialchars(pprint_port($filterent['gateway']));
} else {
?>
*
<?php
}
?>
</td>
<td class="hidden-xs hidden-sm">
<?php
if (!empty($filterent['sched'])) {
?>
<?php
echo htmlspecialchars($filterent['sched']);
?>
<a href="/firewall_schedule_edit.php?name=<?php
示例5: gettext
<th><?php
echo gettext("Actions");
?>
</th>
</tr>
</thead>
<tbody class="user-entries">
<?php
$i = 0;
foreach ($a_out as $natent) {
$iconfn = "pass";
$textss = $textse = "";
if ($mode == "disabled" || $mode == "automatic" || isset($natent['disabled'])) {
$iconfn .= "_d";
}
$alias = rule_columns_with_alias($natent['source']['address'], pprint_port($natent['source']['port']), $natent['destination']['address'], pprint_port($natent['destination']['port']));
?>
<tr id="fr<?php
echo $i;
?>
" onClick="fr_toggle(<?php
echo $i;
?>
)" ondblclick="document.location='firewall_nat_out_edit.php?id=<?php
echo $i;
?>
';">
<td >
<input type="checkbox" id="frc<?php
echo $i;
示例6: foreach
<?php
$i = 0;
foreach ($a_out as $natent) {
$iconfn = "pass";
$textss = $textse = "";
if ($mode == "disabled" || $mode == "automatic" || isset($natent['disabled'])) {
$textss = "<span class=\"gray\">";
$textse = "</span>";
$iconfn .= "_d";
}
//build Alias popup box
$alias_src_span_begin = "";
$alias_src_port_span_begin = "";
$alias_dst_span_begin = "";
$alias_dst_port_span_begin = "";
$alias_popup = rule_popup($natent['source']['network'], pprint_port($natent['sourceport']), $natent['destination']['address'], pprint_port($natent['dstport']));
$alias_src_span_begin = $alias_popup["src"];
$alias_src_port_span_begin = $alias_popup["srcport"];
$alias_dst_span_begin = $alias_popup["dst"];
$alias_dst_port_span_begin = $alias_popup["dstport"];
$alias_src_span_end = $alias_popup["src_end"];
$alias_src_port_span_end = $alias_popup["srcport_end"];
$alias_dst_span_end = $alias_popup["dst_end"];
$alias_dst_port_span_end = $alias_popup["dstport_end"];
?>
<tr valign="top" id="fr<?php
echo $i;
?>
">
<td class="listt">
<input type="checkbox" id="frc<?php
示例7: htmlspecialchars
)" id="frd<?php
echo $nrules;
?>
" ondblclick="document.location='firewall_shaper_edit.php?id=<?php
echo $i;
?>
';"><?php
echo $textss;
echo htmlspecialchars(pprint_address($shaperent['destination']));
?>
<?php
if ($shaperent['destination']['port']) {
?>
<br>
Port: <?php
echo htmlspecialchars(pprint_port($shaperent['destination']['port']));
?>
<?php
}
echo $textse;
?>
</td>
<td class="listr" onClick="fr_toggle(<?php
echo $nrules;
?>
)" id="frd<?php
echo $nrules;
?>
" ondblclick="document.location='firewall_shaper_edit.php?id=<?php
echo $i;
?>