• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP mark_subsystem_dirty函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中mark_subsystem_dirty函数的典型用法代码示例。如果您正苦于以下问题:PHP mark_subsystem_dirty函数的具体用法?PHP mark_subsystem_dirty怎么用?PHP mark_subsystem_dirty使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了mark_subsystem_dirty函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: array

                    $acl_entry = array();
                    $acl_entry['aclid'] = $pconfig['aclid'];
                    $acl_entry['aclname'] = $pconfig['aclname'];
                    $acl_entry['aclaction'] = $pconfig['aclaction'];
                    $acl_entry['description'] = $pconfig['description'];
                    $acl_entry['aclid'] = $pconfig['aclid'];
                    $acl_entry['row'] = array();
                    foreach ($networkacl as $acl) {
                        $acl_entry['row'][] = $acl;
                    }
                    if (isset($id) && $a_acls[$id]) {
                        $a_acls[$id] = $acl_entry;
                    } else {
                        $a_acls[] = $acl_entry;
                    }
                    mark_subsystem_dirty("unbound");
                    write_config();
                    pfSenseHeader("/services_unbound_acls.php");
                    exit;
                }
            }
        }
    }
}
$actionHelp = '<span class="text-success"><strong>Deny:</strong></span> Stops queries from hosts within the netblock defined below.' . '<br />' . '<span class="text-success"><strong>Refuse:</strong></span> Stops queries from hosts within the netblock defined below, but sends a DNS rcode REFUSED error message back to the client.' . '<br />' . '<span class="text-success"><strong>Allow:</strong></span> Allow queries from hosts within the netblock defined below.' . '<br />' . '<span class="text-success"><strong>Allow Snoop:</strong></span> Allow recursive and nonrecursive access from hosts within the netblock defined below. Used for cache snooping and ideally should only be configured for your administrative host.';
$pgtitle = array(gettext("Services"), gettext("DNS Resolver"), gettext("Access Lists"));
$shortcut_section = "resolver";
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
开发者ID:sjourdois,项目名称:pfsense,代码行数:31,代码来源:services_unbound_acls.php


示例2: header

            }
        }
        if ($mode == "reinstallpackages") {
            header("Location: pkg_mgr_install.php?mode=reinstallall");
            exit;
        } else {
            if ($mode == "clearpackagelock") {
                clear_subsystem_dirty('packagelock');
                $savemsg = "Package Lock Cleared";
            } else {
                if ($mode == "restore_ver") {
                    $input_errors[] = gettext("XXX - this feature may hose your config (do NOT backrev configs!) - billm");
                    if ($ver2restore != "") {
                        $conf_file = "{$g['cf_conf_path']}/bak/config-" . strtotime($ver2restore) . ".xml";
                        if (config_install($conf_file) == 0) {
                            mark_subsystem_dirty("restore");
                        } else {
                            $input_errors[] = gettext("The configuration could not be restored.");
                        }
                    } else {
                        $input_errors[] = gettext("No version selected.");
                    }
                }
            }
        }
    }
}
$id = rand() . '.' . time();
$mth = ini_get('upload_progress_meter.store_method');
$dir = ini_get('upload_progress_meter.file.filename_template');
function build_area_list($showall)
开发者ID:jdillard,项目名称:pfsense,代码行数:31,代码来源:diag_backup.php


