base.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. $config['base'] = array
  3. (
  4. 'name' => '虚拟人社区',
  5. 'version' => '1.0.0 Beta',
  6. # 设置类型
  7. 'table' => array
  8. (
  9. 1 => '造物主',
  10. 2 => '虚拟人',
  11. 3 => '资讯',
  12. 4 => '专题',
  13. 5 => '视频',
  14. 6 => '活动',
  15. ),
  16. # 功能类型 0是表名,1是字段名
  17. 'table_name' => array
  18. (
  19. 1 => array('content/creater', 'creater_id'),
  20. 2 => array('content/xuniren', 'xuniren_id'),
  21. 3 => array('content/news', 'news_id'),
  22. 4 => array('content/news', 'feature_id'),
  23. 5 => array('content/news', 'vod_id'),
  24. 6 => array('content/news', 'act_id'),
  25. ),
  26. 'audit' => array
  27. (
  28. 1 => '已审核',
  29. 2 => '未审核',
  30. 3 => '审核未通过',
  31. ),
  32. # 上线状态
  33. 'status' => array
  34. (
  35. 1 => '上线发布',
  36. 2 => '下架',
  37. ),
  38. # 启用全站图片压缩
  39. //'pic' => 'yun_t1',
  40. );
  41. # 前台通用配置
  42. $config['template'] = array
  43. (
  44. # 静态页面目录
  45. //'assets' => array('pc', 'mobile'),
  46. 'assets' => 'xuniren',
  47. # 模板编译器目录
  48. 'template' => 'xuniren',
  49. # 模板html文件的所在目录,默认为html
  50. 'path' => '',
  51. 'replace' => array
  52. (
  53. 'css' => 'css/',
  54. 'js' => 'js/',
  55. 'images' => 'images/',
  56. 'script' => 'script/',
  57. 'static' => './static/',
  58. ),
  59. # 编译器与模板对应关系目录,定义之后,代表可以完全不改动前端的代码,可以为空,为空则一一对应,参考manage
  60. 'relation' => array
  61. (
  62. # 首页启动屏幕
  63. 'home' => 'index',
  64. ),
  65. );
  66. return $config;