当前位置: 首页>>代码示例>>PHP>>正文


PHP print_apply_box函数代码示例

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


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

示例1: array

        }
    }
}
$pgtitle = array(gettext("System"), gettext("Advanced"), gettext("System Tunables"));
if ($act == "edit") {
    $pgtitle[] = gettext('Edit');
}
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('sysctl') && $act != "edit") {
    print_apply_box(gettext("The firewall tunables have changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("Admin Access"), false, "system_advanced_admin.php");
$tab_array[] = array(htmlspecialchars(gettext("Firewall & NAT")), false, "system_advanced_firewall.php");
$tab_array[] = array(gettext("Networking"), false, "system_advanced_network.php");
$tab_array[] = array(gettext("Miscellaneous"), false, "system_advanced_misc.php");
$tab_array[] = array(gettext("System Tunables"), true, "system_advanced_sysctl.php");
$tab_array[] = array(gettext("Notifications"), false, "system_advanced_notifications.php");
display_top_tabs($tab_array);
if ($act != "edit") {
    ?>
<div class="panel panel-default">
	<div class="panel-heading">
		<h2 class="panel-title"><?php 
    echo gettext('System Tunables');
开发者ID:KyleJohnstonNet,项目名称:pfsense,代码行数:31,代码来源:system_advanced_sysctl.php

示例2: mark_subsystem_dirty

            }
            if (write_config(gettext("Firewall: NAT: Port forward, enable/disable NAT rule"))) {
                mark_subsystem_dirty('natconf');
            }
            header("Location: firewall_nat.php");
            exit;
        }
    }
}
$pgtitle = array(gettext("Firewall"), gettext("NAT"), gettext("Port Forward"));
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('The changes must be applied for them to take effect.'));
}
$tab_array = array();
$tab_array[] = array(gettext("Port Forward"), true, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
display_top_tabs($tab_array);
$columns_in_table = 13;
?>

<form action="firewall_nat.php" method="post" name="iform">
	<div class="panel panel-default">
		<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('Rules');
?>
开发者ID:curtiszimmerman,项目名称:pfsense,代码行数:31,代码来源:firewall_nat.php

示例3: array

{
    global $a_gateways, $if;
    $list = array("none" => gettext("None"));
    foreach ($a_gateways as $gateway) {
        if ($gateway['interface'] == $if && is_ipaddrv6($gateway['gateway'])) {
            $list[$gateway['name']] = $gateway['name'] . " - " . $gateway['gateway'];
        }
    }
    return $list;
}
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if (is_subsystem_dirty('interfaces')) {
    print_apply_box(sprintf(gettext("The %s configuration has been changed."), $wancfg['descr']) . "<br />" . gettext("You must apply the changes in order for them to take effect. Don't forget to adjust the DHCP Server range if needed after applying."));
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
$form = new Form(new Form_Button('Submit', gettext("Save")));
$section = new Form_Section('General configuration');
$section->addInput(new Form_Checkbox('enable', 'Enable', 'Enable interface', $pconfig['enable'], 'yes'));
$section->addInput(new Form_Input('descr', 'Description', 'text', $pconfig['descr']))->setHelp('Enter a description (name) for the interface here.');
$section->addInput(new Form_Select('type', 'IPv4 Configuration Type', $pconfig['type'], $types4));
$section->addInput(new Form_Select('type6', 'IPv6 Configuration Type', $pconfig['type6'], $types6));
$macaddress = new Form_Input('spoofmac', 'MAC Address', 'text', $pconfig['spoofmac'], ['placeholder' => 'xx:xx:xx:xx:xx:xx']);
$btnmymac = new Form_Button('btnmymac', 'Copy My MAC');
$btnmymac->removeClass('btn-primary')->addClass('btn-success btn-sm');
$group = new Form_Group('MAC controls');
$group->add($macaddress);
开发者ID:ajiwo,项目名称:pfsense,代码行数:31,代码来源:interfaces.php

示例4: uniqid

        $uniqid = uniqid("{$cpzone}_mac");
        file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules);
        mwexec("/sbin/ipfw -x {$cpzoneid} -q {$g['tmp_path']}/{$uniqid}_tmp");
        @unlink("{$g['tmp_path']}/{$uniqid}_tmp");
        unset($a_passthrumacs[$_GET['id']]);
        write_config();
        header("Location: services_captiveportal_mac.php?zone={$cpzone}");
        exit;
    }
}
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('passthrumac')) {
    print_apply_box(gettext("The Captive Portal MAC address configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("Configuration"), false, "services_captiveportal.php?zone={$cpzone}");
$tab_array[] = array(gettext("MACs"), true, "services_captiveportal_mac.php?zone={$cpzone}");
$tab_array[] = array(gettext("Allowed IP Addresses"), false, "services_captiveportal_ip.php?zone={$cpzone}");
$tab_array[] = array(gettext("Allowed Hostnames"), false, "services_captiveportal_hostname.php?zone={$cpzone}");
$tab_array[] = array(gettext("Vouchers"), false, "services_captiveportal_vouchers.php?zone={$cpzone}");
$tab_array[] = array(gettext("File Manager"), false, "services_captiveportal_filemanager.php?zone={$cpzone}");
display_top_tabs($tab_array, true);
?>
<div class="table-responsive">
	<table class="table table-hover table-striped table-condensed table-rowdblclickedit">
		<thead>
			<tr>
				<th><?php 
开发者ID:KyleJohnstonNet,项目名称:pfsense,代码行数:31,代码来源:services_captiveportal_mac.php

示例5: mark_subsystem_dirty

            }
            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();
$tab_array[] = array(gettext("Port Forward"), false, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), true, "firewall_nat_1to1.php");
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
display_top_tabs($tab_array);
?>
<form action="firewall_nat_1to1.php" method="post">
	<div class="panel panel-default">
		<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext("NAT 1:1 Mappings");
?>
</h2></div>
		<div id="mainarea" class="table-responsive panel-body">
开发者ID:nwholloway,项目名称:pfsense,代码行数:31,代码来源:firewall_nat_1to1.php

示例6: unset

        if (isset($config['voucher'][$cpzone])) {
            unset($config['voucher'][$cpzone]);
        }
        write_config();
    }
    header("Location: services_captiveportal_zones.php");
    exit;
}
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Zones"));
$shortcut_section = "captiveportal";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('captiveportal')) {
    print_apply_box(gettext("The Captive Portal entry list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
?>
<form action="services_captiveportal_zones.php" method="post">
	<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('Captive Portal Zones');
?>
</h2></div>
		<div class="panel-body table-responsive">
			<table class="table table-striped table-hover">
				<thead>
					<tr>
						<th><?php 
echo gettext('Zone');
?>
开发者ID:hexaclock,项目名称:pfsense,代码行数:31,代码来源:services_captiveportal_zones.php

示例7: unset

        unset($a_secret[$_GET['id']]);
        write_config();
        mark_subsystem_dirty('l2tpusers');
        pfSenseHeader("vpn_l2tp_users.php");
        exit;
    }
}
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (isset($config['l2tp']['radius']['enable'])) {
    print_info_box(gettext("RADIUS is enabled. The local user database will not be used."));
}
if (is_subsystem_dirty('l2tpusers')) {
    print_apply_box(gettext("The L2TP user list has been modified.") . "<br />" . gettext("The changes must be applied for them to take effect") . ".<br /><b>" . gettext("Warning: this will terminate all current L2TP sessions!") . "</b>");
}
$tab_array = array();
$tab_array[] = array(gettext("Configuration"), false, "vpn_l2tp.php");
$tab_array[] = array(gettext("Users"), true, "vpn_l2tp_users.php");
display_top_tabs($tab_array);
?>
<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('L2TP Users');
?>
</h2></div>
	<div class="panel-body">
		<div class="table-responsive">
			<table class="table table-striped table-hover">
				<thead>
开发者ID:LFCavalcanti,项目名称:pfsense,代码行数:31,代码来源:vpn_l2tp_users.php

示例8: pfSenseHeader

                pfSenseHeader("system_advanced_sysctl.php");
                exit;
            }
        }
    }
}
$pgtitle = array(gettext("System"), gettext("Advanced"), gettext("System Tunables"));
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('sysctl') && $act != "edit") {
    print_apply_box(gettext("The firewall tunables have changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("Admin Access"), false, "system_advanced_admin.php");
$tab_array[] = array(gettext("Firewall / NAT"), false, "system_advanced_firewall.php");
$tab_array[] = array(gettext("Networking"), false, "system_advanced_network.php");
$tab_array[] = array(gettext("Miscellaneous"), false, "system_advanced_misc.php");
$tab_array[] = array(gettext("System Tunables"), true, "system_advanced_sysctl.php");
$tab_array[] = array(gettext("Notifications"), false, "system_advanced_notifications.php");
display_top_tabs($tab_array);
if ($act != "edit") {
    ?>
<div class="panel panel-default">
	<div class="panel-heading">
		<h2 class="panel-title"><?php 
    echo gettext('System Tunables');
开发者ID:hexaclock,项目名称:pfsense,代码行数:31,代码来源:system_advanced_sysctl.php

示例9: foreach

}
foreach ($tab_array as $dtab) {
    if ($dtab[1]) {
        $bctab = $dtab[0];
        break;
    }
}
$pgtitle = array(gettext("Firewall"), gettext("Rules"), $bctab);
$shortcut_section = "firewall";
include "head.inc";
$nrules = 0;
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('filter')) {
    print_apply_box(gettext("The firewall rule configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
display_top_tabs($tab_array);
$showantilockout = false;
$showprivate = false;
$showblockbogons = false;
if (!isset($config['system']['webgui']['noantilockout']) && (count($config['interfaces']) > 1 && $if == 'lan' || count($config['interfaces']) == 1 && $if == 'wan')) {
    $showantilockout = true;
}
if (isset($config['interfaces'][$if]['blockpriv'])) {
    $showprivate = true;
}
if (isset($config['interfaces'][$if]['blockbogons'])) {
    $showblockbogons = true;
}
/* Load the counter data of each pf rule. */
开发者ID:LFCavalcanti,项目名称:pfsense,代码行数:31,代码来源:firewall_rules.php

示例10: write_config

            write_config();
            mark_subsystem_dirty('loadbalancer');
        }
    }
}
$pgtitle = array(gettext("Services"), gettext("Load Balancer"), gettext("Settings"));
$shortcut_section = "relayd";
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('loadbalancer')) {
    print_apply_box(gettext("The load balancer configuration has been changed.") . ' ' . gettext("You must apply the changes in order for them to take effect."));
}
/* active tabs */
$tab_array = array();
$tab_array[] = array(gettext("Pools"), false, "load_balancer_pool.php");
$tab_array[] = array(gettext("Virtual Servers"), false, "load_balancer_virtual_server.php");
$tab_array[] = array(gettext("Monitors"), false, "load_balancer_monitor.php");
$tab_array[] = array(gettext("Settings"), true, "load_balancer_setting.php");
display_top_tabs($tab_array);
$form = new Form();
$section = new Form_Section('Relayd Global Settings');
$section->addInput(new Form_Input('timeout', 'Timeout', 'text', $pconfig['timeout']))->setHelp('Set the global timeout in milliseconds for checks. Leave blank to use the default value of 1000 ms');
$section->addInput(new Form_Input('interval', 'Interval', 'text', $pconfig['interval']))->setHelp('Set the interval in seconds at which the member of a pool will be checked. Leave blank to use the default interval of 10 seconds');
$section->addInput(new Form_Input('prefork', 'Prefork', 'text', $pconfig['prefork']))->setHelp('Number of processes forked in advance by relayd. Leave blank to use the default value of 5 processes');
$form->add($section);
print $form;
开发者ID:hexaclock,项目名称:pfsense,代码行数:31,代码来源:load_balancer_setting.php

示例11: gettext

            $class = "success";
        } else {
            $applymsg = gettext("Reboot is needed. Please apply the settings in order to reboot.");
            $class = "warning";
        }
    } else {
        $savemsg = gettext("Interface mismatch detected. Please resolve the mismatch, save and then click 'Apply Changes'. The firewall will reboot afterwards.");
        $class = "warning";
    }
}
if (file_exists("/tmp/reload_interfaces")) {
    echo "<p>\n";
    print_apply_box(gettext("The interface configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
    echo "<br /></p>\n";
} elseif ($applymsg) {
    print_apply_box($applymsg);
} elseif ($savemsg) {
    print_info_box($savemsg, $class);
}
pfSense_handle_custom_code("/usr/local/pkg/interfaces_assign/pre_input_errors");
if ($input_errors) {
    print_input_errors($input_errors);
}
$tab_array = array();
$tab_array[] = array(gettext("Interface Assignments"), true, "interfaces_assign.php");
$tab_array[] = array(gettext("Interface Groups"), false, "interfaces_groups.php");
$tab_array[] = array(gettext("Wireless"), false, "interfaces_wireless.php");
$tab_array[] = array(gettext("VLANs"), false, "interfaces_vlan.php");
$tab_array[] = array(gettext("QinQs"), false, "interfaces_qinq.php");
$tab_array[] = array(gettext("PPPs"), false, "interfaces_ppps.php");
$tab_array[] = array(gettext("GREs"), false, "interfaces_gre.php");
开发者ID:NewEraCracker,项目名称:pfsense,代码行数:31,代码来源:interfaces_assign.php

示例12: array

$tab_array[] = array(gettext("URLs"), $tab == "url" ? true : false, "/firewall_aliases.php?tab=url");
$tab_array[] = array(gettext("All"), $tab == "all" ? true : false, "/firewall_aliases.php?tab=all");
foreach ($tab_array as $dtab) {
    if ($dtab[1] == true) {
        $bctab = $dtab[0];
        break;
    }
}
$pgtitle = array(gettext("Firewall"), gettext("Aliases"), $bctab);
$shortcut_section = "aliases";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('aliases')) {
    print_apply_box(gettext("The alias list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
display_top_tabs($tab_array);
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo sprintf(gettext('Firewall Aliases %s'), $bctab);
?>
</h2></div>
	<div class="panel-body">

<div class="table-responsive">
<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
	<thead>
		<tr>
开发者ID:nwholloway,项目名称:pfsense,代码行数:31,代码来源:firewall_aliases.php

示例13: mwexec

            mwexec("/bin/rm -r {$g['varetc_path']}/pppoe" . $a_pppoes[$_GET['id']]['pppoeid']);
        }
        unset($a_pppoes[$_GET['id']]);
        write_config();
        header("Location: services_pppoe.php");
        exit;
    }
}
$pgtitle = array(gettext("Services"), gettext("PPPoE Server"));
$shortcut_section = "pppoes";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('vpnpppoe')) {
    print_apply_box(gettext('The PPPoE entry list has been changed.') . '<br />' . gettext('The changes must be applied for them to take effect.'));
}
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('PPPoE Server');
?>
</h2></div>
	<div class="panel-body">
	
	<div class="table-responsive">
	<table class="table table-striped table-hover table-condensed table-rowdblclickedit">
		<thead>
			<tr>
				<th><?php 
