info.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 海豚PHP框架 [ DolphinPHP ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://dolphinphp.com
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( http://www.apache.org/licenses/LICENSE-2.0 )
  10. // +----------------------------------------------------------------------
  11. /**
  12. * 模块信息
  13. */
  14. return [
  15. // 模块名[必填]
  16. 'name' => 'cms',
  17. // 模块标题[必填]
  18. 'title' => '门户',
  19. // 模块唯一标识[必填],格式:模块名.开发者标识.module
  20. 'identifier' => 'cms.ming.module',
  21. // 模块图标[选填]
  22. 'icon' => 'fa fa-fw fa-newspaper-o',
  23. // 模块描述[选填]
  24. 'description' => '门户模块',
  25. // 开发者[必填]
  26. 'author' => 'CaiWeiMing',
  27. // 开发者网址[选填]
  28. 'author_url' => 'http://www.dolphinphp.com',
  29. // 版本[必填],格式采用三段式:主版本号.次版本号.修订版本号
  30. 'version' => '1.0.0',
  31. // 模块依赖[可选],格式[[模块名, 模块唯一标识, 依赖版本, 对比方式]]
  32. 'need_module' => [
  33. ['admin', 'admin.dolphinphp.module', '1.0.0']
  34. ],
  35. // 插件依赖[可选],格式[[插件名, 插件唯一标识, 依赖版本, 对比方式]]
  36. 'need_plugin' => [],
  37. // 数据表[有数据库表时必填]
  38. 'tables' => [
  39. 'cms_advert',
  40. 'cms_advert_type',
  41. 'cms_column',
  42. 'cms_document',
  43. 'cms_document_article',
  44. 'cms_field',
  45. 'cms_link',
  46. 'cms_menu',
  47. 'cms_model',
  48. 'cms_nav',
  49. 'cms_page',
  50. 'cms_slider',
  51. 'cms_support',
  52. ],
  53. // 原始数据库表前缀
  54. // 用于在导入模块sql时,将原有的表前缀转换成系统的表前缀
  55. // 一般模块自带sql文件时才需要配置
  56. 'database_prefix' => 'dp_',
  57. // 模块参数配置
  58. 'config' => [
  59. ['text', 'summary', '默认摘要字数', '发布文章时,如果没有填写摘要,则自动获取文档内容为摘要。如果此处不填写或填写0,则不提取摘要。', 0],
  60. ['ckeditor', 'contact', '联系方式', '', '<div class="font-s13 push"><strong>河源市卓锐科技有限公司</strong><br />
  61. 地址:河源市江东新区东环路汇通苑D3-H232<br />
  62. 电话:0762-8910006<br />
  63. 邮箱:admin@zrthink.com</div>'],
  64. ['textarea', 'meta_head', '顶部代码', '代码会放在 <code>&lt;/head&gt;</code> 标签以上'],
  65. ['textarea', 'meta_foot', '底部代码', '代码会放在 <code>&lt;/body&gt;</code> 标签以上'],
  66. ['radio', 'support_status', '在线客服', '', ['禁用', '启用'], 1],
  67. ['colorpicker', 'support_color', '在线客服配色', '', 'rgba(0,158,232,1)'],
  68. ['image', 'support_wx', '在线客服微信二维码', '在线客服微信二维码'],
  69. ['ckeditor', 'support_extra', '在线客服额外内容', '在线客服额外内容,可填写电话或其他说明'],
  70. ],
  71. // 行为配置
  72. 'action' => [
  73. [
  74. 'module' => 'cms',
  75. 'name' => 'slider_delete',
  76. 'title' => '删除滚动图片',
  77. 'remark' => '删除滚动图片',
  78. 'rule' => '',
  79. 'log' => '[user|get_nickname] 删除了滚动图片:[details]',
  80. 'status' => 1,
  81. ],
  82. [
  83. 'module' => 'cms',
  84. 'name' => 'slider_edit',
  85. 'title' => '编辑滚动图片',
  86. 'remark' => '编辑滚动图片',
  87. 'rule' => '',
  88. 'log' => '[user|get_nickname] 编辑了滚动图片:[details]',
  89. 'status' => 1,
  90. ],
  91. [
  92. 'module' => 'cms',
  93. 'name' => 'slider_add',
  94. 'title' => '添加滚动图片',
  95. 'remark' => '添加滚动图片',
  96. 'rule' => '',
  97. 'log' => '[user|get_nickname] 添加了滚动图片:[details]',
  98. 'status' => 1,
  99. ],
  100. [
  101. 'module' => 'cms',
  102. 'name' => 'document_delete',
  103. 'title' => '删除文档',
  104. 'remark' => '删除文档',
  105. 'rule' => '',
  106. 'log' => '[user|get_nickname] 删除了文档:[details]',
  107. 'status' => 1,
  108. ],
  109. [
  110. 'module' => 'cms',
  111. 'name' => 'document_restore',
  112. 'title' => '还原文档',
  113. 'remark' => '还原文档',
  114. 'rule' => '',
  115. 'log' => '[user|get_nickname] 还原了文档:[details]',
  116. 'status' => 1,
  117. ],
  118. [
  119. 'module' => 'cms',
  120. 'name' => 'nav_disable',
  121. 'title' => '禁用导航',
  122. 'remark' => '禁用导航',
  123. 'rule' => '',
  124. 'log' => '[user|get_nickname] 禁用了导航:[details]',
  125. 'status' => 1,
  126. ],
  127. [
  128. 'module' => 'cms',
  129. 'name' => 'nav_enable',
  130. 'title' => '启用导航',
  131. 'remark' => '启用导航',
  132. 'rule' => '',
  133. 'log' => '[user|get_nickname] 启用了导航:[details]',
  134. 'status' => 1,
  135. ],
  136. [
  137. 'module' => 'cms',
  138. 'name' => 'nav_delete',
  139. 'title' => '删除导航',
  140. 'remark' => '删除导航',
  141. 'rule' => '',
  142. 'log' => '[user|get_nickname] 删除了导航:[details]',
  143. 'status' => 1,
  144. ],
  145. [
  146. 'module' => 'cms',
  147. 'name' => 'nav_edit',
  148. 'title' => '编辑导航',
  149. 'remark' => '编辑导航',
  150. 'rule' => '',
  151. 'log' => '[user|get_nickname] 编辑了导航:[details]',
  152. 'status' => 1,
  153. ],
  154. [
  155. 'module' => 'cms',
  156. 'name' => 'nav_add',
  157. 'title' => '添加导航',
  158. 'remark' => '添加导航',
  159. 'rule' => '',
  160. 'log' => '[user|get_nickname] 添加了导航:[details]',
  161. 'status' => 1,
  162. ],
  163. [
  164. 'module' => 'cms',
  165. 'name' => 'model_disable',
  166. 'title' => '禁用内容模型',
  167. 'remark' => '禁用内容模型',
  168. 'rule' => '',
  169. 'log' => '[user|get_nickname] 禁用了内容模型:[details]',
  170. 'status' => 1,
  171. ],
  172. [
  173. 'module' => 'cms',
  174. 'name' => 'model_enable',
  175. 'title' => '启用内容模型',
  176. 'remark' => '启用内容模型',
  177. 'rule' => '',
  178. 'log' => '[user|get_nickname] 启用了内容模型:[details]',
  179. 'status' => 1,
  180. ],
  181. [
  182. 'module' => 'cms',
  183. 'name' => 'model_delete',
  184. 'title' => '删除内容模型',
  185. 'remark' => '删除内容模型',
  186. 'rule' => '',
  187. 'log' => '[user|get_nickname] 删除了内容模型:[details]',
  188. 'status' => 1,
  189. ],
  190. [
  191. 'module' => 'cms',
  192. 'name' => 'model_edit',
  193. 'title' => '编辑内容模型',
  194. 'remark' => '编辑内容模型',
  195. 'rule' => '',
  196. 'log' => '[user|get_nickname] 编辑了内容模型:[details]',
  197. 'status' => 1,
  198. ],
  199. [
  200. 'module' => 'cms',
  201. 'name' => 'model_add',
  202. 'title' => '添加内容模型',
  203. 'remark' => '添加内容模型',
  204. 'rule' => '',
  205. 'log' => '[user|get_nickname] 添加了内容模型:[details]',
  206. 'status' => 1,
  207. ],
  208. [
  209. 'module' => 'cms',
  210. 'name' => 'menu_disable',
  211. 'title' => '禁用导航菜单',
  212. 'remark' => '禁用导航菜单',
  213. 'rule' => '',
  214. 'log' => '[user|get_nickname] 禁用了导航菜单:[details]',
  215. 'status' => 1,
  216. ],
  217. [
  218. 'module' => 'cms',
  219. 'name' => 'menu_enable',
  220. 'title' => '启用导航菜单',
  221. 'remark' => '启用导航菜单',
  222. 'rule' => '',
  223. 'log' => '[user|get_nickname] 启用了导航菜单:[details]',
  224. 'status' => 1,
  225. ],
  226. [
  227. 'module' => 'cms',
  228. 'name' => 'menu_delete',
  229. 'title' => '删除导航菜单',
  230. 'remark' => '删除导航菜单',
  231. 'rule' => '',
  232. 'log' => '[user|get_nickname] 删除了导航菜单:[details]',
  233. 'status' => 1,
  234. ],
  235. [
  236. 'module' => 'cms',
  237. 'name' => 'menu_edit',
  238. 'title' => '编辑导航菜单',
  239. 'remark' => '编辑导航菜单',
  240. 'rule' => '',
  241. 'log' => '[user|get_nickname] 编辑了导航菜单:[details]',
  242. 'status' => 1,
  243. ],
  244. [
  245. 'module' => 'cms',
  246. 'name' => 'menu_add',
  247. 'title' => '添加导航菜单',
  248. 'remark' => '添加导航菜单',
  249. 'rule' => '',
  250. 'log' => '[user|get_nickname] 添加了导航菜单:[details]',
  251. 'status' => 1,
  252. ],
  253. [
  254. 'module' => 'cms',
  255. 'name' => 'link_disable',
  256. 'title' => '禁用友情链接',
  257. 'remark' => '禁用友情链接',
  258. 'rule' => '',
  259. 'log' => '[user|get_nickname] 禁用了友情链接:[details]',
  260. 'status' => 1,
  261. ],
  262. [
  263. 'module' => 'cms',
  264. 'name' => 'link_enable',
  265. 'title' => '启用友情链接',
  266. 'remark' => '启用友情链接',
  267. 'rule' => '',
  268. 'log' => '[user|get_nickname] 启用了友情链接:[details]',
  269. 'status' => 1,
  270. ],
  271. [
  272. 'module' => 'cms',
  273. 'name' => 'link_delete',
  274. 'title' => '删除友情链接',
  275. 'remark' => '删除友情链接',
  276. 'rule' => '',
  277. 'log' => '[user|get_nickname] 删除了友情链接:[details]',
  278. 'status' => 1,
  279. ],
  280. [
  281. 'module' => 'cms',
  282. 'name' => 'link_edit',
  283. 'title' => '编辑友情链接',
  284. 'remark' => '编辑友情链接',
  285. 'rule' => '',
  286. 'log' => '[user|get_nickname] 编辑了友情链接:[details]',
  287. 'status' => 1,
  288. ],
  289. [
  290. 'module' => 'cms',
  291. 'name' => 'link_add',
  292. 'title' => '添加友情链接',
  293. 'remark' => '添加友情链接',
  294. 'rule' => '',
  295. 'log' => '[user|get_nickname] 添加了友情链接:[details]',
  296. 'status' => 1,
  297. ],
  298. [
  299. 'module' => 'cms',
  300. 'name' => 'field_disable',
  301. 'title' => '禁用模型字段',
  302. 'remark' => '禁用模型字段',
  303. 'rule' => '',
  304. 'log' => '[user|get_nickname] 禁用了模型字段:[details]',
  305. 'status' => 1,
  306. ],
  307. [
  308. 'module' => 'cms',
  309. 'name' => 'field_enable',
  310. 'title' => '启用模型字段',
  311. 'remark' => '启用模型字段',
  312. 'rule' => '',
  313. 'log' => '[user|get_nickname] 启用了模型字段:[details]',
  314. 'status' => 1,
  315. ],
  316. [
  317. 'module' => 'cms',
  318. 'name' => 'field_delete',
  319. 'title' => '删除模型字段',
  320. 'remark' => '删除模型字段',
  321. 'rule' => '',
  322. 'log' => '[user|get_nickname] 删除了模型字段:[details]',
  323. 'status' => 1,
  324. ],
  325. [
  326. 'module' => 'cms',
  327. 'name' => 'field_edit',
  328. 'title' => '编辑模型字段',
  329. 'remark' => '编辑模型字段',
  330. 'rule' => '',
  331. 'log' => '[user|get_nickname] 编辑了模型字段:[details]',
  332. 'status' => 1,
  333. ],
  334. [
  335. 'module' => 'cms',
  336. 'name' => 'field_add',
  337. 'title' => '添加模型字段',
  338. 'remark' => '添加模型字段',
  339. 'rule' => '',
  340. 'log' => '[user|get_nickname] 添加了模型字段:[details]',
  341. 'status' => 1,
  342. ],
  343. [
  344. 'module' => 'cms',
  345. 'name' => 'column_disable',
  346. 'title' => '禁用栏目',
  347. 'remark' => '禁用栏目',
  348. 'rule' => '',
  349. 'log' => '[user|get_nickname] 禁用了栏目:[details]',
  350. 'status' => 1,
  351. ],
  352. [
  353. 'module' => 'cms',
  354. 'name' => 'column_enable',
  355. 'title' => '启用栏目',
  356. 'remark' => '启用栏目',
  357. 'rule' => '',
  358. 'log' => '[user|get_nickname] 启用了栏目:[details]',
  359. 'status' => 1,
  360. ],
  361. [
  362. 'module' => 'cms',
  363. 'name' => 'column_delete',
  364. 'title' => '删除栏目',
  365. 'remark' => '删除栏目',
  366. 'rule' => '',
  367. 'log' => '[user|get_nickname] 删除了栏目:[details]',
  368. 'status' => 1,
  369. ],
  370. [
  371. 'module' => 'cms',
  372. 'name' => 'column_edit',
  373. 'title' => '编辑栏目',
  374. 'remark' => '编辑栏目',
  375. 'rule' => '',
  376. 'log' => '[user|get_nickname] 编辑了栏目:[details]',
  377. 'status' => 1,
  378. ],
  379. [
  380. 'module' => 'cms',
  381. 'name' => 'column_add',
  382. 'title' => '添加栏目',
  383. 'remark' => '添加栏目',
  384. 'rule' => '',
  385. 'log' => '[user|get_nickname] 添加了栏目:[details]',
  386. 'status' => 1,
  387. ],
  388. [
  389. 'module' => 'cms',
  390. 'name' => 'advert_type_disable',
  391. 'title' => '禁用广告分类',
  392. 'remark' => '禁用广告分类',
  393. 'rule' => '',
  394. 'log' => '[user|get_nickname] 禁用了广告分类:[details]',
  395. 'status' => 1,
  396. ],
  397. [
  398. 'module' => 'cms',
  399. 'name' => 'advert_type_enable',
  400. 'title' => '启用广告分类',
  401. 'remark' => '启用广告分类',
  402. 'rule' => '',
  403. 'log' => '[user|get_nickname] 启用了广告分类:[details]',
  404. 'status' => 1,
  405. ],
  406. [
  407. 'module' => 'cms',
  408. 'name' => 'advert_type_delete',
  409. 'title' => '删除广告分类',
  410. 'remark' => '删除广告分类',
  411. 'rule' => '',
  412. 'log' => '[user|get_nickname] 删除了广告分类:[details]',
  413. 'status' => 1,
  414. ],
  415. [
  416. 'module' => 'cms',
  417. 'name' => 'advert_type_edit',
  418. 'title' => '编辑广告分类',
  419. 'remark' => '编辑广告分类',
  420. 'rule' => '',
  421. 'log' => '[user|get_nickname] 编辑了广告分类:[details]',
  422. 'status' => 1,
  423. ],
  424. [
  425. 'module' => 'cms',
  426. 'name' => 'advert_type_add',
  427. 'title' => '添加广告分类',
  428. 'remark' => '添加广告分类',
  429. 'rule' => '',
  430. 'log' => '[user|get_nickname] 添加了广告分类:[details]',
  431. 'status' => 1,
  432. ],
  433. [
  434. 'module' => 'cms',
  435. 'name' => 'advert_disable',
  436. 'title' => '禁用广告',
  437. 'remark' => '禁用广告',
  438. 'rule' => '',
  439. 'log' => '[user|get_nickname] 禁用了广告:[details]',
  440. 'status' => 1,
  441. ],
  442. [
  443. 'module' => 'cms',
  444. 'name' => 'advert_enable',
  445. 'title' => '启用广告',
  446. 'remark' => '启用广告',
  447. 'rule' => '',
  448. 'log' => '[user|get_nickname] 启用了广告:[details]',
  449. 'status' => 1,
  450. ],
  451. [
  452. 'module' => 'cms',
  453. 'name' => 'advert_delete',
  454. 'title' => '删除广告',
  455. 'remark' => '删除广告',
  456. 'rule' => '',
  457. 'log' => '[user|get_nickname] 删除了广告:[details]',
  458. 'status' => 1,
  459. ],
  460. [
  461. 'module' => 'cms',
  462. 'name' => 'advert_edit',
  463. 'title' => '编辑广告',
  464. 'remark' => '编辑广告',
  465. 'rule' => '',
  466. 'log' => '[user|get_nickname] 编辑了广告:[details]',
  467. 'status' => 1,
  468. ],
  469. [
  470. 'module' => 'cms',
  471. 'name' => 'advert_add',
  472. 'title' => '添加广告',
  473. 'remark' => '添加广告',
  474. 'rule' => '',
  475. 'log' => '[user|get_nickname] 添加了广告:[details]',
  476. 'status' => 1,
  477. ],
  478. [
  479. 'module' => 'cms',
  480. 'name' => 'document_disable',
  481. 'title' => '禁用文档',
  482. 'remark' => '禁用文档',
  483. 'rule' => '',
  484. 'log' => '[user|get_nickname] 禁用了文档:[details]',
  485. 'status' => 1,
  486. ],
  487. [
  488. 'module' => 'cms',
  489. 'name' => 'document_enable',
  490. 'title' => '启用文档',
  491. 'remark' => '启用文档',
  492. 'rule' => '',
  493. 'log' => '[user|get_nickname] 启用了文档:[details]',
  494. 'status' => 1,
  495. ],
  496. [
  497. 'module' => 'cms',
  498. 'name' => 'document_trash',
  499. 'title' => '回收文档',
  500. 'remark' => '回收文档',
  501. 'rule' => '',
  502. 'log' => '[user|get_nickname] 回收了文档:[details]',
  503. 'status' => 1,
  504. ],
  505. [
  506. 'module' => 'cms',
  507. 'name' => 'document_edit',
  508. 'title' => '编辑文档',
  509. 'remark' => '编辑文档',
  510. 'rule' => '',
  511. 'log' => '[user|get_nickname] 编辑了文档:[details]',
  512. 'status' => 1,
  513. ],
  514. [
  515. 'module' => 'cms',
  516. 'name' => 'document_add',
  517. 'title' => '添加文档',
  518. 'remark' => '添加文档',
  519. 'rule' => '',
  520. 'log' => '[user|get_nickname] 添加了文档:[details]',
  521. 'status' => 1,
  522. ],
  523. [
  524. 'module' => 'cms',
  525. 'name' => 'slider_enable',
  526. 'title' => '启用滚动图片',
  527. 'remark' => '启用滚动图片',
  528. 'rule' => '',
  529. 'log' => '[user|get_nickname] 启用了滚动图片:[details]',
  530. 'status' => 1,
  531. ],
  532. [
  533. 'module' => 'cms',
  534. 'name' => 'slider_disable',
  535. 'title' => '禁用滚动图片',
  536. 'remark' => '禁用滚动图片',
  537. 'rule' => '',
  538. 'log' => '[user|get_nickname] 禁用了滚动图片:[details]',
  539. 'status' => 1,
  540. ],
  541. [
  542. 'module' => 'cms',
  543. 'name' => 'support_add',
  544. 'title' => '添加客服',
  545. 'remark' => '添加客服',
  546. 'rule' => '',
  547. 'log' => '[user|get_nickname] 添加了客服:[details]',
  548. 'status' => 1,
  549. ],
  550. [
  551. 'module' => 'cms',
  552. 'name' => 'support_edit',
  553. 'title' => '编辑客服',
  554. 'remark' => '编辑客服',
  555. 'rule' => '',
  556. 'log' => '[user|get_nickname] 编辑了客服:[details]',
  557. 'status' => 1,
  558. ],
  559. [
  560. 'module' => 'cms',
  561. 'name' => 'support_delete',
  562. 'title' => '删除客服',
  563. 'remark' => '删除客服',
  564. 'rule' => '',
  565. 'log' => '[user|get_nickname] 删除了客服:[details]',
  566. 'status' => 1,
  567. ],
  568. [
  569. 'module' => 'cms',
  570. 'name' => 'support_enable',
  571. 'title' => '启用客服',
  572. 'remark' => '启用客服',
  573. 'rule' => '',
  574. 'log' => '[user|get_nickname] 启用了客服:[details]',
  575. 'status' => 1,
  576. ],
  577. [
  578. 'module' => 'cms',
  579. 'name' => 'support_disable',
  580. 'title' => '禁用客服',
  581. 'remark' => '禁用客服',
  582. 'rule' => '',
  583. 'log' => '[user|get_nickname] 禁用了客服:[details]',
  584. 'status' => 1,
  585. ]
  586. ],
  587. // 授权配置
  588. 'access' => [
  589. 'column' => [
  590. 'title' => '栏目授权',
  591. 'nodes' => [
  592. 'group' => 'column',
  593. 'table_name' => 'cms_column',
  594. 'primary_key' => 'id',
  595. 'parent_id' => 'pid',
  596. 'node_name' => 'name',
  597. ]
  598. ],
  599. ],
  600. ];