123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- $config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/'; //CodeIgniter根URL
- $config['index_page'] = ''; //默认的索引文件 index.php
- $config['uri_protocol'] = 'REQUEST_URI'; //RUL链接 PATH_INFO
- $config['url_suffix'] = '.html'; //设置所有URL后缀
- $config['language'] = 'english';//使用的语言
- $config['charset'] = 'UTF-8';
- $config['enable_hooks'] = FALSE;//是否启用钩子功能
- $config['subclass_prefix'] = 'Lin_';//扩展类的前缀
- $config['composer_autoload'] = FALSE; //自动加载Composer
- $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\='; //允许的链接字符
- $config['allow_get_array'] = TRUE; //是否启用$_GET array
- /*
- |--------------------------------------------------------------------------
- |设置查询的字符串
- |--------------------------------------------------------------------------
- |
- */
- $config['enable_query_strings'] = FALSE;
- $config['controller_trigger'] = 'c';
- $config['function_trigger'] = 'm';
- $config['directory_trigger'] = 'd';
- /*
- |--------------------------------------------------------------------------
- | 错误记录
- |--------------------------------------------------------------------------
- | 0 = 禁用
- | 1 = 错误信息(包括PHP错误)
- | 2 = 调试消息
- | 3 = 信息消息
- | 4 = 所有的消息
- */
- $config['log_threshold'] = 1;
- $config['log_path'] = FCPATH.'data/log/'; //记录日志的路径
- $config['log_file_extension'] = '';//日志的扩展名,空为.php
- $config['log_file_permissions'] = 0644;//日志的权限
- $config['log_date_format'] = 'Y-m-d H:i:s';//日志日期名称格式
- $config['error_views_path'] = 'data/errors/'; //提示错误的路径
- $config['cache_path'] = ''; //缓存目录路径
- $config['cache_query_string'] = FALSE;//是否启用缓存
- $config['encryption_key'] = 'Kay89757SC';//设置加密密匙
- /*
- |--------------------------------------------------------------------------
- | Session
- |--------------------------------------------------------------------------
- */
- $config['sess_driver'] = 'files'; //使用于 files, database, redis, memcached
- $config['sess_cookie_name'] = 'star_session'; //名称
- $config['sess_expiration'] = 8640000; //时间
- $config['sess_save_path'] = FCPATH.'/tmp/'; //保存路径 只可绝对路径
- $config['sess_match_ip'] = FALSE; //是否匹配IP判断
- $config['sess_time_to_update'] = 8660000; //多久后生成新的ID
- $config['sess_regenerate_destroy'] = TRUE; //是否删除旧ID
- /*
- |--------------------------------------------------------------------------
- | Cookie
- |--------------------------------------------------------------------------
- */
- $config['cookie_prefix'] = '_STAR'; //设置Cookie前缀
- $config['cookie_domain'] = ''; //设置范围
- $config['cookie_path'] = '/';
- $config['cookie_secure'] = FALSE; //只在HTTPS里存在
- $config['cookie_httponly'] = FALSE;//只可以通过HTTP里存在
- $config['standardize_newlines'] = FALSE;//是否规范换行,不推荐使用
- $config['global_xss_filtering'] = FALSE; //XSS过滤,不推荐使用
- /*
- |--------------------------------------------------------------------------
- | 跨站请求伪造
- |--------------------------------------------------------------------------
- */
- $config['csrf_protection'] = FALSE; //是否开启
- $config['csrf_token_name'] = 'csrf_test_name'; //令牌名称
- $config['csrf_cookie_name'] = 'csrf_cookie_name'; //cookie名称
- $config['csrf_expire'] = 7200; //令牌过期时间
- $config['csrf_regenerate'] = TRUE; //每次重新生成令牌
- $config['csrf_exclude_uris'] = array();//忽略CSRF检查的URI数组
- $config['compress_output'] = FALSE;//启用输出Gzip压缩
- $config['time_reference'] = 'local';//时间时区
- $config['rewrite_short_tags'] = FALSE; //重写PHP短标签
- $config['proxy_ips'] = ''; //反向代理IP
|