开发者ID:NewEraCracker,项目名称:pfsense,代码行数:31,代码来源:services_pppoe.php

示例14: unset

    if ($a_secret[$_GET['id']]) {
        unset($a_secret[$_GET['id']]);
        write_config(gettext("Deleted IPsec Pre-Shared Key"));
        mark_subsystem_dirty('ipsec');
        header("Location: vpn_ipsec_keys.php");
        exit;
    }
}
$pgtitle = array(gettext("VPN"), gettext("IPsec"), gettext("Pre-Shared Keys"));
$shortcut_section = "ipsec";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg);
}
if (is_subsystem_dirty('ipsec')) {
    print_apply_box(gettext("The IPsec tunnel configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
$tab_array = array();
$tab_array[0] = array(gettext("Tunnels"), false, "vpn_ipsec.php");
$tab_array[1] = array(gettext("Mobile Clients"), false, "vpn_ipsec_mobile.php");
$tab_array[2] = array(gettext("Pre-Shared Keys"), true, "vpn_ipsec_keys.php");
$tab_array[3] = array(gettext("Advanced Settings"), false, "vpn_ipsec_settings.php");
display_top_tabs($tab_array);
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('Pre-Shared Keys');
?>
</h2></div>
	<div class="panel-body">
开发者ID:NewEraCracker,项目名称:pfsense,代码行数:31,代码来源:vpn_ipsec_keys.php

示例15: array

$tab_array[] = array(gettext("URLs"), $tab == "url" ? true : false, "/firewall_aliases.php?tab=url");
$tab_array[] = array(gettext("All"), $tab == "all" ? true : false, "/firewall_aliases.php?tab=all");
foreach ($tab_array as $dtab) {
    if ($dtab[1] == true) {
        $bctab = $dtab[0];
        break;
    }
}
$pgtitle = array(gettext("Firewall"), gettext("Aliases"), $bctab);
$shortcut_section = "aliases";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, $class);
}
if (is_subsystem_dirty('aliases')) {
    print_apply_box(gettext("The alias list has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
display_top_tabs($tab_array);
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo sprintf(gettext('Firewall Aliases %s'), $bctab);
?>
</h2></div>
	<div class="panel-body">

<div class="table-responsive">
<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
	<thead>
		<tr>
开发者ID:KyleJohnstonNet,项目名称:pfsense,代码行数:31,代码来源:firewall_aliases.php


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