vue+ivew管理系统


vue+ivew管理系统vue+ivew管理系统vue+ivew管理系统vue+ivew管理系统vue+ivew管理系统
资源截图
代码片段和文件信息
/**
 * Flash Socket Policy Apache Module.
 *
 * This module provides a flash socket policy file on the same port that
 * serves HTTP on Apache. This can help simplify setting up a server that
 * supports cross-domain communication with flash.
 *
 * Quick note about Apache memory handling: Data is allocated from pools and
 * is not manually returned to those pools. The pools are typically considered
 * short-lived and will be cleaned up automatically by Apache.
 *
 * @author Dave Longley
 *
 * Copyright (c) 2010 Digital Bazaar Inc. All rights reserved.
 */
#include “httpd.h“
#include “http_config.h“
#include “http_core.h“

#include “ap_compat.h“

#include 

// length of a policy file request
#define PFR_LENGTH 23

// declare main module
module AP_MODULE_DECLARE_DATA fsp_module;

// configuration for the module
typedef struct fsp_config
{
   // the cross-domain policy to serve
   char* policy;
   apr_size_t policy_length;
} fsp_config;

// filter state for keeping track of detected policy file requests
typedef struct filter_state
{
   fsp_config* cfg;
   int checked;
   int found;
} filter_state;

// for registering hooks filters etc.
static void fsp_register_hooks(apr_pool_t *p);
static int fsp_pre_connection(conn_rec *c void *csd);

// filter handler declarations
static apr_status_t fsp_input_filter(
   ap_filter_t* f apr_bucket_brigade* bb
ap_input_mode_t mode apr_read_type_e block apr_off_t nbytes);
static int fsp_output_filter(ap_filter_t* f apr_bucket_brigade* bb);

/**
 * Registers the hooks for this module.
 *
 * @param p the pool to allocate from if necessary.
 */
static void fsp_register_hooks(apr_pool_t* p)
{
   // registers the pre-connection hook to handle adding filters
   ap_hook_pre_connection(
      fsp_pre_connection NULL NULL APR_HOOK_MIDDLE);

   // will parse a policy file request to be added in pre_connection
   ap_register_input_filter(
      “fsp_request“ fsp_input_filter
      NULL AP_FTYPE_CONNECTION);

   // will emit a cross-domain policy response to be added in pre_connection
   ap_register_output_filter(
      “fsp_response“ fsp_output_filter
      NULL AP_FTYPE_CONNECTION);
}

/**
 * A hook that is called before a connection is handled. This function will
 * get the module configuration and add the flash socket policy filters if
 * a cross-domain policy has been specified in the configuration.
 *
 * @param c the connection.
 * @param csd the connection socket descriptor.
 *
 * @return OK on success.
 */
static int fsp_pre_connection(conn_rec* c void* csd)
{
   // only install filters if a policy was specified in the module config
   fsp_config* cfg = ap_get_module_config(
      c->base_server->module_config &fsp_module);
   if(cfg->policy != NULL)
   {
      // allocate filter state
      filter_state* state = apr_palloc(c->pool sizeof(filter_state));
      if(state != NULL)
      {
         // initialize state
         state->cfg = cfg;
         state->checked = state->found = 0;

  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件          72  2017-12-14 15:00  .babelrc
     文件         147  2017-12-14 15:00  .editorconfig
     文件         127  2017-12-14 15:00  .gitignore
     目录           0  2018-01-08 15:35  assets
     目录           0  2018-02-07 09:17  assetscss
     文件        1604  2018-01-31 11:13  assetscsslogin.css
     文件         943  2018-02-07 09:17  assetscssmain.css
     文件          93  2017-12-29 16:44  assetscssmenu.css
     文件         584  2018-02-06 15:48  assetscssprojectList.css
     目录           0  2018-02-07 09:17  assetsimg
     文件        3717  2017-12-25 15:31  assetsimgfavicon.png
     文件        1193  2018-02-06 15:48  assetsimgGis.png
     文件        1415  2018-02-06 15:48  assetsimgGis1.png
     文件      702179  2017-12-25 15:44  assetsimgloginbg.png
     文件        3170  2017-12-25 15:34  assetsimglogo.png
     文件        1862  2018-01-10 11:41  assetsimg
oImg.png
     文件         834  2018-02-06 15:48  assetsimgplan.png
     文件        1066  2018-01-31 11:13  assetsimgqqIcon.png
     文件       29923  2018-02-07 09:17  assetsimgu30.png
     文件         880  2018-01-31 11:13  assetsimgwechat.png
     文件      130902  2018-02-06 15:48  assetsimg工程特性表.jpg
     文件      126193  2018-02-06 15:48  assetsimg投资估算表.png
     文件       50531  2018-01-18 10:21  BIMWeb.njsproj
     目录           0  2018-01-09 10:32  dist
     文件      366750  2018-01-11 13:55  distuild.js
     文件     1770725  2018-01-11 13:55  distuild.js.map
     文件        2886  2018-01-11 13:55  distcollapse.png
     文件        2894  2018-01-11 13:55  distexpand.png
     文件        3717  2018-01-11 13:55  distfavicon.png
     文件      303717  2018-01-11 13:55  disticonfont.svg
     文件         701  2018-01-11 13:55  distloading.gif
............此处省略15696个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)