config.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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-图片尺寸530*200px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  62. 'default' => '',
  63. 'desc' => '站点logo',
  64. 'match' => 'is_string',
  65. 'update' => 'image',
  66. 'key' => '1',
  67. 'place' => '530*200',
  68. ),
  69. 'logo_black' => array
  70. (
  71. 'type' => 'varchar-150',
  72. 'name' => '站点黑夜logo-图片尺寸530*200px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  73. 'default' => '',
  74. 'desc' => '站点logo',
  75. 'match' => 'is_string',
  76. 'update' => 'image',
  77. 'key' => '1',
  78. 'place' => '530*200',
  79. ),
  80. 'beian' => array
  81. (
  82. 'type' => 'varchar-100',
  83. 'name' => '备案介绍',
  84. 'default' => '',
  85. 'desc' => '备案介绍',
  86. 'match' => 'is_string',
  87. 'update' => 'textarea',
  88. ),
  89. 'xnr_pic' => array
  90. (
  91. 'type' => 'varchar-150',
  92. 'name' => '虚拟人封面图-图片尺寸595*330px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  93. 'default' => '',
  94. 'desc' => '虚拟人封面图',
  95. 'match' => 'is_string',
  96. 'update' => 'image',
  97. 'key' => '1',
  98. 'place' => '595*330',
  99. ),
  100. 'zwz_pic' => array
  101. (
  102. 'type' => 'varchar-150',
  103. 'name' => '造物主封面图-图片尺寸595*330px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  104. 'default' => '',
  105. 'desc' => '造物主封面图',
  106. 'match' => 'is_string',
  107. 'update' => 'image',
  108. 'key' => '1',
  109. 'place' => '595*330',
  110. ),
  111. 'weibo' => array
  112. (
  113. 'type' => 'varchar-500',
  114. 'name' => '微博地址-输入微博的地址',
  115. 'default' => '',
  116. 'desc' => '请输入微博地址',
  117. 'match' => 'option',
  118. 'update' => 'textarea',
  119. ),
  120. 'weixin_qrcode' => array
  121. (
  122. 'type' => 'varchar-150',
  123. 'name' => '微信二维码-图片尺寸250*250px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  124. 'default' => '',
  125. 'desc' => '微信二维码',
  126. 'match' => 'option',
  127. 'update' => 'image',
  128. 'key' => '1',
  129. 'place' => '250*250',
  130. ),
  131. /*
  132. 'email' => array
  133. (
  134. 'type' => 'varchar-500',
  135. 'name' => '联系邮箱',
  136. 'default' => '',
  137. 'desc' => '联系邮箱',
  138. 'match' => 'option',
  139. 'update' => 'text',
  140. ),
  141. */
  142. 'douyin' => array
  143. (
  144. 'type' => 'varchar-100',
  145. 'name' => '抖音账号',
  146. 'default' => '',
  147. 'desc' => '抖音账号',
  148. 'match' => 'option',
  149. //'update' => 'text',
  150. ),
  151. 'douyin_qrcode' => array
  152. (
  153. 'type' => 'varchar-150',
  154. 'name' => '抖音二维码',
  155. 'default' => '',
  156. 'desc' => '抖音二维码',
  157. 'match' => 'option',
  158. //'update' => 'image',
  159. 'key' => '1',
  160. 'place' => '150',
  161. ),
  162. 'bilibili' => array
  163. (
  164. 'type' => 'varchar-600',
  165. 'name' => 'B站地址',
  166. 'default' => '',
  167. 'desc' => 'B站地址',
  168. 'match' => 'option',
  169. //'update' => 'text',
  170. ),
  171. 'ins' => array
  172. (
  173. 'type' => 'varchar-100',
  174. 'name' => 'INS账号',
  175. 'default' => '',
  176. 'desc' => 'INS账号',
  177. 'match' => 'option',
  178. //'update' => 'text',
  179. ),
  180. 'ins_link' => array
  181. (
  182. 'type' => 'varchar-600',
  183. 'name' => 'INS链接',
  184. 'default' => '',
  185. 'desc' => 'INS链接',
  186. 'match' => 'option',
  187. //'update' => 'text',
  188. ),
  189. 'cdate' => array
  190. (
  191. 'type' => 'int-11',
  192. 'name' => '录入时间',
  193. 'match' => array('is_numeric', time()),
  194. 'desc' => '',
  195. # 只有insert时才生效
  196. 'insert' => true,
  197. ),
  198. ),
  199. 'default' => array
  200. (
  201. 'col' => 'name,keywords, info,cdate',
  202. 'value' => array
  203. (
  204. '"虚拟人社区","虚拟人,社区", "虚拟人社区",' . time(),
  205. ),
  206. ),
  207. 'manage' => array
  208. (
  209. # 后台管理不要列表页
  210. 'list' => 'update',
  211. ),
  212. );