当前位置: 首页>>代码示例>>PHP>>正文


PHP pprint_port函数代码示例

本文整理汇总了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;
    ?>
开发者ID:jefersonJim,项目名称:pfsense,代码行数:31,代码来源:firewall_nat.php

示例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']}&amp;action=show\">{$desc}</a>";
            $desc = $filterent['defaultqueue'];
            echo "/<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&amp;action=show\">{$desc}</a>";
        } else {
            if (isset($filterent['defaultqueue'])) {
                $desc = $filterent['defaultqueue'];
开发者ID:ajiwo,项目名称:pfsense,代码行数:31,代码来源:firewall_rules.php

示例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 
开发者ID:curtiszimmerman,项目名称:pfsense,代码行数:31,代码来源:firewall_nat.php

示例4: htmlspecialchars

        if (isset($filterent['destination']['port']) && is_alias($filterent['destination']['port'])) {
            ?>
                      &nbsp;<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 
开发者ID:siloportem,项目名称:core,代码行数:31,代码来源:firewall_rules.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;
开发者ID:thiagoc,项目名称:pfsense,代码行数:31,代码来源:firewall_nat_out.php

示例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 
开发者ID:mtisza,项目名称:pfsense,代码行数:31,代码来源:firewall_nat_out.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;
    ?>
开发者ID:rootsghost,项目名称:5651-pfsense,代码行数:31,代码来源:firewall_shaper.php


注:本文中的pprint_port函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。