本文整理匯總了PHP中Subnets::get_ipv4_masks方法的典型用法代碼示例。如果您正苦於以下問題:PHP Subnets::get_ipv4_masks方法的具體用法?PHP Subnets::get_ipv4_masks怎麽用?PHP Subnets::get_ipv4_masks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Subnets
的用法示例。
在下文中一共展示了Subnets::get_ipv4_masks方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
$cnt = 0;
# Only parse nameserver if any exists
if ($permitted_nameservers != false) {
foreach ($permitted_nameservers as $k => $n) {
// fetch nameserver sets and append
$nameserver_set = $Tools->fetch_multiple_objects("nameservers", "id", $n, "name", "namesrv1");
//save to array
$nsout[$n] = $nameserver_set;
//count add
$cnt++;
}
//filter out empty
$permitted_nameservers = isset($nsout) ? array_filter($nsout) : false;
}
# fetch all IPv4 masks
$masks = $Subnets->get_ipv4_masks();
# fetch vrfs
if ($User->settings->enableVRF == 1) {
$vrfs = $Tools->fetch_all_objects("vrf", "name");
}
# create csrf token
$csrf = $User->csrf_cookie("create", "scan_all");
?>
<!-- header -->
<?php
if ($ajax_loaded) {
?>
<div class="pHeader"><?php
print _('Scan results');
?>