config.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. $video = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'config',
  11. # 显示给用户看的名称
  12. 'lang' => '基本配置',
  13. 'order' => 1,
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => '系统ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. ),
  25. 'hr1' => array
  26. (
  27. 'name' => '通用设置',
  28. 'class' => '',//本项必须填写
  29. 'attr' => '',
  30. ),
  31. 'name' => array
  32. (
  33. 'type' => 'varchar-32',
  34. 'name' => '站点名称-用于显示网站的title',
  35. 'default' => '',
  36. 'desc' => '请输入站点名称',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. ),
  40. 'keywords' => array
  41. (
  42. 'type' => 'varchar-500',
  43. 'name' => '站点关键词-多个用逗号隔开',
  44. 'default' => '',
  45. 'desc' => '站点关键词',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. ),
  49. 'info' => array
  50. (
  51. 'type' => 'text-255',
  52. 'name' => '站点介绍-展示网站的介绍',
  53. 'default' => '',
  54. 'desc' => '请输入站点介绍',
  55. 'match' => 'is_string',
  56. 'update' => 'textarea',
  57. ),
  58. 'logo' => array
  59. (
  60. 'type' => 'varchar-150',
  61. 'name' => '站点logo',
  62. 'default' => '',
  63. 'desc' => '站点logo',
  64. 'match' => 'is_string',
  65. 'update' => 'image',
  66. 'key' => '1',
  67. 'place' => '150',
  68. ),
  69. 'weibo' => array
  70. (
  71. 'type' => 'varchar-500',
  72. 'name' => '微博地址-输入微博的地址',
  73. 'default' => '',
  74. 'desc' => '请输入微博地址',
  75. 'match' => 'option',
  76. 'update' => 'textarea',
  77. ),
  78. 'weixin_qrcode' => array
  79. (
  80. 'type' => 'varchar-150',
  81. 'name' => '微信二维码',
  82. 'default' => '',
  83. 'desc' => '微信二维码',
  84. 'match' => 'option',
  85. 'update' => 'image',
  86. 'key' => '1',
  87. 'place' => '150',
  88. ),
  89. 'douyin' => array
  90. (
  91. 'type' => 'varchar-100',
  92. 'name' => '抖音账号',
  93. 'default' => '',
  94. 'desc' => '抖音账号',
  95. 'match' => 'option',
  96. 'update' => 'text',
  97. ),
  98. 'douyin_qrcode' => array
  99. (
  100. 'type' => 'varchar-150',
  101. 'name' => '抖音二维码',
  102. 'default' => '',
  103. 'desc' => '抖音二维码',
  104. 'match' => 'option',
  105. 'update' => 'image',
  106. 'key' => '1',
  107. 'place' => '150',
  108. ),
  109. 'bilibili' => array
  110. (
  111. 'type' => 'varchar-100',
  112. 'name' => 'B站账号',
  113. 'default' => '',
  114. 'desc' => 'B站账号',
  115. 'match' => 'option',
  116. 'update' => 'text',
  117. ),
  118. 'ins' => array
  119. (
  120. 'type' => 'varchar-100',
  121. 'name' => 'INS账号',
  122. 'default' => '',
  123. 'desc' => 'INS账号',
  124. 'match' => 'option',
  125. 'update' => 'text',
  126. ),
  127. 'cdate' => array
  128. (
  129. 'type' => 'int-11',
  130. 'name' => '录入时间',
  131. 'match' => array('is_numeric', time()),
  132. 'desc' => '',
  133. # 只有insert时才生效
  134. 'insert' => true,
  135. ),
  136. ),
  137. 'default' => array
  138. (
  139. 'col' => 'name,keywords, info,cdate',
  140. 'value' => array
  141. (
  142. '"虚拟人社区","虚拟人,社区", "虚拟人社区",' . time(),
  143. ),
  144. ),
  145. 'manage' => array
  146. (
  147. # 后台管理不要列表页
  148. 'list' => 'update',
  149. ),
  150. );