123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?php
- if (file_exists(GLOBAL_CONF_PATH."config.php")) {
- $_global_config = include GLOBAL_CONF_PATH."config.php";
- } else {
- $_global_config = [];
- }
- $configs = [
-
-
-
-
- 'app_namespace' => 'web',
-
- 'app_status' => APP_DEBUG ? 'debug' : 'release',
-
- 'app_multi_module' => true,
-
- 'auto_bind_module' => false,
-
- 'root_namespace' => ['cmf' => CMF_PATH, 'huo' => HUO_PATH, 'plugins' => PLUGINS_PATH,
- 'app' => CMF_PATH.'app/', 'huolib' => HUOLIB_PATH],
-
- 'extra_file_list' => [THINK_PATH.'helper'.EXT, CMF_PATH.'common'.EXT, HUO_PATH.'common'.EXT],
-
- 'default_return_type' => 'html',
-
- 'default_ajax_return' => 'json',
-
- 'default_jsonp_handler' => 'jsonpReturn',
-
- 'var_jsonp_handler' => 'callback',
-
- 'default_timezone' => 'PRC',
-
- 'lang_switch_on' => true,
-
- 'default_filter' => 'htmlspecialchars',
-
- 'default_lang' => 'en-us',
-
- 'header_accept_lang' => ['en', 'zh', 'ar'],
-
- 'class_suffix' => true,
-
- 'controller_suffix' => true,
-
-
-
-
- 'default_module' => 'pc',
-
- 'deny_module_list' => ['common'],
-
- 'default_controller' => 'Index',
-
- 'default_action' => 'Index',
-
- 'default_validate' => '',
-
- 'empty_controller' => 'Error',
-
- 'controller_auto_search' => false,
-
-
-
- 'pathinfo_depr' => '/',
-
- 'url_html_suffix' => 'html',
-
- 'url_common_param' => false,
-
- 'url_param_type' => 0,
-
- 'url_route_on' => true,
-
- 'route_config_file' => ['route'],
-
- 'url_route_must' => false,
-
- 'url_domain_deploy' => false,
-
- 'url_domain_root' => '',
-
- 'url_convert' => true,
-
- 'url_controller_layer' => 'controller',
-
- 'var_method' => '_method',
-
-
-
- 'template' => [
-
- 'type' => 'Think',
-
- 'view_base' => '',
-
- 'view_path' => '',
-
- 'view_suffix' => 'html',
-
- 'view_depr' => DS,
-
- 'tpl_begin' => '{',
-
- 'tpl_end' => '}',
-
- 'taglib_begin' => '<',
-
- 'taglib_end' => '>',
- ],
-
- 'view_replace_str' => [],
-
- 'dispatch_success_tmpl' => THINK_PATH.'tpl'.DS.'dispatch_jump.tpl',
- 'dispatch_error_tmpl' => THINK_PATH.'tpl'.DS.'dispatch_jump.tpl',
-
-
-
-
- 'exception_tmpl' => THINK_PATH.'tpl'.DS.'think_exception.tpl',
-
- 'error_message' => '页面错误!请稍后再试~',
-
- 'show_error_msg' => false,
-
- 'exception_handle' => '',
-
-
-
- 'log' => [
-
- 'type' => 'File',
-
- 'path' => LOG_PATH,
-
- 'level' => [],
- ],
-
-
-
- 'trace' => [
-
- 'type' => 'Html',
- ],
-
-
-
- 'cookie' => [
-
- 'prefix' => '',
-
- 'expire' => 0,
-
- 'path' => '/',
-
- 'domain' => '',
-
- 'secure' => false,
-
- 'httponly' => '',
-
- 'setcookie' => true,
- ],
-
-
-
- 'database' => [
-
- 'debug' => true,
-
- 'resultset_type' => 'collection',
-
- 'auto_timestamp' => false,
-
- 'datetime_format' => false,
-
- 'sql_explain' => false,
- ],
-
- 'paginate' => [
- 'type' => '\cmf\paginator\Bootstrap',
- 'var_page' => 'page',
- 'list_rows' => 15,
- ],
-
- 'captcha' => [
-
- 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
-
- 'fontSize' => 25,
-
- 'useCurve' => true,
-
- 'imageH' => 30,
-
- 'imageW' => 100,
-
- 'length' => 5,
-
- 'reset' => true
- ],
-
-
-
- 'cmf_theme_path' => '../themes/pc',
- 'cmf_default_theme' => '',
- 'cmf_admin_theme_path' => 'themes/',
- 'cmf_admin_default_theme' => 'web_simpleboot3',
- ];
- return array_merge($configs, $_global_config);
|