config.php 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. $database = require (RUNTIME_PATH.'config.php');
  3. $sys_config = include DATA_PATH. 'sys.config.php';
  4. if(empty($sys_config)){$sys_config=array();$sys_config['LAYOUT_ON']=1;}
  5. if($sys_config['URL_MODEL']) $RULES = include DATA_PATH. 'Routes.php';
  6. $config = array(
  7. 'DEFAULT_THEME' => 'Default',
  8. 'DEFAULT_CHARSET' => 'utf-8',
  9. 'APP_GROUP_LIST' => 'Home,Admin,User',
  10. 'DEFAULT_GROUP' =>'Home',
  11. 'TMPL_FILE_DEPR' => '_',
  12. 'DB_FIELDS_CACHE' => false,
  13. 'DB_FIELDTYPE_CHECK' => true,
  14. 'URL_ROUTER_ON' => true,
  15. 'DEFAULT_LANG' => 'cn',
  16. 'LANG_SWITCH_ON' => true,
  17. 'TAGLIB_LOAD' => true,
  18. 'TAGLIB_PRE_LOAD' => 'Yp',
  19. 'TMPL_ACTION_ERROR' => APP_PATH.'/Tpl/Home/Default/Public/success.html',
  20. 'TMPL_ACTION_SUCCESS' => APP_PATH.'/Tpl/Home/Default/Public/success.html',
  21. 'COOKIE_PREFIX'=>'YP_',
  22. 'COOKIE_EXPIRE'=>'',
  23. 'VAR_PAGE' => 'p',
  24. 'LAYOUT_HOME_ON'=>$sys_config['LAYOUT_ON'],
  25. 'URL_ROUTE_RULES' => $RULES,
  26. 'TMPL_EXCEPTION_FILE' => APP_PATH.'/Tpl/Home/Default/Public/exception.html'
  27. );
  28. return array_merge($database, $config ,$sys_config);
  29. ?>