示例3: unset

    }
}
if ($_GET['act'] == "del") {
    if ($_GET['type'] == 'host') {
        if ($a_hosts[$_GET['id']]) {
            unset($a_hosts[$_GET['id']]);
            write_config();
            mark_subsystem_dirty('unbound');
            header("Location: services_unbound.php");
            exit;
        }
    } elseif ($_GET['type'] == 'doverride') {
        if ($a_domainOverrides[$_GET['id']]) {
            unset($a_domainOverrides[$_GET['id']]);
            write_config();
            mark_subsystem_dirty('unbound');
            header("Location: services_unbound.php");
            exit;
        }
    }
}
function build_if_list($selectedifs)
{
    $interface_addresses = get_possible_listen_ips(true);
    $iflist = array('options' => array(), 'selected' => array());
    $iflist['options']['all'] = gettext("All");
    if (empty($selectedifs) || empty($selectedifs[0]) || in_array("all", $selectedifs)) {
        array_push($iflist['selected'], "all");
    }
    foreach ($interface_addresses as $laddr => $ldescr) {
        $iflist['options'][$laddr] = htmlspecialchars($ldescr);
开发者ID:dirkx,项目名称:pfsense,代码行数:31,代码来源:services_unbound.php


示例4: rtrim

    }
    $tmp = rtrim($tmp, "||");
    if (!empty($tmp)) {
        $a_rule[$id]['rule_sid_off'] = $tmp;
    } else {
        unset($a_rule[$id]['rule_sid_off']);
    }
    // We changed a rule state, remind user to apply the changes
    mark_subsystem_dirty('suricata_rules');
    write_config("Suricata pkg: remove enablesid/disablesid changes for category {$currentruleset} on {$a_rule[$id]['interface']}.");
} elseif ($_POST['resetall'] && !empty($rules_map)) {
    // Remove all modified SIDs from config.xml and save the changes.
    unset($a_rule[$id]['rule_sid_on']);
    unset($a_rule[$id]['rule_sid_off']);
    // We changed a rule state, remind user to apply the changes
    mark_subsystem_dirty('suricata_rules');
    /* Update the config.xml file. */
    write_config("Suricata pkg: remove all enablesid/disablesid changes for {$a_rule[$id]['interface']}.");
} elseif ($_POST['clear']) {
    unset($a_rule[$id]['customrules']);
    write_config("Suricata pkg: clear all custom rules for {$a_rule[$id]['interface']}.");
    $rebuild_rules = true;
    conf_mount_rw();
    suricata_generate_yaml($a_rule[$id]);
    conf_mount_ro();
    $rebuild_rules = false;
    $pconfig['customrules'] = '';
    // Sync to configured CARP slaves if any are enabled
    suricata_sync_on_changes();
} elseif ($_POST['cancel']) {
    $pconfig['customrules'] = base64_decode($a_rule[$id]['customrules']);
开发者ID:LFCavalcanti,项目名称:pfsense-packages,代码行数:31,代码来源:suricata_rules.php


示例5: filter_configure

        $retval = 0;
        $retval |= filter_configure();
        $retval |= relayd_configure();
        $savemsg = get_std_save_message($retval);
        /* Wipe out old relayd anchors no longer in use. */
        cleanup_lb_marked();
        clear_subsystem_dirty('loadbalancer');
    }
}
if ($_GET['act'] == "del") {
    if (array_key_exists($_GET['id'], $a_vs)) {
        if (!$input_errors) {
            cleanup_lb_mark_anchor($a_vs[$_GET['id']]['name']);
            unset($a_vs[$_GET['id']]);
            write_config();
            mark_subsystem_dirty('loadbalancer');
            header("Location: load_balancer_virtual_server.php");
            exit;
        }
    }
}
/* Index lbpool array for easy hyperlinking */
$poodex = array();
for ($i = 0; isset($config['load_balancer']['lbpool'][$i]); $i++) {
    $poodex[$config['load_balancer']['lbpool'][$i]['name']] = $i;
}
for ($i = 0; isset($config['load_balancer']['virtual_server'][$i]); $i++) {
    if ($a_vs[$i]) {
        $a_vs[$i]['mode'] = htmlspecialchars($a_vs[$i]['mode']);
        $a_vs[$i]['relay_protocol'] = htmlspecialchars($a_vs[$i]['relay_protocol']);
        $a_vs[$i]['poolname'] = "<a href=\"/load_balancer_pool_edit.php?id={$poodex[$a_vs[$i]['poolname']]}\">" . htmlspecialchars($a_vs[$i]['poolname']) . "</a>";
开发者ID:heper,项目名称:pfsense,代码行数:31,代码来源:load_balancer_virtual_server.php


示例6: staticmaps_sort

        $mapent['ipaddrv6'] = $_POST['ipaddrv6'];
        $mapent['hostname'] = $_POST['hostname'];
        $mapent['descr'] = $_POST['descr'];
        $mapent['filename'] = $_POST['filename'];
        $mapent['rootpath'] = $_POST['rootpath'];
        if (isset($id) && $a_maps[$id]) {
            $a_maps[$id] = $mapent;
        } else {
            $a_maps[] = $mapent;
        }
        staticmaps_sort($if);
        write_config();
        if (isset($config['dhcpdv6'][$if]['enable'])) {
            mark_subsystem_dirty('staticmaps');
            if (isset($config['dnsmasq']['regdhcpstatic'])) {
                mark_subsystem_dirty('hosts');
            }
        }
        header("Location: services_dhcpv6.php?if={$if}");
        exit;
    }
}
$pgtitle = array(gettext("Services"), gettext("DHCPv6"), gettext("Edit static mapping"));
$statusurl = "status_dhcpv6_leases.php";
$logurl = "diag_logs_dhcp.php";
include "head.inc";
?>

