本文整理汇总了PHP中legacy_html_escape_form_data函数的典型用法代码示例。如果您正苦于以下问题:PHP legacy_html_escape_form_data函数的具体用法?PHP legacy_html_escape_form_data怎么用?PHP legacy_html_escape_form_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了legacy_html_escape_form_data函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_user_privdesc
function get_user_privdesc(&$user)
{
global $priv_list;
$privs = array();
if (!isset($user['priv']) || !is_array($user['priv'])) {
$user_privs = array();
} else {
$user_privs = $user['priv'];
}
$names = local_user_get_groups($user, true);
foreach ($names as $name) {
$group = getGroupEntry($name);
if (isset($group['priv']) && is_array($group['priv'])) {
foreach ($group['priv'] as $pname) {
if (in_array($pname, $user_privs)) {
continue;
}
if (empty($priv_list[$pname])) {
continue;
}
$priv = $priv_list[$pname];
$priv['group'] = $group['name'];
$priv['id'] = $pname;
$privs[] = $priv;
}
}
}
foreach ($user_privs as $pname) {
if (!empty($priv_list[$pname])) {
$priv_list[$pname]['id'] = $pname;
$privs[] = $priv_list[$pname];
}
}
legacy_html_escape_form_data($privs);
return $privs;
}
示例2: TORT
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
require_once "guiconfig.inc";
require_once "services.inc";
// request report data
if (!isset($config['gateways']['gateway_group']) || !is_array($config['gateways']['gateway_group'])) {
$a_gateway_groups = array();
} else {
$a_gateway_groups =& $config['gateways']['gateway_group'];
}
$gateways_status = return_gateways_status();
$a_gateways = return_gateways_array();
legacy_html_escape_form_data($a_gateways);
legacy_html_escape_form_data($a_gateway_groups);
$service_hook = 'apinger';
include "head.inc";
?>
<body>
<?php
include "fbegin.inc";
?>
<section class="page-content-main">
<div class="container-fluid">
<div class="row">
<section class="col-xs-12">
<div class="tab-content content-box col-xs-12">
<div class="responsive-table">
示例3: gettext
}
if (!empty($_POST['action']) && $_POST['action'] == "del" && isset($id)) {
if (ppp_inuse($a_ppps[$id]['if'])) {
$input_errors[] = gettext("This point-to-point link cannot be deleted because it is still being used as an interface.");
} else {
unset($a_ppps[$id]['pppoe-reset-type']);
handle_pppoe_reset($a_ppps[$id]);
unset($a_ppps[$id]);
write_config();
header("Location: interfaces_ppps.php");
exit;
}
}
}
include "head.inc";
legacy_html_escape_form_data($a_ppps);
$main_buttons = array(array('href' => 'interfaces_ppps_edit.php', 'label' => gettext('Add')));
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(event){
event.preventDefault();
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "<?php
echo gettext("Point-to-Point");
?>
示例4: gettext
$input_errors[] = gettext("This bridge cannot be deleted because it is assigned as an interface.");
} else {
if (!does_interface_exist($a_bridges[$id]['bridgeif'])) {
log_error("Bridge interface does not exist, skipping ifconfig destroy.");
} else {
mwexec("/sbin/ifconfig " . escapeshellarg($a_bridges[$id]['bridgeif']) . " destroy");
}
unset($a_bridges[$id]);
write_config();
header("Location: interfaces_bridge.php");
exit;
}
}
}
include "head.inc";
legacy_html_escape_form_data($a_bridges);
$main_buttons = array(array('href' => 'interfaces_bridge_edit.php', 'label' => gettext('Add')));
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(event){
event.preventDefault();
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "<?php
echo gettext("Bridge");
示例5: write_config
$config['ipsec']['client'] = $client;
write_config();
mark_subsystem_dirty('ipsec');
header("Location: vpn_ipsec_mobile.php");
exit;
}
}
// initialize missing post attributes
foreach (explode(",", $form_fields) as $fieldname) {
$fieldname = trim($fieldname);
if (!isset($pconfig[$fieldname])) {
$pconfig[$fieldname] = null;
}
}
}
legacy_html_escape_form_data($pconfig);
$pgtitle = array(gettext("VPN"), gettext("IPsec"), gettext("Mobile"));
$shortcut_section = "ipsec";
include "head.inc";
?>
<body>
<script type="text/javascript">
//<![CDATA[
$( document ).ready(function() {
pool_change();
dns_domain_change();
dns_split_change();
dns_server_change();
wins_server_change();
示例6: DAMAGES
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
require_once "guiconfig.inc";
require_once "vpn.inc";
require_once "services.inc";
require_once "interfaces.inc";
$pgtitle = array(gettext("Status"), gettext("IPsec"), gettext("SAD"));
$shortcut_section = "ipsec";
include "head.inc";
$sad = ipsec_dump_sad();
legacy_html_escape_form_data($sad);
?>
<body>
<?php
include "fbegin.inc";
?>
<section class="page-content-main">
<div class="container-fluid">
<div class="row">
<section class="col-xs-12">
<? $active_tab = "/diag_ipsec_sad.php"; include('diag_ipsec_tabs.inc'); ?>
<div class="tab-content content-box col-xs-12">
<div class="table-responsive">
<table class="table table-striped">
<?php
示例7: write_config
}
write_config();
if ($changes > 0) {
// reload filter, rrd when interfaces have changed (original from apply action)
filter_configure();
enable_rrd_graphing();
}
// redirect
header("Location: interfaces_assign.php");
exit;
}
}
}
/* collect (unused) interfaces */
$interfaces = list_interfaces();
legacy_html_escape_form_data($interfaces);
$unused_interfaces = array();
foreach ($interfaces as $portname => $portinfo) {
$portused = false;
foreach ($config['interfaces'] as $ifname => $ifdata) {
if ($ifdata['if'] == $portname) {
$portused = true;
break;
}
}
if (!$portused) {
$unused_interfaces[$portname] = $portinfo;
}
}
include "head.inc";
?>
示例8: escapeshellarg
$remipp = escapeshellarg($_POST['remipp']);
if (!empty($port) and !empty($remipp)) {
$retval = kill_client($port, $remipp);
echo htmlentities("|{$port}|{$remipp}|{$retval}|");
} else {
echo gettext("invalid input");
}
exit;
}
}
$servers = openvpn_get_active_servers();
legacy_html_escape_form_data($servers);
$sk_servers = openvpn_get_active_servers("p2p");
legacy_html_escape_form_data($sk_servers);
$clients = openvpn_get_active_clients();
legacy_html_escape_form_data($clients);
include "head.inc";
?>
<body>
<?php
include "fbegin.inc";
?>
<script type="text/javascript">
//<![CDATA[
$( document ).ready(function() {
// link kill buttons
$(".act_kill_client").click(function(){
var port = $(this).attr("data-client-port");
示例9: gettext
if (!empty($_POST['action']) && $_POST['action'] == "del" && isset($id)) {
if (vlan_inuse($a_vlans[$id])) {
$input_errors[] = gettext("This VLAN cannot be deleted because it is still being used as an interface.");
} else {
if (does_interface_exist($a_vlans[$id]['vlanif'])) {
legacy_interface_destroy($a_vlans[$id]['vlanif']);
}
unset($a_vlans[$id]);
write_config();
header("Location: interfaces_vlan.php");
exit;
}
}
}
include "head.inc";
legacy_html_escape_form_data($a_vlans);
$main_buttons = array(array('href' => 'interfaces_vlan_edit.php', 'label' => gettext('Add')));
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(event){
event.preventDefault();
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "<?php
echo gettext("VLAN");
示例10: explode
if (!empty($_POST['action']) && $_POST['action'] == "del" && isset($id)) {
$members = explode(" ", $a_ifgroups[$id]['members']);
foreach ($members as $ifs) {
$realif = get_real_interface($ifs);
if (!empty($realif)) {
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -group " . escapeshellarg($a_ifgroups[$id]['ifname']));
}
}
unset($a_ifgroups[$id]);
write_config();
header("Location: interfaces_groups.php");
exit;
}
}
include "head.inc";
legacy_html_escape_form_data($a_ifgroups);
$main_buttons = array(array('href' => 'interfaces_groups_edit.php', 'label' => gettext('Add')));
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(event){
event.preventDefault();
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "<?php
echo gettext("Group");
示例11: foreach
foreach ($delmembers as $tag) {
mwexec("/usr/sbin/ngctl shutdown {$qinq['vlanif']}h{$tag}:");
}
}
mwexec("/usr/sbin/ngctl shutdown {$qinq['vlanif']}qinq:");
mwexec("/usr/sbin/ngctl shutdown {$qinq['vlanif']}:");
mwexec("/sbin/ifconfig {$qinq['vlanif']} destroy");
unset($a_qinqs[$id]);
write_config();
header("Location: interfaces_qinq.php");
exit;
}
}
}
include "head.inc";
legacy_html_escape_form_data($a_qinqs);
$main_buttons = array(array('href' => 'interfaces_qinq_edit.php', 'label' => gettext('Add')));
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(event){
event.preventDefault();
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "<?php
echo gettext("QinQ");
示例12: gettext
$id = $_POST['id'];
}
if (!empty($_POST['action']) && $_POST['action'] == "del" && isset($id)) {
if (lagg_inuse($a_laggs[$id]['laggif'])) {
$input_errors[] = gettext("This LAGG interface cannot be deleted because it is still being used.");
} else {
mwexec_bg("/sbin/ifconfig " . escapeshellarg($a_laggs[$id]['laggif']) . " destroy");
unset($a_laggs[$id]);
write_config();
header("Location: interfaces_lagg.php");
exit;
}
}
}
include "head.inc";
legacy_html_escape_form_data($a_laggs);
$main_buttons = array(array('href' => 'interfaces_lagg_edit.php', 'label' => gettext('Add')));
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(event){
event.preventDefault();
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "<?php
echo gettext("LAGG");
示例13: gettext
$id = $_POST['id'];
}
if (!empty($_POST['action']) && $_POST['action'] == "del" && isset($id)) {
if (gif_inuse($a_gifs[$id]['gifif'])) {
$input_errors[] = gettext("This gif TUNNEL cannot be deleted because it is still being used as an interface.");
} else {
mwexec("/sbin/ifconfig " . escapeshellarg($a_gifs[$id]['gifif']) . " destroy");
unset($a_gifs[$id]);
write_config();
header("Location: interfaces_gif.php");
exit;
}
}
}
include "head.inc";
legacy_html_escape_form_data($a_gifs);
$main_buttons = array(array('href' => 'interfaces_gif_edit.php', 'label' => gettext('Add')));
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(event){
event.preventDefault();
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "<?php
echo gettext("GIF");
示例14: mwexec
break;
case 'ikedisconnectconn':
if ($ikesaid !== null) {
mwexec("/usr/local/sbin/ipsec down con" . $ikeid . "[" . $ikesaid . "]");
} else {
}
case 'childdisconnect':
mwexec("/usr/local/sbin/ipsec down con" . $ikeid . "{" . $ikesaid . "}");
break;
}
}
}
$status = ipsec_smp_dump_status();
$pconfig = $config['ipsec']['phase1'];
legacy_html_escape_form_data($pconfig);
legacy_html_escape_form_data($status);
$pgtitle = array(gettext("Status"), gettext("IPsec"));
$shortcut_section = "ipsec";
include "head.inc";
?>
<script type="text/javascript">
//<![CDATA[
function show_childsa(id, buttonid) {
document.getElementById(buttonid).innerHTML='';
aodiv = document.getElementById(id);
aodiv.style.display = "";
}
//]]>
</script>
<body>
示例15: find_alias_reference
find_alias_reference(array('staticroutes', 'route'), array('network'), $alias_name, $is_alias_referenced, $referenced_by);
if ($is_alias_referenced) {
$savemsg = sprintf(gettext("Cannot delete alias. Currently in use by %s"), $referenced_by);
} else {
unset($a_aliases[$_POST['id']]);
if (write_config()) {
filter_configure();
mark_subsystem_dirty('aliases');
}
header("Location: firewall_aliases.php?tab=" . $selected_tab);
exit;
}
}
}
}
legacy_html_escape_form_data($a_aliases);
$main_buttons = array(array('href' => 'firewall_aliases_edit.php?tab=' . $selected_tab, 'label' => gettext("Add a new alias")));
include "head.inc";
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
// link delete buttons
$(".act_delete").click(function(){
var id = $(this).attr("id").split('_').pop(-1);
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
title: "<?php
echo gettext("Aliases");
?>
",