config.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?php
  2. $comment = 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' => '系统名称',
  35. 'default' => '',
  36. 'desc' => '请输入系统名称',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. ),
  40. 'logo' => array
  41. (
  42. 'type' => 'varchar-150',
  43. 'name' => '系统logo-200X200',
  44. 'default' => '',
  45. 'desc' => '请选择系统logo',
  46. 'match' => 'is_string',
  47. //'update' => 'image',
  48. 'key' => '1',
  49. 'place' => '160X160',
  50. ),
  51. 'info' => array
  52. (
  53. 'type' => 'text-255',
  54. 'name' => '系统介绍',
  55. 'default' => '',
  56. 'desc' => '请输入系统介绍',
  57. 'match' => 'option',
  58. 'update' => 'textarea',
  59. ),
  60. 'hr2' => array
  61. (
  62. 'name' => 'SEO信息',
  63. 'class' => '',//本项必须填写
  64. 'attr' => '',
  65. ),
  66. 'title' => array
  67. (
  68. 'type' => 'varchar-50',
  69. 'name' => '系统title',
  70. 'default' => '',
  71. 'desc' => '请输入系统标题',
  72. 'match' => 'is_string',
  73. 'update' => 'text',
  74. ),
  75. 'keyword' => array
  76. (
  77. 'type' => 'varchar-50',
  78. 'name' => '系统keyword',
  79. 'default' => '',
  80. 'desc' => '请输入系统关键词',
  81. 'match' => 'is_string',
  82. 'update' => 'text',
  83. ),
  84. 'description' => array
  85. (
  86. 'type' => 'varchar-150',
  87. 'name' => '系统description',
  88. 'default' => '',
  89. 'desc' => '请输入系统描述',
  90. 'match' => 'is_string',
  91. 'update' => 'textarea',
  92. ),
  93. 'hr3' => array
  94. (
  95. 'name' => '版权与介绍',
  96. 'class' => '',//本项必须填写
  97. 'attr' => '',
  98. ),
  99. 'copyright' => array
  100. (
  101. 'type' => 'varchar-200',
  102. 'name' => '版权信息',
  103. 'default' => '',
  104. 'desc' => '请输入版权信息',
  105. 'match' => 'is_string',
  106. 'update' => 'textarea',
  107. ),
  108. 'icp' => array
  109. (
  110. 'type' => 'varchar-200',
  111. 'name' => 'icp备案信息-填写别的信息也可以的',
  112. 'default' => '',
  113. 'desc' => '请输入icp备案信息',
  114. 'match' => 'is_string',
  115. 'update' => 'textarea',
  116. ),
  117. 'code' => array
  118. (
  119. 'type' => 'text-255',
  120. 'name' => '尾部代码-一般用于填写统计代码',
  121. 'default' => '',
  122. 'desc' => '请输入尾部代码',
  123. 'match' => 'option',
  124. 'update' => 'textarea',
  125. ),
  126. 'hr4' => array
  127. (
  128. 'name' => '其他配置',
  129. 'class' => '',//本项必须填写
  130. 'attr' => '',
  131. ),
  132. 'score_name' => array
  133. (
  134. 'type' => 'varchar-200',
  135. 'name' => '积分名称',
  136. 'default' => '',
  137. 'desc' => '积分名称',
  138. 'match' => 'is_string',
  139. 'update' => 'text',
  140. ),
  141. 'score_name_ext' => array
  142. (
  143. 'type' => 'varchar-200',
  144. 'name' => '积分单位',
  145. 'default' => '',
  146. 'desc' => '积分名称',
  147. 'match' => 'is_string',
  148. 'update' => 'text',
  149. ),
  150. 'report_name' => array
  151. (
  152. 'type' => 'varchar-200',
  153. 'name' => '报告名称',
  154. 'default' => '',
  155. 'desc' => '报告名称',
  156. 'match' => 'is_string',
  157. 'update' => 'text',
  158. ),
  159. 'group_name' => array
  160. (
  161. 'type' => 'varchar-200',
  162. 'name' => '战队名称',
  163. 'default' => '',
  164. 'desc' => '战队名称',
  165. 'match' => 'is_string',
  166. 'update' => 'text',
  167. ),
  168. 'exchange' => array
  169. (
  170. 'type' => 'int-11',
  171. 'name' => '积分兑换比例-积分兑换元的比例,输入1则1个积分兑换1元,输入2则2个积分兑换1元',
  172. 'default' => '1',
  173. 'desc' => '积分兑换比例',
  174. 'match' => 'is_string',
  175. 'update' => 'text',
  176. ),
  177. 'exchange_min' => array
  178. (
  179. 'type' => 'int-11',
  180. 'name' => '积分最低兑换数量',
  181. 'default' => '10',
  182. 'desc' => '积分最低兑换数量',
  183. 'match' => 'is_string',
  184. 'update' => 'text',
  185. ),
  186. 'cdate' => array
  187. (
  188. 'type' => 'int-11',
  189. 'name' => '录入时间',
  190. 'match' => array('is_numeric', time()),
  191. 'desc' => '',
  192. # 只有insert时才生效
  193. 'insert' => true,
  194. ),
  195. ),
  196. 'default' => array
  197. (
  198. 'col' => 'name,info,title,keyword,description,copyright,icp,score_name,score_name_ext,report_name,group_name,cdate',
  199. 'value' => array
  200. (
  201. '"嗨赚","做任务赚钱花-嗨赚任务系统","嗨赚任务系统","嗨赚,赚钱,任务系统","做任务赚钱花-嗨赚任务系统","Made With By Dever Hiz","京ICP备15006344号","金币","枚","报告","小队",' . time(),
  202. ),
  203. ),
  204. 'manage' => array
  205. (
  206. # 后台管理不要列表页
  207. 'list' => 'update',
  208. ),
  209. );