<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
开发者ID:rdmenezes,项目名称:pfsense,代码行数:31,代码来源:services_dhcpv6_edit.php


示例7: write_config

            }
            $address .= $_POST["address{$x}"];
            $address .= "/" . $_POST["address_subnet{$x}"];
            $isfirst++;
        }
    }
    if (!$input_errors) {
        $igmpentry['address'] = $address;
        $igmpentry['descr'] = $_POST['descr'];
        if (isset($id) && $a_igmpproxy[$id]) {
            $a_igmpproxy[$id] = $igmpentry;
        } else {
            $a_igmpproxy[] = $igmpentry;
        }
        write_config();
        mark_subsystem_dirty('igmpproxy');
        header("Location: services_igmpproxy.php");
        exit;
    } else {
        $pconfig['descr'] = $_POST['descr'];
        $pconfig['address'] = $address;
        $pconfig['type'] = $_POST['type'];
    }
}
include "head.inc";
?>

<body>
	<?php 
include "fbegin.inc";
?>
开发者ID:8191,项目名称:opnsense-core,代码行数:31,代码来源:services_igmpproxy_edit.php


示例8: clear_subsystem_dirty

                 clear_subsystem_dirty('shaper');
                 if ($queue) {
                     $output_form .= $queue->build_form();
                     $dontshow = false;
                 } else {
                     $output_form .= $default_shaper_message;
                     $dontshow = true;
                 }
             } else {
                 if ($queue) {
                     $queue->validate_input($_POST, &$input_errors);
                     if (!$input_errors) {
                         $queue->update_altq_queue_data($_POST);
                         $queue->wconfig();
                         write_config();
                         mark_subsystem_dirty('shaper');
                         $dontshow = false;
                     }
                     read_altq_config();
                     $output_form .= $queue->build_form();
                 } else {
                     $output_form .= "<p class=\"pgtitle\">" . $default_shaper_msg . "</p>";
                     $dontshow = true;
                 }
             }
         }
     }
     mwexec("killall qstats");
 } else {
     $output_form .= "<p class=\"pgtitle\">" . $default_shaper_msg . "</p>";
     $dontshow = true;
开发者ID:rdmenezes,项目名称:pfsense,代码行数:31,代码来源:firewall_shaper.php


示例9: pptpd_users_sort

        if (isset($id) && $a_secret[$id]) {
            $secretent = $a_secret[$id];
        }
        $secretent['name'] = $_POST['username'];
        $secretent['ip'] = $_POST['ip'];
        if ($_POST['passwordfld1']) {
            $secretent['password'] = $_POST['passwordfld1'];
        }
        if (isset($id) && $a_secret[$id]) {
            $a_secret[$id] = $secretent;
        } else {
            $a_secret[] = $secretent;
        }
        pptpd_users_sort();
        write_config();
        mark_subsystem_dirty('pptpusers');
        header("Location: vpn_pptp_users.php");
        exit;
    }
}
$pgtitle = array(gettext("VPN"), gettext("VPN PPTP"), gettext("User"), gettext("Edit"));
$shortcut_section = "pptps";
include "head.inc";
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
开发者ID:nmccurdy,项目名称:pfsense,代码行数:31,代码来源:vpn_pptp_users_edit.php


