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


PHP captiveportal_configure_zone函数代码示例

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


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

示例1: array

require "functions.inc";
require_once "filter.inc";
require "shaper.inc";
require "captiveportal.inc";
global $cpzone;
global $cpzoneid;
if (!is_array($config['captiveportal'])) {
    $config['captiveportal'] = array();
}
$a_cp =& $config['captiveportal'];
if ($_GET['act'] == "del" && !empty($_GET['zone'])) {
    $cpzone = htmlspecialchars($_GET['zone']);
    if ($a_cp[$cpzone]) {
        $cpzoneid = $a_cp[$cpzone]['zoneid'];
        unset($a_cp[$cpzone]['enable']);
        captiveportal_configure_zone($a_cp[$cpzone]);
        unset($a_cp[$cpzone]);
        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);
}
开发者ID:littleblank,项目名称:pfsense,代码行数:31,代码来源:services_captiveportal_zones.php

示例2: base64_encode

            $newcp['page']['errtext'] = base64_encode(file_get_contents($_FILES['errfile']['tmp_name']));
        }
        if (is_uploaded_file($_FILES['logoutfile']['tmp_name'])) {
            $newcp['page']['logouttext'] = base64_encode(file_get_contents($_FILES['logoutfile']['tmp_name']));
        }
        write_config();
        /* Clear up unselected interfaces */
        $newifaces = explode(",", $newcp['interface']);
        $toremove = array_diff($oldifaces, $newifaces);
        if (!empty($toremove)) {
            foreach ($toremove as $removeif) {
                $removeif = get_real_interface($removeif);
                mwexec("/sbin/ipfw zone {$cpzoneid} mdel {$removeif}");
            }
        }
        captiveportal_configure_zone($newcp);
        unset($newcp, $newifaces, $toremove);
        filter_configure();
        header("Location: services_captiveportal_zones.php");
        exit;
    } else {
        if (is_array($_POST['cinterface'])) {
            $pconfig['cinterface'] = implode(",", $_POST['cinterface']);
        }
    }
}
function build_radiusnas_list()
{
    $list = array();
    $iflist = get_configured_interface_with_descr();
    foreach ($iflist as $ifdesc => $ifdescr) {
开发者ID:thiagoc,项目名称:pfsense,代码行数:31,代码来源:services_captiveportal.php


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