<?php /** * 模块菜单 * * @version $Id: inc_menu_module.php 1 10:32 2010年7月21日 tianya $ * @package DedeBIZ.Administrator * @copyright Copyright (c) 2022, DedeBIZ.COM * @license https://www.dedebiz.com/license * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/../config.php"); //载入模块菜单 $moduleset = ''; $dsql->SetQuery("SELECT * FROM `#@__sys_module` ORDER BY id DESC"); $dsql->Execute('mm'); while ($row = $dsql->GetObject('mm')) { $moduleset .= $row->menustring."\r\n"; } //载入插件菜单 $plusset = ''; $dsql->SetQuery("SELECT * FROM `#@__plus` WHERE isshow=1 ORDER BY aid ASC"); $dsql->Execute(); while ($row = $dsql->GetObject()) { $row->menustring = str_replace('plus_友情链接', 'plus_友情链接模块', $row->menustring); $plusset .= $row->menustring."\r\n"; } $adminMenu = ''; if ($cuserLogin->getUserType() >= 10) { $adminMenu = DEDEBIZ_SAFE_MODE? "" : "<m:top name='模块管理' c='6,' icon='fa-database'> <m:item name='模块管理' link='module_main.php' rank='sys_module' target='main' /> <m:item name='上传新模块' link='module_upload.php' rank='sys_module' target='main' /> <m:item name='模块打包' link='module_make.php' rank='sys_module' target='main' /> </m:top>"; } $menusMoudle = " $adminMenu <m:top item='7' name='辅助插件' icon='fa-plug'> <m:item name='插件管理器' link='plus_main.php' rank='10' target='main' /> $plusset </m:top> $moduleset ";