示例10: unset

    if (!empty($tmp)) {
        $a_rule[$id]['rule_sid_off'] = $tmp;
    } else {
        unset($a_rule[$id]['rule_sid_off']);
    }
    write_config("Snort pkg: remove enablesid/disablesid changes for category {$currentruleset} on {$a_rule[$id]['interface']}.");
    // We changed a rule state, remind user to apply the changes
    mark_subsystem_dirty('snort_rules');
} elseif ($_POST['resetall'] && !empty($rules_map)) {
    // Remove all modified SIDs from config.xml and save the changes.
    unset($a_rule[$id]['rule_sid_on']);
    unset($a_rule[$id]['rule_sid_off']);
    /* Update the config.xml file. */
    write_config("Snort pkg: remove all enablesid/disablesid changes for {$a_rule[$id]['interface']}.");
    // We changed a rule state, remind user to apply the changes
    mark_subsystem_dirty('snort_rules');
} else {
    if ($_POST['cancel']) {
        $pconfig['customrules'] = base64_decode($a_rule[$id]['customrules']);
        clear_subsystem_dirty('snort_rules');
    } elseif ($_POST['clear']) {
        unset($a_rule[$id]['customrules']);
        write_config("Snort pkg: clear all custom rules for {$a_rule[$id]['interface']}.");
        $rebuild_rules = true;
        conf_mount_rw();
        snort_generate_conf($a_rule[$id]);
        conf_mount_ro();
        $rebuild_rules = false;
        $pconfig['customrules'] = '';
        // Sync to configured CARP slaves if any are enabled
        snort_sync_on_changes();
开发者ID:LFCavalcanti,项目名称:pfsense-packages,代码行数:31,代码来源:snort_rules.php


示例11: vpn_l2tp_configure

        if (!is_subsystem_dirty('rebootreq')) {
            $retval = vpn_l2tp_configure();
        }
        $savemsg = get_std_save_message();
        if ($retval == 0) {
            if (is_subsystem_dirty('l2tpusers')) {
                clear_subsystem_dirty('l2tpusers');
            }
        }
    }
}
if ($_GET['act'] == "del") {
    if ($a_secret[$_GET['id']]) {
        unset($a_secret[$_GET['id']]);
        write_config();
        mark_subsystem_dirty('l2tpusers');
        header("Location: vpn_l2tp_users.php");
        exit;
    }
}
include "head.inc";
$main_buttons = array(array('label' => gettext("add user"), 'href' => 'vpn_l2tp_users_edit.php'));
?>

<body>
<?php 
include "fbegin.inc";
?>

	<section class="page-content-main">
		<div class="container-fluid">
开发者ID:siloportem,项目名称:core,代码行数:31,代码来源:vpn_l2tp_users.php


