本文整理汇总了PHP中get_alias_list函数的典型用法代码示例。如果您正苦于以下问题:PHP get_alias_list函数的具体用法?PHP get_alias_list怎么用?PHP get_alias_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_alias_list函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: json_encode
typesel_change();
proto_change();
<?php
if (!empty($pconfig['srcbeginport']) && $pconfig['srcbeginport'] != "any" || !empty($pconfig['srcendport']) && $pconfig['srcendport'] != "any") {
?>
show_source_port_range();
<?php
}
?>
var addressarray = <?php
echo json_encode(get_alias_list(array("host", "network", "openvpn", "urltable")));
?>
;
var customarray = <?php
echo json_encode(get_alias_list(array("port", "url_ports", "urltable_ports")));
?>
;
var oTextbox1 = new AutoSuggestControl(document.getElementById("src"), new StateSuggestions(addressarray));
var oTextbox2 = new AutoSuggestControl(document.getElementById("srcbeginport_cust"), new StateSuggestions(customarray));
var oTextbox3 = new AutoSuggestControl(document.getElementById("srcendport_cust"), new StateSuggestions(customarray));
var oTextbox4 = new AutoSuggestControl(document.getElementById("dst"), new StateSuggestions(addressarray));
var oTextbox5 = new AutoSuggestControl(document.getElementById("dstbeginport_cust"), new StateSuggestions(customarray));
var oTextbox6 = new AutoSuggestControl(document.getElementById("dstendport_cust"), new StateSuggestions(customarray));
//]]>
</script>
<?php
include "fend.inc";
?>
</body>
开发者ID:rohankapoorcom,项目名称:pfsense,代码行数:31,代码来源:firewall_rules_edit.php
示例2: Form_IpAddress
$section->addInput(new Form_IpAddress('radns' . $idx, 'Server ' . $idx, $pconfig['radns' . $idx]))->setPattern('[a-zA-Z0-9_.:]+')->setHelp($idx < 3 ? '' : 'Leave blank to use the system default DNS servers - this interface\'s IP if DNS Forwarder or Resolver is enabled, otherwise the servers configured on the General page');
}
$section->addInput(new Form_Input('radomainsearchlist', 'Domain search list', 'text', $pconfig['radomainsearchlist']))->setHelp('The RA server can optionally provide a domain search list. Use the semicolon character as separator.');
$section->addInput(new Form_Checkbox('rasamednsasdhcp6', 'Settings', 'Use same settings as DHCPv6 server', $pconfig['rasamednsasdhcp6']));
$section->addInput(new Form_Input('if', null, 'hidden', $if));
$form->add($section);
print $form;
?>
<script type="text/javascript">
//<![CDATA[
events.push(function() {
// Suppress "Delete row" button if there are fewer than two rows
checkLastRow();
// --------- Autocomplete -----------------------------------------------------------------------------------------
var addressarray = <?php
echo json_encode(get_alias_list(array("host", "network", "openvpn", "urltable")));
?>
;
$('#radns1, #radns2, #radns3').autocomplete({
source: addressarray
});
});
//]]>
</script>
<?php
include "foot.inc";
开发者ID:KyleJohnstonNet,项目名称:pfsense,代码行数:31,代码来源:services_router_advertisements.php
示例3: Form_Section
}
$section = new Form_Section('Edit route entry');
$section->addInput(new Form_IpAddress('network', 'Destination network', $pconfig['network']))->addMask('network_subnet', $pconfig['network_subnet'])->setPattern('[.a-zA-Z0-9_]+')->setHelp('Destination network for this static route');
$allGateways = array_combine(array_map(function ($g) {
return $g['name'];
}, $a_gateways), array_map(function ($g) {
return $g['name'] . ' - ' . $g['gateway'];
}, $a_gateways));
$section->addInput(new Form_Select('gateway', 'Gateway', $pconfig['gateway'], $allGateways))->setHelp('Choose which gateway this route applies to or <a href="' . '/system_gateways_edit.php">add a new one first</a>');
$section->addInput(new Form_Checkbox('disabled', 'Disabled', 'Disable this static route', $pconfig['disabled']))->setHelp('Set this option to disable this static route without removing it from ' . 'the list.');
$section->addInput(new Form_Input('descr', 'Description', 'text', htmlspecialchars($pconfig['descr'])))->setHelp('You may enter a description here for your reference (not parsed).');
$form->add($section);
print $form;
?>
<script>
//<![CDATA[
events.push(function(){
// --------- Autocomplete -----------------------------------------------------------------------------------------
var addressarray = <?php
echo json_encode(get_alias_list(array("host", "network")));
?>
;
$('#network').autocomplete({
source: addressarray
});
});
//]]>
</script>
<?php
include "foot.inc";
开发者ID:jefersonJim,项目名称:pfsense,代码行数:31,代码来源:system_routes_edit.php
示例4: json_encode
// We need to disable the elements so they are not submitted in the POST
$('#address' + row).prop("disabled", hide);
$('#address_subnet' + row).prop("disabled", hide || disable_subnets);
$('#detail' + row).prop("disabled", hide);
$('#deleterow' + row).prop("disabled", hide);
}
// On load . .
typechange();
// Suppress "Delete row" button if there are fewer than two rows
checkLastRow();
// Autocomplete
var addressarray = <?php
echo json_encode(array_exclude($pconfig['name'], get_alias_list($pconfig['type'])));
?>
;
$('[id^=address]').autocomplete({
source: addressarray
});
// on click . .
$('#type').on('change', function() {
typechange();
});
});
//]]>
</script>
开发者ID:jefersonJim,项目名称:pfsense,代码行数:31,代码来源:firewall_aliases_edit.php
示例5: json_encode
</td>
</tr>
</tbody>
</table>
</div>
</td></tr></tbody>
</table>
</form>
<script type="text/javascript">
//<![CDATA[
var addressarray = <?php
echo json_encode(get_alias_list(array("host", "network")));
?>
;
var portsarray = <?php
echo json_encode(get_alias_list("port"));
?>
;
function createAutoSuggest() {
<?php
foreach ($suricata_servers as $key => $server) {
echo " var objAlias{$key} = new AutoSuggestControl(document.getElementById('def_{$key}'), new StateSuggestions(addressarray));\n";
}
foreach ($suricata_ports as $key => $server) {
echo "var pobjAlias{$key} = new AutoSuggestControl(document.getElementById('def_{$key}'), new StateSuggestions(portsarray));\n";
}
?>
}
setTimeout("createAutoSuggest();", 500);
开发者ID:MarkVLK,项目名称:pfsense-packages,代码行数:31,代码来源:suricata_define_vars.php
注:本文中的get_alias_list函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论