本文整理汇总了PHP中xml_safe_fieldname函数的典型用法代码示例。如果您正苦于以下问题:PHP xml_safe_fieldname函数的具体用法?PHP xml_safe_fieldname怎么用?PHP xml_safe_fieldname使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xml_safe_fieldname函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: header
if (!is_numeric($id)) {
header("Location: /");
exit;
}
if ($pkg['custom_php_global_functions'] != "") {
eval($pkg['custom_php_global_functions']);
}
// grab the installedpackages->package_name section.
if ($config['installedpackages'] && !is_array($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'])) {
$config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'] = array();
}
// If the first entry in the array is an empty <config/> tag, kill it.
if ($config['installedpackages'] && count($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']) > 0 && $config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'][0] == "") {
array_shift($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']);
}
$a_pkg =& $config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config'];
if ($_GET['savemsg'] != "") {
$savemsg = htmlspecialchars($_GET['savemsg']);
}
if ($pkg['custom_php_command_before_form'] != "") {
eval($pkg['custom_php_command_before_form']);
}
if ($_POST) {
$rows = 0;
$input_errors = array();
$reqfields = array();
$reqfieldsn = array();
foreach ($pkg['fields']['field'] as $field) {
if (isset($field['required'])) {
if ($field['fieldname']) {
$reqfields[] = $field['fieldname'];
开发者ID:nwholloway,项目名称:pfsense,代码行数:31,代码来源:pkg_edit.php
示例2:
$class = 'cell';
}
}
?>
<td class="<?php
echo $class;
?>
" ondblclick="document.location='pkg_edit.php?xml=<?php
echo $xml;
?>
&act=edit&id=<?php
echo $i;
?>
';">
<?php
$fieldname = $ip[xml_safe_fieldname($column['fieldname'])];
if ($column['type'] == 'interface') {
echo $column['prefix'] . $iflist[$fieldname] . $column['suffix'];
} else {
if ($column['encoding'] == 'base64') {
echo $column['prefix'] . base64_decode($fieldname) . $column['suffix'];
} else {
if ($column['listmodeon'] && $fieldname == 'on') {
echo $column['prefix'] . $column['listmodeon'] . $column['suffix'];
} else {
if ($column['listmodeoff'] && $fieldname == '') {
echo $column['prefix'] . $column['listmodeoff'] . $column['suffix'];
} else {
if ($column['fieldname'] == 'disabled') {
if ($fieldname == 'on') {
echo "<span class=\"label\">Pasif</span>";
开发者ID:nuclewall,项目名称:nuclewall,代码行数:31,代码来源:pkg.php
注:本文中的xml_safe_fieldname函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论