国内流行的内容管理系统(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 10:32 2010年7月21日 tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2022 DedeBIZ.COM
  8. * @license GNU GPL v2 (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_友情链接', '', $row->menustring);
  25. $plusset .= $row->menustring."\r\n";
  26. }
  27. $adminMenu = '';
  28. if ($cuserLogin->getUserType() >= 10) {
  29. $adminMenu = DEDEBIZ_SAFE_MODE? "" : "<m:top item='6_' name='模块管理' icon='fa fa-database'>
  30. <m:item name='模块管理' link='module_main.php' rank='sys_module' target='main' />
  31. <m:item name='模块打包' link='module_make.php' rank='sys_module' target='main' />
  32. </m:top>";
  33. }
  34. $menusMoudle = "
  35. $adminMenu
  36. <m:top item='7_' name='插件管理' icon='fa fa-plug'>
  37. <m:item name='插件列表' link='plus_main.php' rank='10' target='main' />
  38. <m:item name='上传插件' link='module_upload.php' rank='sys_module' target='main' />
  39. $plusset
  40. </m:top>
  41. $moduleset
  42. ";