国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.1KB

  1. <?php
  2. /**
  3. * 模块菜单
  4. *
  5. * @version $Id: inc_menu_module.php 1 10:32 2010年7月21日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__)."/../config.php");
  12. /*
  13. 模块菜单一般在不要直接改此文件,直接保存在#@__sys_module表即可,格式为
  14. <m:top name='问答模块管理' c='6,' display='block' rank=''>
  15. <m:item name='问答栏目管理' link='ask_type.php' rank='' target='main' />
  16. <m:item name='问答问题管理' link='ask_admin.php' rank='' target='main' />
  17. <m:item name='问答答案管理' link='ask_answer.php' rank='' target='main' />
  18. </m:top>
  19. 这个菜单可在生成模块时指定
  20. */
  21. //载入模块菜单
  22. $moduleset = '';
  23. $dsql->SetQuery("SELECT * FROM `#@__sys_module` ORDER BY id DESC");
  24. $dsql->Execute('mm');
  25. while($row = $dsql->GetObject('mm'))
  26. {
  27. $moduleset .= $row->menustring."\r\n";
  28. }
  29. //载入插件菜单
  30. $plusset = '';
  31. $dsql->SetQuery("SELECT * FROM `#@__plus` WHERE isshow=1 ORDER BY aid ASC");
  32. $dsql->Execute();
  33. while($row = $dsql->GetObject()) {
  34. $row->menustring = str_replace('plus_友情链接', 'plus_友情链接模块', $row->menustring);
  35. $plusset .= $row->menustring."\r\n";
  36. }
  37. $adminMenu = '';
  38. if($cuserLogin->getUserType() >= 10)
  39. {
  40. $adminMenu = "<m:top name='模块管理' c='6,' display='block'>
  41. <m:item name='模块管理' link='module_main.php' rank='sys_module' target='main' />
  42. <m:item name='上传新模块' link='module_upload.php' rank='sys_module' target='main' />
  43. <m:item name='模块打包' link='module_make.php' rank='sys_module' target='main' />
  44. </m:top>";
  45. }
  46. $menusMoudle = "
  47. -----------------------------------------------
  48. $adminMenu
  49. <m:top item='7' name='辅助插件' display='block'>
  50. <m:item name='插件管理器' link='plus_main.php' rank='10' target='main' />
  51. $plusset
  52. </m:top>
  53. $moduleset
  54. -----------------------------------------------
  55. ";