<?php
if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}

if (defined('SESS_TIME')) {
    $sess_time = SESS_TIME;
} else {
    $sess_time = 2;
}

$config['backup_path'] = './data/backup/';
$config['initial_sql'] = './data/download/initial.sql';
//$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
//$http_url = $http_type . $_SERVER['HTTP_HOST'];
$config['base_url'] = '/';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = '';
$config['language'] = 'english';
$config['charset'] = 'UTF-8';
$config['enable_hooks'] = false;
$config['subclass_prefix'] = 'MY_';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\+=()';
$config['allow_get_array'] = true;
$config['enable_query_strings'] = false;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
$config['log_threshold'] = 0;
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['cache_path'] = './data/data_cache/';;
$config['encryption_key'] = 'qmsoft';
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'qmsoft_session';
$config['sess_expiration'] = $sess_time * 60 * 60; //28800=8小时
$config['sess_save_path'] = './data/data_sessions/';
$config['sess_match_ip'] = false;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = false;
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
$config['cookie_secure'] = false;
$config['global_xss_filtering'] = true;
$config['csrf_protection'] = false;
$config['csrf_token_name'] = 'csrf_token';
$config['csrf_cookie_name'] = 'csrf_cookie';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE; // 是否在每次提交后生成新的令牌
$config['csrf_exclude_uris'] = array(); // 需要排除 CSRF 保护的 URI
$config['compress_output'] = false;
$config['time_reference'] = 'local';
$config['rewrite_short_tags'] = false;
$config['proxy_ips'] = '';
