@@ -9,7 +9,7 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_file'); | |||||
CheckPurview('plus_文件管理器'); | |||||
require(DEDEINC."/libraries/oxwindow.class.php"); | require(DEDEINC."/libraries/oxwindow.class.php"); | ||||
require_once(DEDEADMIN.'/file_class.php'); | require_once(DEDEADMIN.'/file_class.php'); | ||||
$activepath = str_replace("..", "", $activepath); | $activepath = str_replace("..", "", $activepath); | ||||
@@ -9,7 +9,7 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_file'); | |||||
CheckPurview('plus_文件管理器'); | |||||
if (!isset($activepath)) $activepath = DEDEBIZ_SAFE_MODE? $cfg_medias_dir : $cfg_cmspath; | if (!isset($activepath)) $activepath = DEDEBIZ_SAFE_MODE? $cfg_medias_dir : $cfg_cmspath; | ||||
$inpath = ""; | $inpath = ""; | ||||
$activepath = str_replace("..", "", $activepath); | $activepath = str_replace("..", "", $activepath); | ||||
@@ -9,7 +9,7 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_file'); | |||||
CheckPurview('plus_文件管理器'); | |||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
$activepath = str_replace("..", "", $activepath); | $activepath = str_replace("..", "", $activepath); | ||||
$activepath = preg_replace("#^\/{1,}#", "/", $activepath); | $activepath = preg_replace("#^\/{1,}#", "/", $activepath); | ||||
@@ -90,7 +90,7 @@ $actionSearch[2] = array( | |||||
2 => array( | 2 => array( | ||||
'title' => '文件式管理器', | 'title' => '文件式管理器', | ||||
'description' => '应用文件浏览的模式进行附件的管理', | 'description' => '应用文件浏览的模式进行附件的管理', | ||||
'purview' => 'plus_file', | |||||
'purview' => 'plus_文件管理器', | |||||
'linkurl' => 'media_main.php?dopost=filemanager' | 'linkurl' => 'media_main.php?dopost=filemanager' | ||||
), | ), | ||||
) | ) | ||||
@@ -84,10 +84,10 @@ $menusMain = "<m:top item='1_' name='常用操作' icon='fa-desktop'> | |||||
<m:item name='专题管理' ischannel='1' link='content_s_list.php' linkadd='spec_add.php' channelid='-1' rank='spec_New' target='main' /> | <m:item name='专题管理' ischannel='1' link='content_s_list.php' linkadd='spec_add.php' channelid='-1' rank='spec_New' target='main' /> | ||||
<m:item name='标签管理' link='tags_main.php' rank='sys_Keyword' target='main' /> | <m:item name='标签管理' link='tags_main.php' rank='sys_Keyword' target='main' /> | ||||
</m:top> | </m:top> | ||||
<m:top item='3_' name='附件管理' rank='sys_Upload,sys_MyUpload,plus_file' icon='fa-folder'> | |||||
<m:top item='3_' name='附件管理' rank='sys_Upload,sys_MyUpload,plus_文件管理器' icon='fa-folder'> | |||||
<m:item name='上传新文件' link='media_add.php' rank='' target='main' /> | <m:item name='上传新文件' link='media_add.php' rank='' target='main' /> | ||||
<m:item name='附件数据管理' link='media_main.php' rank='sys_Upload,sys_MyUpload' target='main' /> | <m:item name='附件数据管理' link='media_main.php' rank='sys_Upload,sys_MyUpload' target='main' /> | ||||
<m:item name='文件式管理器' link='media_main.php?dopost=filemanager' rank='plus_file' target='main' /> | |||||
<m:item name='文件式管理器' link='media_main.php?dopost=filemanager' rank='plus_文件管理器' target='main' /> | |||||
</m:top> | </m:top> | ||||
$adminMenu1 | $adminMenu1 | ||||
<m:top item='5_' name='批量维护' icon='fa-circle-o-notch'> | <m:top item='5_' name='批量维护' icon='fa-circle-o-notch'> | ||||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__).'/config.php'); | |||||
if (DEDEBIZ_SAFE_MODE) { | if (DEDEBIZ_SAFE_MODE) { | ||||
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | ||||
} | } | ||||
CheckPurview('plus_file'); | |||||
CheckPurview('plus_文件管理器'); | |||||
if (empty($acdir)) $acdir = $cfg_df_style; | if (empty($acdir)) $acdir = $cfg_df_style; | ||||
$templetdir = $cfg_basedir.$cfg_templets_dir; | $templetdir = $cfg_basedir.$cfg_templets_dir; | ||||
$templetdird = $templetdir.'/'.$acdir; | $templetdird = $templetdir.'/'.$acdir; | ||||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__).'/config.php'); | |||||
if (DEDEBIZ_SAFE_MODE) { | if (DEDEBIZ_SAFE_MODE) { | ||||
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | ||||
} | } | ||||
CheckPurview('plus_file'); | |||||
CheckPurview('plus_文件管理器'); | |||||
$libdir = DEDEINC.'/taglib'; | $libdir = DEDEINC.'/taglib'; | ||||
$helpdir = DEDEINC.'/taglib/help'; | $helpdir = DEDEINC.'/taglib/help'; | ||||
//获取默认文件说明信息 | //获取默认文件说明信息 | ||||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
if (DEDEBIZ_SAFE_MODE) { | if (DEDEBIZ_SAFE_MODE) { | ||||
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | ||||
} | } | ||||
CheckPurview('plus_file'); | |||||
CheckPurview('plus_文件管理器'); | |||||
$action = isset($action) ? trim($action) : ''; | $action = isset($action) ? trim($action) : ''; | ||||
if (empty($acdir)) $acdir = $cfg_df_style; | if (empty($acdir)) $acdir = $cfg_df_style; | ||||
$templetdir = $cfg_basedir.$cfg_templets_dir; | $templetdir = $cfg_basedir.$cfg_templets_dir; | ||||
@@ -4090,7 +4090,7 @@ INSERT INTO `#@__sys_module` VALUES(1, '1f35620fb42d452fa2bdc1dee1690f92', '文 | |||||
(4, 'acb8b88eb4a6d4bfc375c18534f9439e', '投票模块', '', '', 0, ''), | (4, 'acb8b88eb4a6d4bfc375c18534f9439e', '投票模块', '', '', 0, ''), | ||||
(5, '572606600345b1a4bb8c810bbae434cc', '挑错管理', '', '', 0, ''); | (5, '572606600345b1a4bb8c810bbae434cc', '挑错管理', '', '', 0, ''); | ||||
INSERT INTO `#@__plus` VALUES(1, '文件管理器', '<m:item name=''文件管理器'' link=''file_manage_main.php'' rank=''plus_file'' target=''main'' />', '', 'DedeBIZ', 1, ''), | |||||
INSERT INTO `#@__plus` VALUES(1, '文件管理器', '<m:item name=''文件管理器'' link=''file_manage_main.php'' rank=''plus_文件管理器'' target=''main'' />', '', 'DedeBIZ', 1, ''), | |||||
(2, '友情链接模块', '<m:item name=''友情链接'' link=''friendlink_main.php'' rank=''plus_友情链接'' target=''main'' />', '', 'DedeBIZ', 1, ''), | (2, '友情链接模块', '<m:item name=''友情链接'' link=''friendlink_main.php'' rank=''plus_友情链接'' target=''main'' />', '', 'DedeBIZ', 1, ''), | ||||
(3, '广告管理', '<m:item name=''广告管理'' link=''ad_main.php'' rank=''plus_广告管理'' target=''main'' />', '', 'DedeBIZ', 1, ''), | (3, '广告管理', '<m:item name=''广告管理'' link=''ad_main.php'' rank=''plus_广告管理'' target=''main'' />', '', 'DedeBIZ', 1, ''), | ||||
(4, '投票模块', '<m:item name=''投票模块'' link=''vote_main.php'' rank=''plus_投票模块'' target=''main'' />', '', 'DedeBIZ', 1, ''), | (4, '投票模块', '<m:item name=''投票模块'' link=''vote_main.php'' rank=''plus_投票模块'' target=''main'' />', '', 'DedeBIZ', 1, ''), | ||||