示例12: unset

    $pconfig['blist_files'] = $a_nat[$id]['blist_files'];
    $pconfig['wlist_files'] = $a_nat[$id]['wlist_files'];
}
if ($_POST['blist_del'] && is_numericint($_POST['list_id'])) {
    $pconfig = $_POST;
    unset($a_nat[$id]['blist_files']['item'][$_POST['list_id']]);
    write_config("Snort pkg: deleted blacklist file for IP REPUTATION preprocessor.");
    mark_subsystem_dirty('snort_iprep');
    $pconfig['blist_files'] = $a_nat[$id]['blist_files'];
    $pconfig['wlist_files'] = $a_nat[$id]['wlist_files'];
}
if ($_POST['wlist_del'] && is_numericint($_POST['list_id'])) {
    $pconfig = $_POST;
    unset($a_nat[$id]['wlist_files']['item'][$_POST['list_id']]);
    write_config("Snort pkg: deleted whitelist file for IP REPUTATION preprocessor.");
    mark_subsystem_dirty('snort_iprep');
    $pconfig['wlist_files'] = $a_nat[$id]['wlist_files'];
    $pconfig['blist_files'] = $a_nat[$id]['blist_files'];
}
if ($_POST['save'] || $_POST['apply']) {
    $natent = array();
    $natent = $pconfig;
    if (!is_numericint($_POST['iprep_memcap']) || strval($_POST['iprep_memcap']) < 1 || strval($_POST['iprep_memcap']) > 4095) {
        $input_errors[] = gettext("The value for Memory Cap must be an integer between 1 and 4095.");
    }
    // if no errors write to conf
    if (!$input_errors) {
        $natent['reputation_preproc'] = $_POST['reputation_preproc'] ? 'on' : 'off';
        $natent['iprep_scan_local'] = $_POST['iprep_scan_local'] ? 'on' : 'off';
        $natent['iprep_memcap'] = $_POST['iprep_memcap'];
        $natent['iprep_priority'] = $_POST['iprep_priority'];
开发者ID:LFCavalcanti,项目名称:pfsense-packages,代码行数:31,代码来源:snort_ip_reputation.php


示例13: gettext

                     }
                 }
             }
             if (!verify_gzip_file("{$g['upload_path']}/firmware.tgz")) {
                 $input_errors[] = gettext("The image file is corrupt.");
                 unlink("{$g['upload_path']}/firmware.tgz");
             }
         }
     }
 }
 run_plugins("/usr/local/pkg/firmware_upgrade");
 /* Check for input errors, firmware locks, warnings, then check for firmware if sig_override is set */
 if (!$input_errors && !is_subsystem_dirty('firmwarelock') && (!$sig_warning || $_POST['sig_override'])) {
     if (file_exists("{$g['upload_path']}/firmware.tgz")) {
         /* fire up the update script in the background */
         mark_subsystem_dirty('firmwarelock');
         $savemsg = gettext("The firmware is now being updated. The firewall will reboot automatically.");
         if (stristr($_FILES['ulfile']['name'], "nanobsd") or $_POST['isnano'] == "yes") {
             mwexec_bg("/etc/rc.firmware pfSenseNanoBSDupgrade {$g['upload_path']}/firmware.tgz");
         } else {
             if ($g['platform'] == "nanobsd") {
                 $whichone = "pfSenseNanoBSDupgrade";
             } else {
                 $whichone = "pfSenseupgrade";
             }
             mwexec_bg("/etc/rc.firmware {$whichone} {$g['upload_path']}/firmware.tgz");
             unset($whichone);
         }
     } else {
         $savemsg = sprintf(gettext("Firmware image missing or other error, please try again %s."), $errortext);
     }
开发者ID:dariomas,项目名称:pfsense,代码行数:31,代码来源:system_firmware.php


示例14: unserialize

            $toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.firewall_virtual_ip.apply"));
        } else {
            $toapplylist = array();
        }
        $toapplylist[$id] = $a_vip[$id];
        if (!empty($a_vip[$id])) {
            /* modify all virtual IP rules with this address */
            for ($i = 0; isset($config['nat']['rule'][$i]); $i++) {
                if ($config['nat']['rule'][$i]['destination']['address'] == $a_vip[$id]['subnet']) {
                    $config['nat']['rule'][$i]['destination']['address'] = $vipent['subnet'];
                }
            }
        }
        $a_vip[$id] = $vipent;
        if (write_config()) {
            mark_subsystem_dirty('vip');
            file_put_contents("{$g['tmp_path']}/.firewall_virtual_ip.apply", serialize($toapplylist));
        }
        header("Location: firewall_virtual_ip.php");
        exit;
    }
}
$ipaliashelp = gettext('The mask must be the network\'s subnet mask. It does not specify a CIDR range.');
$proxyarphelp = gettext('Enter a CIDR block of proxy ARP addresses.');
$pgtitle = array(gettext("Firewall"), gettext("Virtual IP Address"), gettext("Edit"));
include "head.inc";
function build_if_list()
{
    $list = array();
    $interfaces = get_configured_interface_with_descr(false, true);
    $carplist = get_configured_carp_interface_list();
开发者ID:toshisam,项目名称:pfsense,代码行数:31,代码来源:firewall_virtual_ip_edit.php


示例15: gettext

    if (count($pconfig['item']) == 0) {
        $input_errors[] = gettext("No gateway(s) have been selected to be used in this group");
    }
    if (!$input_errors) {
        $gateway_group = array();
        $gateway_group['name'] = $_POST['name'];
        $gateway_group['item'] = $pconfig['item'];
        $gateway_group['trigger'] = $_POST['trigger'];
        $gateway_group['descr'] = $_POST['descr'];
        if (isset($id) && $a_gateway_groups[$id]) {
            $a_gateway_groups[$id] = $gateway_group;
        } else {
            $a_gateway_groups[] = $gateway_group;
        }
        mark_subsystem_dirty('staticroutes');
        mark_subsystem_dirty('gwgroup.' . $gateway_group['name']);
        write_config();
        header("Location: system_gateway_groups.php");
        exit;
    }
}
$pgtitle = array(gettext("System"), gettext("Routing"), gettext("Gateway Groups"), gettext("Edit"));
$shortcut_section = "gateway-groups";
function build_gateway_protocol_map(&$a_gateways)
{
    $result = array();
    foreach ($a_gateways as $gwname => $gateway) {
        $result[$gwname] = $gateway['ipprotocol'];
    }
    return $result;
}
开发者ID:ajiwo,项目名称:pfsense,代码行数:31,代码来源:system_gateway_groups_edit.php


示例16: mark_subsystem_dirty

        if (write_config()) {
            mark_subsystem_dirty('natconf');
        }
        header("Location: firewall_nat_1to1.php");
        exit;
    }
} else {
    if ($_GET['act'] == "toggle") {
        if ($a_1to1[$_GET['id']]) {
            if (isset($a_1to1[$_GET['id']]['disabled'])) {
                unset($a_1to1[$_GET['id']]['disabled']);
            } else {
                $a_1to1[$_GET['id']]['disabled'] = true;
            }
            if (write_config(gettext("Firewall: NAT: 1:1, enable/disable NAT rule"))) {
                mark_subsystem_dirty('natconf');
            }
            header("Location: firewall_nat_1to1.php");
            exit;
        }
    }
}
$pgtitle = array(gettext("Firewall"), gettext("NAT"), gettext("1:1"));
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('natconf')) {
    print_apply_box(gettext('The NAT configuration has been changed.') . '<br />' . gettext('You must apply the changes in order for them to take effect.'));
}
$tab_array = array();
开发者ID:nwholloway,项目名称:pfsense,代码行数:31,代码来源:firewall_nat_1to1.php


