国内流行的内容管理系统(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.

42 lines
1.5KB

  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) 2022, 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. $moduleset = '';
  14. $dsql->SetQuery("SELECT * FROM `#@__sys_module` ORDER BY id DESC");
  15. $dsql->Execute('mm');
  16. while ($row = $dsql->GetObject('mm')) {
  17. $moduleset .= $row->menustring."\r\n";
  18. }
  19. //载入插件菜单
  20. $plusset = '';
  21. $dsql->SetQuery("SELECT * FROM `#@__plus` WHERE isshow=1 ORDER BY aid ASC");
  22. $dsql->Execute();
  23. while ($row = $dsql->GetObject()) {
  24. $row->menustring = str_replace('plus_友情链接', 'plus_友情链接模块', $row->menustring);
  25. $plusset .= $row->menustring."\r\n";
  26. }
  27. $adminMenu = '';
  28. if ($cuserLogin->getUserType() >= 10) {
  29. $adminMenu = DEDEBIZ_SAFE_MODE? "" : "<m:top name='模块管理' c='6,' icon='fa-database'>
  30. <m:item name='模块管理' link='module_main.php' rank='sys_module' target='main' />
  31. <m:item name='上传新模块' link='module_upload.php' rank='sys_module' target='main' />
  32. <m:item name='模块打包' link='module_make.php' rank='sys_module' target='main' />
  33. </m:top>";
  34. }
  35. $menusMoudle = "
  36. $adminMenu
  37. <m:top item='7' name='辅助插件' icon='fa-plug'>
  38. <m:item name='插件管理器' link='plus_main.php' rank='10' target='main' />
  39. $plusset
  40. </m:top>
  41. $moduleset
  42. ";