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


PHP Session::logcheck方法代码示例

本文整理汇总了PHP中Session::logcheck方法的典型用法代码示例。如果您正苦于以下问题:PHP Session::logcheck方法的具体用法?PHP Session::logcheck怎么用?PHP Session::logcheck使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Session的用法示例。


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

示例1: gettext

*   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
*   MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
****************************************************************************/
/**
* Class and Function List:
* Function list:
* Classes list:
*/
require_once 'classes/Session.inc';
Session::logcheck("MenuMonitors", "MonitorsNetwork");
?>


<html>
<head>
  <title> <?php 
echo gettext("OSSIM Framework");
?>
 </title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  <link rel="stylesheet" type="text/css" href="../style/style.css"/>
</head>
<body>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:30,代码来源:menu_session.php

示例2: print_form

*/
/************************************************************************************/
/************************************************************************************/
/***                                                                              ***/
/***  IF YOU MODIFY THIS FILE, PLEASE CHECK IT WORKS RIGHT IN THE WELCOME WIZARD  ***/
/***                                                                              ***/
/************************************************************************************/
/************************************************************************************/
/**
* Function list:
* - function print_form($msg_errors = '')
* - function clean_iic($string)
* - function import_assets_from_csv($filename, $iic, $ctx, $import_type)
*/
require_once 'av_init.php';
Session::logcheck('environment-menu', 'PolicyNetworks');
//Functions
function print_form($import_type)
{
    $config = array('networks' => array('contexts' => array('show_tree' => Session::show_entities(), 'default_value' => Session::get_default_ctx()), 'chk_iic' => array('show' => TRUE, 'checked' => FALSE), 'help' => array('Version 4.x.x' => array('format' => _('"Netname"*;"CIDRs(CIDR1,CIDR2,...)"*;"Description";"Asset value"*;"Net ID"'), 'example' => '"Net_1";"192.168.10.0/24,192.168.9.0/24";"' . _('Short description') . '";"2";"479D45C0BBF22B4458BD2F8EE09ECAC2"'), 'Version 3.x.x' => array('format' => _('"Netname"*;"CIDRs(CIDR1,CIDR2,...)"*;"Description";"Asset value";"Sensors(Sensor1,Sensor2,...)"*'), 'example' => '"Net_1";"192.168.10.0/24,192.168.9.0/24";"' . _('Short description') . '";"2";"192.168.10.2,192.168.10.3"'))), 'welcome_wizard_nets' => array('contexts' => array('show_tree' => FALSE, 'default_value' => Session::get_default_ctx()), 'chk_iic' => array('show' => FALSE, 'checked' => TRUE), 'help' => array('Version 4.x.x' => array('format' => _('"Netname"*;"CIDRs(CIDR1,CIDR2,...)"*;"Description"'), 'example' => '"Net_1";"192.168.10.0/24,192.168.9.0/24";"' . _('Short description') . '"'))));
    if (!array_key_exists($import_type, $config)) {
        echo ossim_error(_('Error! Import Type not found'));
    } else {
        ?>
    	<div id='av_info'></div>
    	
    	<form name='form_csv' id='form_csv' method='POST' action='import_all_nets_ajax.php' enctype='multipart/form-data' target='iframe_upload'>        
			
			<input type="hidden" name="ctx" id="ctx" value="<?php 
        echo $config[$import_type]['contexts']['default_value'];
        ?>
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:import_all_nets.php

示例3: gmdate

* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
require_once 'ossim_db.inc';
require_once 'general.php';
Session::logcheck("analysis-menu", "EventsForensics");
$it_security = "";
$address = "";
$tlfn = "";
$tz = Util::get_timezone();
$date = gmdate("Y-m-d H:i:s", gmdate("U") + 3600 * $tz);
$maintitle = $report_data['report_name'];
$db = new ossim_db();
$conn = $db->connect();
$t_params = array();
$t_params[] = $user;
$t_query = "SELECT dataV1, dataV2 \r\n\t\t  FROM datawarehouse.report_data \r\n\t\t  WHERE id_report_data_type=35 and user=?";
$conn->SetFetchMode(ADODB_FETCH_ASSOC);
$t_rs = $conn->Execute($t_query, $t_params);
if (!$t_rs) {
    $filter = '';
开发者ID:alienfault,项目名称:ossim,代码行数:31,代码来源:titlepage.php

示例4: REQUEST

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck('configuration-menu', 'CorrelationCrossCorrelation');
$action = 'insert';
$url_form = 'newpluginref.php';
$button_text = Util::js_entities(_("Create rule"));
$plugin_id1 = REQUEST('plugin_id1');
$plugin_id2 = REQUEST('plugin_id2');
$plugin_sid1 = REQUEST('plugin_sid1');
$plugin_sid2 = REQUEST('plugin_sid2');
if ($plugin_id1 != '' || $plugin_id2 != '' || $plugin_sid1 != '' || $plugin_sid2 != '') {
    $action = 'modify';
    $url_form = 'modifypluginref.php';
    $button_text = Util::js_entities(_('Save rule'));
    ossim_valid($plugin_id1, OSS_DIGIT, 'illegal:' . _('Plugin ID1'));
    ossim_valid($plugin_id2, OSS_DIGIT, 'illegal:' . _('Plugin ID2'));
    ossim_valid($plugin_sid1, OSS_DIGIT, 'illegal:' . _('Plugin SID1'));
    ossim_valid($plugin_sid2, OSS_DIGIT, 'illegal:' . _('Plugin SID2'));
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:newpluginrefform.php

示例5: array

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck('environment-menu', 'PolicyHosts');
//CPE Types
$_cpe_types = array('os' => 'o', 'hardware' => 'h', 'software' => 'a');
$_cpe = GET('q');
$_cpe_type = GET('cpe_type');
ossim_valid($_cpe, OSS_NULLABLE, OSS_ALPHA, OSS_PUNC_EXT, 'illegal:' . _('CPE'));
ossim_valid($_cpe_type, 'os | software | hardware', 'illegal:' . _('CPE Type'));
if (ossim_error() || !array_key_exists($_cpe_type, $_cpe_types)) {
    exit;
}
$db = new Ossim_db();
$conn = $db->connect();
$_cpe = escape_sql($_cpe, $conn);
$filters = array('where' => "`cpe` LIKE 'cpe:/" . $_cpe_types[$_cpe_type] . "%' AND `line` LIKE '%{$_cpe}%'", 'limit' => 20);
$software = new Software($conn, $filters);
$db->close();
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:search_cpe.php

示例6: _

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck("dashboard-menu", "IPReputation");
$perms = array('admin' => Session::am_i_admin());
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title><?php 
echo _('Open Threat Exchange Configuration');
?>
</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <meta http-equiv="Pragma" content="no-cache"/>

    <?php 
//CSS Files
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:config.php

示例7: get_policy_entities

* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
/**
* Function list:
* - get_policy_entities
* - message_ok()
* - email_form()
* - exec_form()
* - ticket_form()
* - submit()
*/
require_once 'av_init.php';
Session::logcheck('configuration-menu', 'PolicyActions');
function get_policy_entities($conn)
{
    $entities = $entities_all = array();
    $entities_all = Acl::get_entities_to_assign($conn);
    foreach ($entities_all as $k => $v) {
        if (Acl::is_logical_entity($conn, $k)) {
            $parent_id = Acl::get_logical_ctx_id($conn, $k);
            $parent_id = $parent_id[0];
            // first
            $parent_name = Acl::get_entity_name($conn, $parent_id);
            $entities[$parent_id] = $parent_name;
        } else {
            $entities[$k] = $v;
        }
    }
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:actionform.php

示例8: dirname

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once dirname(__FILE__) . '/../../conf/config.inc';
Session::logcheck('environment-menu', 'EventsHidsConfig');
$data['status'] = 'success';
$data['data'] = NULL;
$file = $_SESSION['_current_file'];
$sensor_id = POST('sensor_id');
$new_xml_data = $_POST['data'];
$token = POST('token');
ossim_valid($sensor_id, OSS_HEX, 'illegal:' . _('Sensor ID'));
ossim_valid($file, OSS_ALPHA, OSS_SCORE, OSS_DOT, 'illegal:' . _('File'));
if (ossim_error()) {
    $data['status'] = 'error';
    $data['data'] = ossim_get_error_clean();
} else {
    if (!Token::verify('tk_f_rules', $token)) {
        $data['status'] = 'error';
        $data['data'] = Token::create_error_message();
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:save.php

示例9: gettext

*   MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
****************************************************************************/
/**
* Class and Function List:
* Function list:
* Classes list:
*/
require_once 'classes/Session.inc';
require_once 'classes/Util.inc';
Session::logcheck("MenuPolicy", "PolicyHosts");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title> <?php 
echo gettext("OSSIM Framework");
?>
 </title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Pragma" CONTENT="no-cache"/>
	<link rel="stylesheet" type="text/css" href="../style/style.css"/>
</head>

<body>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:deletehost.php

示例10: max

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck("dashboard-menu", "ControlPanelExecutive");
$min_font_size = 10;
$max_font_size = 35;
$maximum_count = max(array_values($data));
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<?php 
if (isset($widget_refresh) && $widget_refresh != 0) {
    echo '<meta http-equiv="refresh" content="' . $widget_refresh . '">';
}
?>
	
开发者ID:jackpf,项目名称:ossim-arc,代码行数:30,代码来源:tag_cloud.php

示例11: array

/***********************************************************/
/* See the README.txt and/or help files for more           */
/* information on how to use & config.                     */
/* See the LICENSE.txt file for more information on the    */
/* License this software is distributed under.             */
/*                                                         */
/* This program is intended for use in an authorized       */
/* manner only, and the author can not be held liable for  */
/* anything done with this program, code, or items         */
/* discovered with this program's use.                     */
/***********************************************************/
require_once 'av_init.php';
require_once 'config.php';
require_once 'functions.inc';
require_once 'ossim_sql.inc';
Session::logcheck("environment-menu", "EventsVulnerabilities");
$pageTitle = "Lookup";
$getParams = array("disp", "id", "op", "nid", "lookup", "eventid", "org", "site", "showlive", "last30");
$db = new ossim_db();
$conn = $db->connect();
switch ($_SERVER['REQUEST_METHOD']) {
    case "GET":
        foreach ($getParams as $gp) {
            if (isset($_GET[$gp])) {
                ${$gp} = Util::htmlentities(escape_sql(trim($_GET[$gp]), $conn));
            } else {
                ${$gp} = "";
            }
        }
        break;
}
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:lookup.php

示例12: isset

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck("configuration-menu", "ConfigurationUserActionLog");
$update = isset($_POST['update']) && POST('update') != '' ? true : false;
/* connect to db */
$db = new ossim_db();
$conn = $db->connect();
$status = true;
$ua_items = array();
$ua_logged = array();
$ua_not_logged = array();
if ($log_conf_list = Log_config::get_list($conn, "")) {
    foreach ($log_conf_list as $log_conf) {
        $descr = preg_replace('|%.*?%|', " ", $log_conf->get_descr());
        $descr = trim($descr) == '' ? _("Various") : $descr;
        $code = $log_conf->get_code();
        $ua_items[$code] = array("descr" => $descr, "log" => $log_conf->get_log());
        if ($log_conf->get_log()) {
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:userlog.php

示例13: array

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck("configuration-menu", "PolicyServers");
$validate = array("id" => array("validation" => "OSS_HEX", "e_message" => 'illegal:' . _("ID")), "sname" => array("validation" => "OSS_ALPHA, OSS_PUNC", "e_message" => 'illegal:' . _("Name")), "ip" => array("validation" => "OSS_IP_ADDR", "e_message" => 'illegal:' . _("Ip")), "port" => array("validation" => "OSS_PORT", "e_message" => 'illegal:' . _("Port number")), "descr" => array("validation" => "OSS_ALL, OSS_NULLABLE", "e_message" => 'illegal:' . _("Description")), "correlate" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Correlation")), "cross_correlate" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Cross Correlation")), "store" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Store")), "reputation" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Reputation")), "qualify" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Qualify")), "resend_alarms" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Resend Alarms")), "resend_events" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Resend Events")), "sign" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Sign")), "multi" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Multilevel")), "sem" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Log")), "sim" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Security Events")), "alarm_to_syslog" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Alarm to Syslog")), "remoteadmin" => array("validation" => "OSS_ALPHA, OSS_PUNC, OSS_NULLABLE", "e_message" => 'illegal:' . _("Remote Admin")), "remotepass" => array("validation" => "OSS_PASSWORD, OSS_NULLABLE", "e_message" => 'illegal:' . _("Remote Password")), "remoteurl" => array("validation" => "OSS_ALPHA, OSS_PUNC, OSS_NULLABLE", "e_message" => 'illegal:' . _("Remote URL")), "setssh" => array("validation" => "OSS_DIGIT, OSS_NULLABLE", "e_message" => 'illegal:' . _("setssh")));
if (GET('ajax_validation') == TRUE) {
    $data['status'] = 'OK';
    $validation_errors = array();
    if (GET('name') == 'rservers[]' && !empty($_GET['rservers'])) {
        $rservers = $_GET['rservers'];
        foreach ($rservers as $rserver) {
            $rserver = explode('@', $rserver);
            $fwr_ser = $rserver[0];
            $fwr_prio = $rserver[1];
            ossim_valid($fwr_ser, OSS_HEX, 'illegal:' . _("Forward Servers"));
            ossim_valid($fwr_prio, OSS_DIGIT, 'illegal:' . _("Forward Priority"));
            if (ossim_error()) {
                $validation_errors['rservers[]'] = ossim_get_error_clean();
                ossim_clean_error();
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:modifyserver.php

示例14: set_time_limit

* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
set_time_limit(180);
ini_set('memory_limit', '1024M');
ini_set('session.bug_compat_warn', 'off');
require_once 'av_init.php';
Session::logcheck("analysis-menu", "IncidentsReport");
$by = GET('by');
ossim_valid($by, OSS_ALPHA, OSS_SPACE, OSS_SCORE, 'illegal:' . _("Target"));
if (ossim_error()) {
    die(ossim_error());
}
// Define colors
$color_list = array('#D6302C', '#3933FC', 'green', 'yellow', 'pink', '#40E0D0', '#00008B', '#800080', '#FFA500', '#A52A2A', '#228B22', '#D3D3D3');
$conf = $GLOBALS["CONF"];
$jpgraph = $conf->get_conf("jpgraph_path");
require "{$jpgraph}/jpgraph.php";
require "{$jpgraph}/jpgraph_bar.php";
$db = new ossim_db();
$conn = $db->connect();
$shared = new DBA_shared(GET('shared'));
if ($by == "ticketsByTypePerMonth") {
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:incidents_stacked_bar_chart.php

示例15: GetSensorIDs

*/
/*******************************************************************************
** OSSIM Forensics Console
** Copyright (C) 2009 OSSIM/AlienVault
** Copyright (C) 2004 BASE Project Team
** Copyright (C) 2000 Carnegie Mellon University
**
** (see the file 'base_main.php' for license details)
**
** Built upon work by Roman Danyliw <rdd@cert.org>, <roman@danyliw.com>
** Built upon work by the BASE Project Team <kjohnson@secureideas.net>
*/
/* OSSIM session */
if ($use_ossim_session) {
    require_once 'classes/Session.inc';
    Session::logcheck($ossim_acid_aco_section, $ossim_acid_aco, $ossim_login_path);
}
function GetSensorIDs($db)
{
    $result = $db->baseExecute("SELECT sid FROM sensor;");
    while ($myrow = $result->baseFetchRow()) {
        $sensor_ids[] = $myrow[0];
    }
    $result->baseFreeRows();
    return $sensor_ids;
}
function GetSensorName($sid, $db)
{
    $name = "";
    $multiple = preg_match("/\\,/", $sid) ? true : false;
    if ($multiple) {
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_common.php


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