示例17: unset

                    break;
                }
            }
            /* Only relocate the entry if we  */
            /* found it, and it's not already */
            /* at the end.                    */
            if ($i > -1 && $i < count($a_nat) - 1) {
                $tmp = $a_nat[$i];
                unset($a_nat[$i]);
                $a_nat[] = $tmp;
            }
        }
        /* Now write the new engine array to conf */
        write_config("Snort pkg: modified ftp_telnet_server engine settings.");
        // We have saved a preproc config change, so set "dirty" flag
        mark_subsystem_dirty('snort_preprocessors');
        header("Location: /snort/snort_preprocessors.php?id={$id}#ftp_telnet_row_ftp_proto_opts");
        exit;
    }
}
$if_friendly = convert_friendly_interface_to_friendly_descr($config['installedpackages']['snortglobal']['rule'][$id]['interface']);
$pgtitle = gettext("Snort: Interface {$if_friendly} - FTP Preprocessor Server Engine");
include_once "head.inc";
?>

<body link="#0000CC" vlink="#0000CC" alink="#0000CC" >

<?php 
include "fbegin.inc";
if ($input_errors) {
    print_input_errors($input_errors);
开发者ID:LFCavalcanti,项目名称:pfsense-packages,代码行数:31,代码来源:snort_ftp_server_engine.php


示例18: write_config

                if (!empty($pconfig[$fieldname])) {
                    $client[$fieldname] = $pconfig[$fieldname];
                }
            }
            if (!empty($pconfig['enable'])) {
                $client['enable'] = true;
            }
            if (!empty($pconfig['net_list'])) {
                $client['net_list'] = true;
            }
            if (!empty($pconfig['save_passwd'])) {
                $client['save_passwd'] = true;
            }
            $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";
开发者ID:nasaa0528,项目名称:core,代码行数:31,代码来源:vpn_ipsec_mobile.php


示例19: mark_subsystem_dirty

            }
            /* copy $movebtn route */
            if ($movebtn < count($a_routes)) {
                $a_routes_new[] = $a_routes[$movebtn];
            }
            /* copy all routes > $movebtn and not selected */
            for ($i = $movebtn + 1; $i < count($a_routes); $i++) {
                if (!in_array($i, $_POST['route'])) {
                    $a_routes_new[] = $a_routes[$i];
                }
            }
            if (count($a_routes_new) > 0) {
                $a_routes = $a_routes_new;
            }
            if (write_config()) {
                mark_subsystem_dirty('staticroutes');
            }
            header("Location: system_routes.php");
            exit;
        }
    }
}
$pgtitle = array(gettext("System"), gettext("Static Routes"));
$shortcut_section = "routing";
include "head.inc";
?>

<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
?>
开发者ID:rohankapoorcom,项目名称:pfsense,代码行数:31,代码来源:system_routes.php


示例20: implode

        }
        if (count($users) > 0) {
            $pppoecfg['username'] = implode(" ", $users);
        }
        if (!isset($id)) {
            $id = count($a_pppoes);
        }
        if (file_exists('/tmp/.vpn_pppoe.apply')) {
            $toapplylist = unserialize(file_get_contents('/tmp/.vpn_pppoe.apply'));
        } else {
            $toapplylist = array();
        }
        $toapplylist[] = $pppoecfg['pppoeid'];
        $a_pppoes[$id] = $pppoecfg;
        write_config();
        mark_subsystem_dirty('vpnpppoe');
        file_put_contents('/tmp/.vpn_pppoe.apply', serialize($toapplylist));
        header("Location: vpn_pppoe.php");
        exit;
    }
}
$shortcut_section = "pppoes";
include "head.inc";
?>

<body>
<?php 
include "fbegin.inc";
?>

	<script type="text/javascript" src="/javascript/row_helper.js"></script>
开发者ID:8191,项目名称:opnsense-core,代码行数:31,代码来源:vpn_pppoe_edit.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP mark_thread_read函数代码示例发布时间:2022-05-15
下一篇:
PHP mark_forum_read函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap