国内流行的内容管理系统(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 DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2021, 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. $moduleset .= $row->menustring . "\r\n";
  27. }
  28. //载入插件菜单
  29. $plusset = '';
  30. $dsql->SetQuery("SELECT * FROM `#@__plus` WHERE isshow=1 ORDER BY aid ASC");
  31. $dsql->Execute();
  32. while ($row = $dsql->GetObject()) {
  33. $row->menustring = str_replace('plus_友情链接', 'plus_友情链接模块', $row->menustring);
  34. $plusset .= $row->menustring . "\r\n";
  35. }
  36. $adminMenu = '';
  37. if ($cuserLogin->getUserType() >= 10) {
  38. $adminMenu = "<m:top name='模块管理' c='6,' display='block'>
  39. <m:item name='模块管理' link='module_main.php' rank='sys_module' target='main' />
  40. <m:item name='上传新模块' link='module_upload.php' rank='sys_module' target='main' />
  41. <m:item name='模块打包' link='module_make.php' rank='sys_module' target='main' />
  42. </m:top>";
  43. }
  44. $menusMoudle = "
  45. -----------------------------------------------
  46. $adminMenu
  47. <m:top item='7' name='辅助插件' display='block'>
  48. <m:item name='插件管理器' link='plus_main.php' rank='10' target='main' />
  49. $plusset
  50. </m:top>
  51. $moduleset
  52. -----------------------------------------------
  53. ";