123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
-
-
-
- $html_cache_arr = array();
-
- $global = config('tpcache');
- empty($global) && $global = tpCache('global');
-
- $web_cmsmode = isset($global['web_cmsmode']) ? $global['web_cmsmode'] : 2;
-
- $app_debug = true;
- $web_htmlcache_expires_in = -1;
- if (1 == $web_cmsmode) {
- $app_debug = false;
- $web_htmlcache_expires_in = isset($global['web_htmlcache_expires_in']) ? $global['web_htmlcache_expires_in'] : 7200;
- }
-
-
-
- $html_cache_arr = array();
-
-
-
- $weappRow = \think\Db::name('weapp')->field('code')->where([
- 'status' => 1,
- ])->cache(true, null, "weapp")->select();
- foreach ($weappRow as $key => $val) {
- $file = WEAPP_DIR_NAME.DS.$val['code'].DS.'html.php';
- if (file_exists($file)) {
- $html_value = include_once $file;
- if (empty($html_value)) {
- continue;
- }
- foreach ($html_value as $k => $v) {
- if (!empty($v) && is_array($v)) {
- $v = array_merge($v, array('cache'=>$web_htmlcache_expires_in));
- $html_value[$k] = $v;
- }
- }
- $html_cache_arr = array_merge($html_value, $html_cache_arr);
- }
- }
-
-
- return array(
-
- 'app_debug' => $app_debug,
-
- 'template' => array(
-
- 'view_path' => './template/plugins/',
-
- 'view_suffix' => 'htm',
-
- 'tpl_deny_func_list' => config('global.tpl_deny_func_list'),
-
- 'tpl_deny_php' => false,
- ),
-
- 'view_replace_str' => array(
- '__EVAL__' => '',
- ),
-
-
-
- 'HTML_CACHE_ARR'=> $html_cache_arr,
- );
- ?>
|