base.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. 'replace' => array('http://8.131.66.239/' =>'http://virtualbeings.cn/'),
  41. );
  42. # 前台通用配置
  43. $config['template'] = array
  44. (
  45. # 静态页面目录
  46. //'assets' => array('pc', 'mobile'),
  47. 'assets' => 'xuniren',
  48. # 模板编译器目录
  49. 'template' => 'xuniren',
  50. # 模板html文件的所在目录,默认为html
  51. 'path' => '',
  52. 'replace' => array
  53. (
  54. 'css' => 'css/',
  55. 'js' => 'js/',
  56. 'images' => 'images/',
  57. 'script' => 'script/',
  58. 'static' => './static/',
  59. ),
  60. # 编译器与模板对应关系目录,定义之后,代表可以完全不改动前端的代码,可以为空,为空则一一对应,参考manage
  61. 'relation' => array
  62. (
  63. # 首页启动屏幕
  64. 'home' => 'index',
  65. ),
  66. );
  67. return $config;