Browse Source

整理重复项

tags/6.1.9
xushubieli 2 months ago
parent
commit
909fed16f8
3 changed files with 2 additions and 4 deletions
  1. +0
    -1
      src/admin/inc/inc_menu.php
  2. +2
    -2
      src/admin/inc/inc_menu_func.php
  3. +0
    -1
      src/admin/inc/inc_menu_map.php

+ 0
- 1
src/admin/inc/inc_menu.php View File

@@ -92,7 +92,6 @@ $menusMain = "<m:top item='1_' name='常用操作' display='block'>
</m:top>
$adminMenu1
<m:top item='1_' name='批量维护' display='block'>
<m:item name='更新系统缓存' link='sys_cache_up.php' rank='sys_ArcBatch' target='main' />
<m:item name='文档批量维护' link='content_batch_up.php' rank='sys_ArcBatch' target='main' />
<m:item name='搜索关键词维护' link='search_keywords_main.php' rank='sys_Keyword' target='main' />
<m:item name='文档关键词维护' link='article_keywords_main.php' rank='sys_Keyword' target='main' />


+ 2
- 2
src/admin/inc/inc_menu_func.php View File

@@ -33,7 +33,7 @@ function GetMenus($userrank, $topos = 'main')
if ($ctag->GetName() == 'top' && ($ctag->GetAtt('rank') == '' || TestPurview($ctag->GetAtt('rank')))) {
if ($openitem != 999 && !preg_match("#".$openitem.'_'."#", $ctag->GetAtt('item')) && $openitem != 100) continue;
$m++;
echo "<!-- Item ".($m + 1)." Strat -->";
echo "<!--".($m + 1)."-->";
$htmp = str_replace("~channelname~", $ctag->GetAtt("name"), $headTemplet);
if (empty($openitem) || $openitem == 100) {
if ($ctag->GetAtt('notshowall') == '1') continue;
@@ -74,7 +74,7 @@ function GetMenus($userrank, $topos = 'main')
}
}
echo $footTemplet;
echo "<!--Item".($m + 1)."End-->";
echo "<!--".($m + 1)."-->";
}
}
}//End Function

+ 0
- 1
src/admin/inc/inc_menu_map.php View File

@@ -50,7 +50,6 @@ $menusMain = "<m:top mapitem='1' item='1_' name='常用操作' display='block'>
<m:item name='专题管理' ischannel='1' link='content_s_list.php' linkadd='spec_add.php' channelid='-1' rank='spec_New' target='main' />
</m:top>
<m:top mapitem='3' item='1_' name='批量维护' display='block'>
<m:item name='更新系统缓存' link='sys_cache_up.php' rank='sys_ArcBatch' target='main' />
<m:item name='文档批量维护' link='content_batch_up.php' rank='sys_ArcBatch' target='main' />
<m:item name='搜索关键词维护' link='search_keywords_main.php' rank='sys_Keyword' target='main' />
<m:item name='文档关键词维护' link='article_keywords_main.php' rank='sys_Keyword' target='main' />


Loading…
Cancel
Save