config.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php
  2. $comment = array
  3. (
  4. 1 => '评论需要登录',
  5. 2 => '评论不需要登录',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'config',
  11. # 显示给用户看的名称
  12. 'lang' => '站点信息配置',
  13. 'order' => 10,
  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. 'notice' => array
  127. (
  128. 'type' => 'text-255',
  129. 'name' => '头部公告',
  130. 'default' => '',
  131. 'desc' => '请输入头部公告',
  132. 'match' => 'option',
  133. 'update' => 'editor',
  134. ),
  135. 'hr4' => array
  136. (
  137. 'name' => '其他配置',
  138. 'class' => '',//本项必须填写
  139. 'attr' => '',
  140. ),
  141. 'catename' => array
  142. (
  143. 'type' => 'varchar-255',
  144. 'name' => '版块名称-用于定义发布页面中的"请选择XXXX"中的"XXXX"',
  145. 'default' => '',
  146. 'desc' => '请输入版块名称',
  147. 'match' => 'is_string',
  148. 'update' => 'text',
  149. ),
  150. 'comment' => array
  151. (
  152. 'type' => 'tinyint-1',
  153. 'name' => '评论用户是否登录开关',
  154. 'default' => '1',
  155. 'desc' => '请选择评论用户是否登录开关',
  156. 'match' => 'option',
  157. 'option' => $comment,
  158. 'update' => 'radio',
  159. ),
  160. 'noname' => array
  161. (
  162. 'type' => 'varchar-50',
  163. 'name' => '前台匿名用户的称谓-默认为"匿名用户"',
  164. 'default' => '匿名用户',
  165. 'desc' => '请输入前台匿名用户的称谓',
  166. 'match' => 'option',
  167. 'update' => 'text',
  168. ),
  169. 'cdate' => array
  170. (
  171. 'type' => 'int-11',
  172. 'name' => '录入时间',
  173. 'match' => array('is_numeric', time()),
  174. 'desc' => '',
  175. # 只有insert时才生效
  176. 'insert' => true,
  177. ),
  178. ),
  179. 'default' => array
  180. (
  181. 'col' => 'name,info,title,keyword,description,copyright,icp,catename,noname,cdate',
  182. 'value' => array
  183. (
  184. '"Dever Plant","Dever Plant是由Dever构建,一个小型的开源社区系统","Dever Plant","Dever,PHP,Framework,PHP论坛,PHP社区,框架,MVC","Dever Plant","Made With By Dever Plant","京ICP备15006344号","版块","匿名用户",' . time(),
  185. ),
  186. ),
  187. 'manage' => array
  188. (
  189. # 后台管理不要列表页
  190. 'list' => 'update',
  191. ),
  192. );