@@ -9,7 +9,7 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require(dirname(__FILE__)."/config.php"); | |||
CheckPurview('plus_文件管理器'); | |||
CheckPurview('plus_file'); | |||
require(DEDEINC."/libraries/oxwindow.class.php"); | |||
require_once(DEDEADMIN.'/file_class.php'); | |||
$activepath = str_replace("..", "", $activepath); | |||
@@ -9,7 +9,7 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require(dirname(__FILE__)."/config.php"); | |||
CheckPurview('plus_文件管理器'); | |||
CheckPurview('plus_file'); | |||
if (!isset($activepath)) $activepath = DEDEBIZ_SAFE_MODE? $cfg_medias_dir : $cfg_cmspath; | |||
$inpath = ""; | |||
$activepath = str_replace("..", "", $activepath); | |||
@@ -9,7 +9,7 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckPurview('plus_文件管理器'); | |||
CheckPurview('plus_file'); | |||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | |||
$activepath = str_replace("..", "", $activepath); | |||
$activepath = preg_replace("#^\/{1,}#", "/", $activepath); | |||
@@ -13,35 +13,41 @@ $cuserLogin = new userLogin(); | |||
//后台功能操作配置项 | |||
$actionSearch[0] = array( | |||
'title' => '常规操作', | |||
'description' => '站点文档常规功能操作', | |||
'description' => '常规功能操作', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '网站栏目管理', | |||
'description' => '站点所有栏目管理', | |||
'description' => '网站所有栏目管理', | |||
'purview' => 't_List,t_AccList', | |||
'linkurl' => 'catalog_main.php' | |||
), | |||
1 => array( | |||
'title' => '等审核的文档', | |||
'description' => '所有文档模型发表的未经审核文档列表', | |||
'title' => '待审核的文档', | |||
'description' => '所有文档模型发表待审核文档列表', | |||
'purview' => 'a_Check,a_AccCheck', | |||
'linkurl' => 'content_list.php?arcrank=-1' | |||
), | |||
2 => array( | |||
'title' => '我发布的文档', | |||
'description' => '现在登录的管理员所发表的所有文档模型中的文档', | |||
'description' => '当前后台登录所发表的文档', | |||
'purview' => 'a_List,a_AccList,a_MyList', | |||
'linkurl' => 'content_list.php?mid=$cuserLogin->userID' | |||
), | |||
3 => array( | |||
'title' => '自定义文档属性', | |||
'description' => '网站自定义文档属性', | |||
'purview' => 'sys_Att', | |||
'linkurl' => 'content_att.php' | |||
), | |||
4 => array( | |||
'title' => '评论管理', | |||
'description' => '网站所有评论管理', | |||
'purview' => 'sys_Feedback', | |||
'linkurl' => 'feedback_main.php' | |||
), | |||
4 => array( | |||
5 => array( | |||
'title' => '文档回收站', | |||
'description' => '如果在"系统配置变量"的"核心设置"中开启了"文档回收站是否开启功能",后台删除的文档会存放在此处', | |||
'description' => '系统配置变量的核心设置中开启了文档回收站是否开启功能,后台删除的文档会存放在此处', | |||
'purview' => 'a_List,a_AccList,a_MyList', | |||
'linkurl' => 'recycling.php' | |||
) | |||
@@ -49,23 +55,29 @@ $actionSearch[0] = array( | |||
); | |||
$actionSearch[1] = array( | |||
'title' => '文档管理', | |||
'description' => '网站对应文档模型的文档管理', | |||
'description' => '网站文档管理', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '专题管理', | |||
'description' => '所有专题文档的管理', | |||
'description' => '网站所有专题管理', | |||
'purview' => 'spec_New', | |||
'linkurl' => 'content_s_list.php' | |||
), | |||
1 => array( | |||
'title' => '标签管理', | |||
'description' => '网站所有标签管理', | |||
'purview' => 'sys_Keyword', | |||
'linkurl' => 'tags_main.php' | |||
), | |||
) | |||
); | |||
$actionSearch[2] = array( | |||
'title' => '附件管理', | |||
'description' => '所有上传的附件管理', | |||
'description' => '网站附件管理', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '上传新文件', | |||
'description' => '通过这可以上传图片、FLASH、视频音频、附件其它等附件', | |||
'description' => '通过这可以上传图片、FLASH、视频音频、附件等其它附件', | |||
'purview' => '', | |||
'linkurl' => 'media_add.php' | |||
), | |||
@@ -78,18 +90,18 @@ $actionSearch[2] = array( | |||
2 => array( | |||
'title' => '文件式管理器', | |||
'description' => '应用文件浏览的模式进行附件的管理', | |||
'purview' => 'plus_文件管理器', | |||
'purview' => 'plus_file', | |||
'linkurl' => 'media_main.php?dopost=filemanager' | |||
), | |||
) | |||
); | |||
$actionSearch[3] = array( | |||
'title' => '文档模型', | |||
'description' => '所有上传的附件管理', | |||
'description' => '所有文档模型管理', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '文档模型管理', | |||
'description' => '可以对现有商品、软件、图片集、普通文档、专题、分类信息等模型就行管理,也可以创建新的文档模型', | |||
'description' => '网站文档、图片、软件、专题、分类等模型就行管理,也可以创建新模型', | |||
'purview' => 'c_List', | |||
'linkurl' => 'mychannel_main.php' | |||
), | |||
@@ -121,53 +133,41 @@ $actionSearch[3] = array( | |||
); | |||
$actionSearch[4] = array( | |||
'title' => '批量维护', | |||
'description' => '对一些东西进行批量的删除,添加等等', | |||
'description' => '网站数据维护', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '更新缓存', | |||
'description' => '更新栏目缓存、更新枚举缓存、清理arclist调用缓存、清理过期会员浏览历史、删除过期短信', | |||
'purview' => 'sys_ArcBatch', | |||
'linkurl' => 'sys_cache_up.php' | |||
), | |||
1 => array( | |||
'title' => '文档批量维护', | |||
'description' => '批量的对某个栏目或者全部栏目的文档进行审核文档、更新网页、移动文档、删除文档', | |||
'description' => '某个栏目或者全部栏目的文档进行批量审核文档、更新网页、移动文档、删除文档', | |||
'purview' => 'sys_ArcBatch', | |||
'linkurl' => 'content_batch_up.php' | |||
), | |||
2 => array( | |||
1 => array( | |||
'title' => '搜索关键词维护', | |||
'description' => '对已经进行的所有所搜的关键词进行管理', | |||
'description' => '所有搜索关键词管理', | |||
'purview' => 'sys_Keyword', | |||
'linkurl' => 'search_keywords_main.php?dopost=filemanager' | |||
), | |||
3 => array( | |||
2 => array( | |||
'title' => '文档关键词维护', | |||
'description' => '对文档中的关键词进行批量的维护', | |||
'description' => '所有文档关键词批量维护', | |||
'purview' => 'sys_Keyword', | |||
'linkurl' => 'article_keywords_main.php' | |||
), | |||
4 => array( | |||
3 => array( | |||
'title' => '重复文档检测', | |||
'description' => '可以对网站中出现的重复标题的文档进行处理', | |||
'description' => '网站重复标题文档处理', | |||
'purview' => 'sys_ArcBatch', | |||
'linkurl' => 'article_test_same.php' | |||
), | |||
5 => array( | |||
'title' => '自动摘要|分页', | |||
'description' => '用于自动更新您系统没有填写摘要的文档的摘要信息或更新没分页的文档的自动分页标识', | |||
4 => array( | |||
'title' => '自动摘要分页', | |||
'description' => '更新没有填写描述的文档或更新没分页的文档的自动分页标识', | |||
'purview' => 'sys_Keyword', | |||
'linkurl' => 'article_description_main.php' | |||
), | |||
6 => array( | |||
'title' => '标签管理', | |||
'description' => '对整个网站的tag进行批量的维护', | |||
'purview' => 'sys_Keyword', | |||
'linkurl' => 'tags_main.php' | |||
), | |||
7 => array( | |||
'title' => '数据库文档替换', | |||
'description' => '可以对数据库中的某张表中的字段进行文档的批量替换', | |||
5 => array( | |||
'title' => '数据库字段替换', | |||
'description' => '网站数据库字段批量替换', | |||
'purview' => 'sys_ArcBatch', | |||
'linkurl' => 'sys_data_replace.php' | |||
), | |||
@@ -175,23 +175,23 @@ $actionSearch[4] = array( | |||
); | |||
$actionSearch[5] = array( | |||
'title' => '会员管理', | |||
'description' => '注册会员及积分等配置管理', | |||
'description' => '网站所有会员管理', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '注册会员列表', | |||
'description' => '所有注册会员的管理项,其中包含修改删除,查看会员文档以及提升管理员等操作', | |||
'title' => '所有会员列表', | |||
'description' => '所有会员修改删除,查看会员文档以及提升管理员等操作', | |||
'purview' => 'member_List', | |||
'linkurl' => 'member_main.php' | |||
), | |||
1 => array( | |||
'title' => '会员级别设置', | |||
'description' => '设置会员的级别,可以通过设计不同会员的浏览权限来对会员级别进行一个扩展', | |||
'description' => '会员级别设置,通过不同会员的浏览权限来对会员级别进行一个扩展', | |||
'purview' => 'member_Type', | |||
'linkurl' => 'member_rank.php' | |||
), | |||
2 => array( | |||
'title' => '积分头衔设置', | |||
'description' => '会员积分等级设置,根据会员活动积分对会员进行头衔划分', | |||
'description' => '会员积分等级设置,根据活动积分对会员进行头衔划分', | |||
'purview' => 'member_Type', | |||
'linkurl' => 'member_scores.php' | |||
), | |||
@@ -205,35 +205,35 @@ $actionSearch[5] = array( | |||
); | |||
$actionSearch[6] = array( | |||
'title' => '支付工具', | |||
'description' => '站点财务相关设置,包含点卡,商店订单等操作', | |||
'description' => '财务相关设置,包含点卡,商店订单等操作', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '点卡产品分类', | |||
'description' => '网站点卡产品分类,可以添加不同点数的点卡产品类型', | |||
'title' => '点卡产品管理', | |||
'description' => '网站点卡产品管理,可以在这里生成点卡以及查看点卡的当前状态', | |||
'purview' => 'sys_Data', | |||
'linkurl' => 'cards_type.php' | |||
'linkurl' => 'cards_manage.php' | |||
), | |||
1 => array( | |||
'title' => '点卡产品管理', | |||
'description' => '管理网站点卡,可以在这里生成点卡以及查看点卡的当前状态', | |||
'title' => '点卡产品分类', | |||
'description' => '网站点卡产品分类,可以添加不同点数的点卡产品类型', | |||
'purview' => 'sys_Data', | |||
'linkurl' => 'cards_manage.php' | |||
'linkurl' => 'cards_type.php' | |||
), | |||
2 => array( | |||
'title' => '会员产品分类', | |||
'description' => '可以将会员类型进行产品划分,比如出售高级会员1年这种,在这里可以对会员产品进行定义', | |||
'description' => '会员类产品型划分,对会员产品进行定义', | |||
'purview' => 'sys_Data', | |||
'linkurl' => 'member_type.php' | |||
), | |||
3 => array( | |||
'title' => '会员消费记录', | |||
'description' => '会员在前台进行操作、消费积分的消费记录,同时可以查看消费充值订单的付款情况', | |||
'description' => '会员消费记录,同时可以查看消费充值订单的付款情况', | |||
'purview' => 'sys_Data', | |||
'linkurl' => 'member_operations.php' | |||
), | |||
5 => array( | |||
'title' => '支付接口设置', | |||
'description' => '商店以及会员产品付款用到的在线付款方式需要设置的支付接口,这里含有常用的接口', | |||
'description' => '网站支付接口设置', | |||
'purview' => 'sys_Data', | |||
'linkurl' => 'sys_payment.php' | |||
), | |||
@@ -245,7 +245,7 @@ $actionSearch[7] = array( | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '更新网站', | |||
'description' => '可以一键生成所有静态页面', | |||
'description' => '生成所有静态页面', | |||
'purview' => 'sys_MakeHtml', | |||
'linkurl' => 'makehtml_all.php' | |||
), | |||
@@ -257,25 +257,25 @@ $actionSearch[7] = array( | |||
), | |||
2 => array( | |||
'title' => '更新栏目', | |||
'description' => '对每个栏目进行静态页面的生成', | |||
'description' => '生成栏目页面', | |||
'purview' => 'sys_MakeHtml', | |||
'linkurl' => 'makehtml_list.php' | |||
), | |||
3 => array( | |||
'title' => '更新文档', | |||
'description' => '对每个栏目下的文档进行静态页面的生成', | |||
'description' => '生成文档页面', | |||
'purview' => 'sys_MakeHtml', | |||
'linkurl' => 'makehtml_archives.php' | |||
), | |||
4 => array( | |||
'title' => '更新专题', | |||
'description' => '对专题进行静态页面的生成', | |||
'description' => '生成专题页面', | |||
'purview' => 'sys_MakeHtml', | |||
'linkurl' => 'makehtml_spec.php' | |||
), | |||
5 => array( | |||
'title' => '更新缓存', | |||
'description' => '更新栏目缓存、更新枚举缓存、清理arclist调用缓存、清理过期会员浏览历史、删除过期短信 ', | |||
'description' => '更新栏目缓存、更新枚举缓存、清理文档调用缓存、清理过期会员浏览历史、删除过期会员短信、删除过期流量统计', | |||
'purview' => 'sys_ArcBatch', | |||
'linkurl' => 'sys_cache_up.php' | |||
), | |||
@@ -283,35 +283,35 @@ $actionSearch[7] = array( | |||
); | |||
$actionSearch[8] = DEDEBIZ_SAFE_MODE? null : array( | |||
'title' => '模板管理', | |||
'description' => '针对主页、栏目、文档、专题等等进行更新', | |||
'description' => '网站主题模板管理', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '默认模板管理', | |||
'description' => '对网站正在采用的模板文件进行管理', | |||
'description' => '网站正在采用的模板文件管理', | |||
'purview' => 'temp_All', | |||
'linkurl' => 'templets_main.php' | |||
), | |||
1 => array( | |||
'title' => '标签源码管理', | |||
'description' => '对现有的标签文件进行修改添加', | |||
'description' => '系统标签文件编辑修改', | |||
'purview' => 'temp_All', | |||
'linkurl' => 'templets_tagsource.php' | |||
), | |||
2 => array( | |||
'title' => '自定义宏标记', | |||
'description' => '管理自定义标记', | |||
'description' => '所有自定义标记管理', | |||
'purview' => 'temp_MyTag', | |||
'linkurl' => 'mytag_main.php' | |||
), | |||
3 => array( | |||
'title' => '智能标记向导', | |||
'description' => '可以根据需要生成相应的调用标签', | |||
'description' => '根据需要生成相应的调用标签', | |||
'purview' => 'temp_Other', | |||
'linkurl' => 'mytag_tag_guide.php' | |||
), | |||
4 => array( | |||
'title' => '全局标记测试', | |||
'description' => '可以对全局的标签调用进行测试', | |||
'description' => '全局标签调用测试', | |||
'purview' => 'temp_Test', | |||
'linkurl' => 'tag_test.php' | |||
), | |||
@@ -319,77 +319,71 @@ $actionSearch[8] = DEDEBIZ_SAFE_MODE? null : array( | |||
); | |||
$actionSearch[9] = array( | |||
'title' => '系统设置', | |||
'description' => '对网站的一些基本信息和配置进行管理', | |||
'description' => '后台系统设置', | |||
'soniterm' => array( | |||
0 => array( | |||
'title' => '系统配置变量', | |||
'description' => '包含站点设置、核心设置、附件设置、会员设置、互动设置、性能选项、其它选项、添加新变量等分类,其中有网站基本信息和网站的基本设置选项', | |||
'description' => '包括站点设置、核心设置、附件设置、会员设置、互动设置、性能选项、其它选项、添加新变量等分类设置', | |||
'purview' => 'sys_Edit', | |||
'linkurl' => 'sys_info.php' | |||
), | |||
1 => array( | |||
'title' => '系统用户管理', | |||
'description' => '对现有的网站管理员进行管理', | |||
'description' => '网站管理员管理', | |||
'purview' => 'sys_User', | |||
'linkurl' => 'sys_admin_user.php' | |||
), | |||
2 => array( | |||
'title' => '用户组设定', | |||
'description' => '对网站管理员进行用户组别的划分', | |||
'description' => '网站管理员组别的划分', | |||
'purview' => 'sys_Group', | |||
'linkurl' => 'sys_group.php' | |||
), | |||
3 => array( | |||
'title' => '系统日志管理', | |||
'description' => '对每个登录后台的管理员进行的操作进行记录', | |||
'description' => '登录后台的管理员操作进行记录', | |||
'purview' => 'sys_Log', | |||
'linkurl' => 'log_list.php' | |||
), | |||
5 => array( | |||
'title' => '图片水印设置', | |||
'description' => '对于上传的图片添加的水印进行配置', | |||
'description' => '上传图片添加的水印配置', | |||
'purview' => 'sys_Edit', | |||
'linkurl' => 'sys_info_mark.php' | |||
), | |||
6 => array( | |||
'title' => '自定义文档属性', | |||
'description' => '在以往的版本中,网站主页、封面栏目的设计,都只能单调的用arclist标记把某栏目最新或按特定排序方式的文档无选择的读出来,这样做法存在很大的不足,在发布的时候对适合的文档选择专门的属性,那么使用arclist的地方就会按您的意愿显示指定的文档', | |||
'purview' => 'sys_Att', | |||
'linkurl' => 'content_att.php' | |||
), | |||
7 => array( | |||
'title' => '软件栏目设置', | |||
'description' => '可以对软件下载时的连接显示方式,下载方式,镜像服务器等等进行配置', | |||
'title' => '软件下载设置', | |||
'description' => '软件下载连接显示方式,下载方式,镜像服务器等等进行配置', | |||
'purview' => 'sys_SoftConfig', | |||
'linkurl' => 'soft_config.php' | |||
), | |||
8 => array( | |||
7 => array( | |||
'title' => '防采集串混淆', | |||
'description' => '防采集串混淆', | |||
'description' => '网站防采集串混淆', | |||
'purview' => 'sys_StringMix', | |||
'linkurl' => 'article_string_mix.php' | |||
), | |||
11 => array( | |||
8 => array( | |||
'title' => '数据库备份还原', | |||
'description' => '对数据库进行备份和还原', | |||
'description' => '数据库备份和还原', | |||
'purview' => 'sys_data', | |||
'linkurl' => 'sys_data.php' | |||
), | |||
12 => DEDEBIZ_SAFE_MODE? null : array( | |||
9 => DEDEBIZ_SAFE_MODE? null : array( | |||
'title' => 'SQL命令行工具', | |||
'description' => '可以在针对每张数据表执行单行或者多行的SQL语句', | |||
'description' => '数据表执行单行或者多行的SQL语句', | |||
'purview' => 'sys_data', | |||
'linkurl' => 'sys_sql_query.php' | |||
), | |||
14 => array( | |||
'title' => '病毒扫描', | |||
'description' => '以DedeBIZ开发模式为标准对现有的文件进行扫描并进行判断', | |||
10 => array( | |||
'title' => '后台文件扫描', | |||
'description' => '以DedeBIZ开发模式为标准对现有的文件进行扫描判断', | |||
'purview' => 'sys_verifies', | |||
'linkurl' => 'sys_safetest.php' | |||
), | |||
15 => array( | |||
11 => array( | |||
'title' => '系统错误修复', | |||
'description' => '由于手动升级时用户没运行指定的SQL语句,或自动升级的遗漏处理或处理出错,可能会导致一些错误,使用本工具会自动检测并处理', | |||
'description' => '手动和自动升级错误处理', | |||
'purview' => 'sys_verifies', | |||
'linkurl' => 'sys_repair.php' | |||
), | |||
@@ -47,56 +47,56 @@ if ($cuserLogin->getUserType() >= 10) { | |||
<m:item name='文档单页管理' link='templets_one.php' rank='temp_One' target='main' /> | |||
<m:item name='联动类别管理' link='stepselect_main.php' rank='c_Stepseclect' target='main' /> | |||
<m:item name='自由列表管理' link='freelist_main.php' rank='c_List' target='main' /> | |||
<m:item name='自定义表单' link='diy_main.php' rank='c_List' target='main' /> | |||
<m:item name='自定义表单管理' link='diy_main.php' rank='c_List' target='main' /> | |||
</m:top>"; | |||
$adminMenu2 = "<m:top item='10_' name='支付工具' rank='sys_Data' icon='fa-credit-card'> | |||
<m:item name='点卡产品分类' link='cards_type.php' rank='sys_Data' target='main' /> | |||
<m:item name='点卡产品管理' link='cards_manage.php' rank='sys_Data' target='main' /> | |||
<m:item name='会员产品分类' link='member_type.php' rank='sys_Data' target='main' /> | |||
<m:item name='点卡产品分类' link='cards_type.php' rank='sys_Data' target='main' /> | |||
<m:item name='会员消费记录' link='member_operations.php' rank='sys_Data' target='main' /> | |||
<m:item name='会员产品分类' link='member_type.php' rank='sys_Data' target='main' /> | |||
<m:item name='支付接口设置' link='sys_payment.php' .php' rank='sys_Data' target='main' /> | |||
</m:top> | |||
<m:top item='12_' name='系统设置' rank='sys_User,sys_Group,sys_Edit,sys_Log,sys_Data' icon='fa-cog'> | |||
<m:item name='系统配置变量' link='sys_info.php' rank='sys_Edit' target='main' /> | |||
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | |||
<m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' /> | |||
<m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' /> | |||
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | |||
<m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | |||
<m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | |||
<m:item name='软件栏目设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | |||
<m:item name='软件下载设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | |||
<m:item name='防采集串混淆' link='article_string_mix.php' rank='sys_StringMix' target='main' /> | |||
".(DEDEBIZ_SAFE_MODE? "" : "<m:item name='数据备份还原' link='sys_data.php' rank='sys_Data' target='main' />")." | |||
".(DEDEBIZ_SAFE_MODE? "" : "<m:item name='SQL命令行工具' link='sys_sql_query.php' rank='sys_Data' target='main' />")." | |||
<m:item name='病毒文件扫描' link='sys_safetest.php' rank='sys_verify' target='main' /> | |||
<m:item name='后台文件扫描' link='sys_safetest.php' rank='sys_verify' target='main' /> | |||
<m:item name='系统错误修复' link='sys_repair.php' rank='sys_verify' target='main' /> | |||
</m:top>"; | |||
} | |||
$menusMain = "<m:top item='1_' name='常用操作' icon='fa-desktop'> | |||
<m:item name='网站栏目管理' link='catalog_main.php' ischannel='1' addalt='创建栏目' linkadd='catalog_add.php?listtype=all' rank='t_List,t_AccList' target='main' /> | |||
<m:item name='所有文档列表' link='content_list.php' rank='a_List,a_AccList' target='main' /> | |||
<m:item name='等审核的文档' link='content_list.php?arcrank=-1' rank='a_Check,a_AccCheck' target='main' /> | |||
<m:item name='待审核的文档' link='content_list.php?arcrank=-1' rank='a_Check,a_AccCheck' target='main' /> | |||
<m:item name='我发布的文档' link='content_list.php?mid=".$cuserLogin->getUserID()."' rank='a_List,a_AccList,a_MyList' target='main' /> | |||
<m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | |||
<m:item name='评论管理' link='feedback_main.php' rank='sys_Feedback' target='main' /> | |||
<m:item name='文档回收站' link='recycling.php' ischannel='1' addalt='清空回收站' addico='fa-minus-circle' linkadd='archives_do.php?dopost=clear&aid=no&recycle=1' rank='a_List,a_AccList,a_MyList' target='main' /> | |||
</m:top> | |||
<m:top item='2_' name='文档管理' icon='fa-file-text'> | |||
$addset | |||
<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:top> | |||
<m:top item='3_' name='附件管理' rank='sys_Upload,sys_MyUpload,plus_文件管理器' icon='fa-folder'> | |||
<m:top item='3_' name='附件管理' rank='sys_Upload,sys_MyUpload,plus_file' icon='fa-folder'> | |||
<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?dopost=filemanager' rank='plus_文件管理器' target='main' /> | |||
<m:item name='文件式管理器' link='media_main.php?dopost=filemanager' rank='plus_file' target='main' /> | |||
</m:top> | |||
$adminMenu1 | |||
<m:top item='5_' name='批量维护' icon='fa-circle-o-notch'> | |||
<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' /> | |||
<m:item name='搜索关键词维护' link='search_keywords_main.php' rank='sys_Keyword' target='main' /> | |||
<m:item name='重复文档检测' link='article_test_same.php' rank='sys_ArcBatch' target='main' /> | |||
<m:item name='自动摘要分页' link='article_description_main.php' rank='sys_Keyword' target='main' /> | |||
<m:item name='标签管理' link='tags_main.php' rank='sys_Keyword' target='main' /> | |||
".(DEDEBIZ_SAFE_MODE? "" : "<m:item name='数据库文档替换' link='sys_data_replace.php' rank='sys_ArcBatch' target='main' />")." | |||
".(DEDEBIZ_SAFE_MODE? "" : "<m:item name='数据库字段替换' link='sys_data_replace.php' rank='sys_ArcBatch' target='main' />")." | |||
</m:top> | |||
{$GLOBALS['menusMoudle']} | |||
<m:top item='8_' name='更新任务' rank='sys_MakeHtml' icon='fa-repeat'> | |||
@@ -109,10 +109,10 @@ $adminMenu1 | |||
<m:item name='更新缓存' link='sys_cache_up.php' rank='sys_ArcBatch' target='main' /> | |||
</m:top> | |||
<m:top item='9_' name='会员管理' rank='member_List,member_Type' icon='fa-user-circle'> | |||
<m:item name='注册会员列表' link='member_main.php' rank='member_List' target='main' /> | |||
<m:item name='所有会员列表' link='member_main.php' rank='member_List' target='main' /> | |||
<m:item name='会员短信管理' link='member_pm.php' rank='member_Type' target='main' /> | |||
<m:item name='会员级别设置' link='member_rank.php' rank='member_Type' target='main' /> | |||
<m:item name='积分头衔设置' link='member_scores.php' rank='member_Type' target='main' /> | |||
<m:item name='会员短信管理' link='member_pm.php' rank='member_Type' target='main' /> | |||
</m:top> | |||
$adminMenu2 | |||
<m:top item='12_' name='系统帮助' icon='fa-info-circle'> | |||
@@ -82,7 +82,6 @@ function LoadServer() { | |||
} else { | |||
dedebizInfo = false; | |||
} | |||
let infoStr = `<table class="table table-borderless w-100">`; | |||
if (typeof rsp.result.domain !== "undefined") { | |||
infoStr += ` | |||
@@ -158,7 +157,7 @@ function LoadStat() { | |||
}); | |||
} | |||
} catch (error) { | |||
console.log("加载统计信息失败") | |||
console.log("加载流量统计数据失败") | |||
} | |||
}); | |||
var d = new Date(); | |||
@@ -175,7 +174,7 @@ function LoadStat() { | |||
$("#yestoday_vv").html(rsp.result.vv); | |||
} | |||
} catch (error) { | |||
console.log("加载统计信息失败") | |||
console.log("加载流量统计数据失败") | |||
} | |||
}); | |||
} | |||
@@ -236,8 +235,7 @@ async function LoadStatChart() { | |||
borderColor: 'rgba(255, 99, 132, 1)', | |||
backgroundColor: 'rgba(255, 99, 132, 0.2)', | |||
borderWidth: 1 | |||
} | |||
, { | |||
}, { | |||
label: 'VV', | |||
data: vvs, | |||
borderColor: 'rgba(75, 192, 192, 1)', | |||
@@ -281,7 +281,7 @@ function ShowUrlTrEdit() { | |||
function CkRemote() { | |||
document.getElementById('picname').value = ''; | |||
} | |||
//载入指定宽高的AJAX窗体 | |||
//载入指定宽高的Ajax窗体 | |||
function LoadQuickDiv(e, surl, oname, w, h) { | |||
if ($Nav() == 'IE') { | |||
if (window.event) { | |||
@@ -413,7 +413,7 @@ function copyToClipboard(txt) { | |||
try { | |||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); | |||
} catch (e) { | |||
alert("被浏览器拒绝,请在浏览器地址栏输入about:config并回车\n然后把signed.applets.codebase_principal_support设置为true"); | |||
alert("浏览器已拒绝,请在浏览器地址栏输入about:config并回车\n然后把signed.applets.codebase_principal_support项设置为true"); | |||
} | |||
var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard); | |||
if (!clip) return; | |||
@@ -501,9 +501,6 @@ function getElementTop(element) { | |||
} | |||
return actualTop; | |||
} | |||
//Copyright 2020 The MuEMS Authors. All rights reserved. | |||
//license that can be found in the LICENSE file. | |||
//-----msgbox------------------------------------- | |||
//生成一个随机id | |||
function guid() { | |||
function S4() { | |||
@@ -530,8 +527,7 @@ function DedeConfirm(content="",title="确认提示") { | |||
reject("cancel"); | |||
CloseModal(`DedeModal${modalID}`); | |||
} | |||
let footer = `<button type="button" class="btn btn-outline-success btn-sm" onClick="__DedeConfirmRunClose(\'${modalID}\')">取消</button> <button type="button" class="btn btn-success btn-sm" onClick="__DedeConfirmRun(\'${modalID}\')">确定</button>`; | |||
let footer = `<button type="button" class="btn btn-outline-success btn-sm" onClick="__DedeConfirmRunClose(\'${modalID}\')">取消</button><button type="button" class="btn btn-success btn-sm" onClick="__DedeConfirmRun(\'${modalID}\')">确定</button>`; | |||
let modal = `<div id="DedeModal${modalID}" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="DedeModalLabel${modalID}"> | |||
<div class="modal-dialog modal-dialog-centered" role="document"> | |||
<div class="modal-content"><div class="modal-header"> | |||
@@ -710,20 +706,20 @@ $(document).ready(function () { | |||
var footer = | |||
"<p><a href='javascript:useDefault(\"~modalID~\");' class='btn btn-success btn-sm'>使用原图</a><a href='javascript:okImage(\"~modalID~\")' class='btn btn-success btn-sm'>确定</a></p>"; | |||
var optButton = `<p> | |||
<label for="aspectRatio">比例</label> | |||
<select id="aspectRatio" onchange="setAspectRatio(this.selectedIndex)"> | |||
<label for="aspectRatio">比例</label> | |||
<select id="aspectRatio" onchange="setAspectRatio(this.selectedIndex)"> | |||
<option>16:9</option> | |||
<option selected>4:3</option> | |||
<option>1:1</option> | |||
<option>2:3</option> | |||
<option>自定义</option> | |||
</select> | |||
</select> | |||
</p>`; | |||
mdlCropperID = ShowMsg( | |||
'<div class="float-left" style="width:320px"><p><img id="cropImg~modalID~" src="' + srcURL + '"></p><p>宽度:<span id="cropWidth"></span>px,高度:<span id="cropHeight"></span>px</p>' + optButton + '</div><div class="pv float-right" style="width:200px;height:100px;overflow:hidden"></div>', { | |||
footer: footer, | |||
noClose: false, | |||
title: '缩略图裁剪', | |||
title: '图片裁剪', | |||
}); | |||
setTimeout(function () { | |||
$("#cropImg" + mdlCropperID).cropper(optCropper); | |||
@@ -766,4 +762,4 @@ $(document).ready(function () { | |||
picker.move(); | |||
}) | |||
} | |||
}) | |||
}); |
@@ -4,7 +4,7 @@ | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>注册会员列表</title> | |||
<title>所有会员列表</title> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
@@ -58,7 +58,7 @@ | |||
<form name="form2"> | |||
<table cellpadding="2" cellspacing="1" align="center" class="table maintable mb-3"> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="11">注册会员列表</td> | |||
<td bgcolor="#f5f5f5" colspan="11">所有会员列表</td> | |||
</tr> | |||
<tr bgcolor="#e9ecef" align="center"> | |||
<td width="6%">选择</td> | |||
@@ -330,7 +330,7 @@ | |||
} | |||
?> | |||
</select> | |||
<a href="soft_config.php" class="btn btn-success btn-sm">软件栏目设置</a> | |||
<a href="soft_config.php" class="btn btn-success btn-sm">软件下载设置</a> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -3,7 +3,7 @@ | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>软件栏目设置</title> | |||
<title>软件下载设置</title> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
@@ -24,7 +24,7 @@ | |||
<form name="form1" action="soft_config.php" method="post"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="2">软件栏目设置</td> | |||
<td bgcolor="#f5f5f5" colspan="2">软件下载设置</td> | |||
</tr> | |||
<tr> | |||
<td width="260">链接显示方式:</td> | |||
@@ -325,7 +325,7 @@ | |||
} | |||
?> | |||
</select> | |||
<a href="soft_config.php" class="btn btn-success btn-sm">软件栏目设置</a> | |||
<a href="soft_config.php" class="btn btn-success btn-sm">软件下载设置</a> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -17,11 +17,11 @@ | |||
</tr> | |||
<tr> | |||
<td> | |||
<div class="alert alert-info mb-0">本程序作默认会执行下面的操作:1、更新栏目缓存 2、更新枚举缓存 3、清理arclist调用缓存 4、清理过期会员浏览历史 5、删除过期短信</div> | |||
<div class="alert alert-info mb-0">默认执行下面的操作:1、更新栏目缓存 2、更新枚举缓存 3、清理文档调用缓存 4、清理过期会员浏览历史 5、删除过期会员短信 6、删除过期流量统计</div> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td><label><input type="checkbox" name="uparc" value="1"> 如果没有出现页码不正确、无法解析文档等情况,不要执行清理错误文档</label></td> | |||
<td><label><input type="checkbox" name="uparc" value="1"> 出现页码不正确和无法解析文档等情况,执行清理错误文档</label></td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#e9ecef" align="center"><button type="button" name="b112" class="btn btn-success btn-sm" value="" onClick="document.form1.submit();">开始执行</button></td> | |||
@@ -47,7 +47,7 @@ | |||
<form action="sys_data_replace.php" name="form1" method="post" target="stafrm" onSubmit="return CheckSubmit()"> | |||
<input type="hidden" name="action" value="apply"> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="2">数据库文档替换</td> | |||
<td bgcolor="#f5f5f5" colspan="2">数据库字段替换</td> | |||
</tr> | |||
<tr> | |||
<td colspan="2"> | |||
@@ -3,7 +3,7 @@ | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>病毒文件扫描</title> | |||
<title>后台文件扫描</title> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
@@ -47,7 +47,7 @@ | |||
<div id="loaddiv" class="text-center py-2" style="display:none"><img src="../static/web/img/loadinglit.gif"></div> | |||
<table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | |||
<tr> | |||
<td bgcolor="#f5f5f5">病毒文件扫描</td> | |||
<td bgcolor="#f5f5f5">后台文件扫描</td> | |||
</tr> | |||
<tr> | |||
<td><?php echo $alter;?></td> | |||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__).'/config.php'); | |||
if (DEDEBIZ_SAFE_MODE) { | |||
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | |||
} | |||
CheckPurview('plus_文件管理器'); | |||
CheckPurview('plus_file'); | |||
if (empty($acdir)) $acdir = $cfg_df_style; | |||
$templetdir = $cfg_basedir.$cfg_templets_dir; | |||
$templetdird = $templetdir.'/'.$acdir; | |||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__).'/config.php'); | |||
if (DEDEBIZ_SAFE_MODE) { | |||
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | |||
} | |||
CheckPurview('plus_文件管理器'); | |||
CheckPurview('plus_file'); | |||
$libdir = DEDEINC.'/taglib'; | |||
$helpdir = DEDEINC.'/taglib/help'; | |||
//获取默认文件说明信息 | |||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__)."/config.php"); | |||
if (DEDEBIZ_SAFE_MODE) { | |||
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | |||
} | |||
CheckPurview('plus_文件管理器'); | |||
CheckPurview('plus_file'); | |||
$action = isset($action) ? trim($action) : ''; | |||
if (empty($acdir)) $acdir = $cfg_df_style; | |||
$templetdir = $cfg_basedir.$cfg_templets_dir; | |||
@@ -4090,7 +4090,7 @@ INSERT INTO `#@__sys_module` VALUES(1, '1f35620fb42d452fa2bdc1dee1690f92', '文 | |||
(4, 'acb8b88eb4a6d4bfc375c18534f9439e', '投票模块', '', '', 0, ''), | |||
(5, '572606600345b1a4bb8c810bbae434cc', '挑错管理', '', '', 0, ''); | |||
INSERT INTO `#@__plus` VALUES(1, '文件管理器', '<m:item name=''文件管理器'' link=''file_manage_main.php'' rank=''plus_文件管理器'' target=''main'' />', '', 'DedeBIZ', 1, ''), | |||
INSERT INTO `#@__plus` VALUES(1, '文件管理器', '<m:item name=''文件管理器'' link=''file_manage_main.php'' rank=''plus_file'' 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, ''), | |||
(4, '投票模块', '<m:item name=''投票模块'' link=''vote_main.php'' rank=''plus_投票模块'' target=''main'' />', '', 'DedeBIZ', 1, ''), | |||
@@ -63,7 +63,7 @@ function sendmail($email, $mailtitle, $mailbody, $headers) | |||
} | |||
} | |||
/** | |||
* 发送邮件;type为INSERT新建验证码,UPDATE修改验证码; | |||
* 发送邮件;type为INSERT新建验证码,UPDATE修改验证码 | |||
* | |||
* @param int $mid 会员id | |||
* @param int $userid 用户id | |||
@@ -80,14 +80,14 @@ function newmail($mid, $userid, $mailto, $type, $send) | |||
$mailtitle = $cfg_webname.":密码修改"; | |||
$mailto = $mailto; | |||
$headers = "From: ".$cfg_adminemail."\r\nReply-To: $cfg_adminemail"; | |||
$mailbody = "您好".$userid.":\r\n感谢您使用".$cfg_webname."网\r\n".$cfg_webname."应您的要求,重新设置密码(如果您没有提出申请,请检查您的信息是否泄漏)\r\n本次临时登录密码为:".$randval." 请于三天内登录下面网址确认修改\r\n".$cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid; | |||
$mailbody = "尊敬的用户".$userid.",临时登录密码:".$randval."\r\n请三天内修改登录密码:".$cfg_basehost."/resetpassword.php?dopost=getpasswd&id=".$mid; | |||
if ($type == 'INSERT') { | |||
$key = md5($randval); | |||
$sql = "INSERT INTO `#@__pwd_tmp` (`mid` ,`membername` ,`pwd` ,`mailtime`) VALUES ('$mid', '$userid', '$key', '$mailtime');"; | |||
if ($db->ExecuteNoneQuery($sql)) { | |||
if ($send == 'Y') { | |||
sendmail($mailto, $mailtitle, $mailbody, $headers); | |||
return ShowMsg('EMAIL修改验证码已经发送到原来的邮箱请查收', 'login.php', '', '5000'); | |||
return ShowMsg('修改验证码已经发送到原来的邮箱请查收', 'login.php', '', '5000'); | |||
} else if ($send == 'N') { | |||
return ShowMsg('稍后跳转修改页', $cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid."&key=".$randval); | |||
} | |||
@@ -100,7 +100,7 @@ function newmail($mid, $userid, $mailto, $type, $send) | |||
if ($db->ExecuteNoneQuery($sql)) { | |||
if ($send === 'Y') { | |||
sendmail($mailto, $mailtitle, $mailbody, $headers); | |||
ShowMsg('EMAIL修改验证码已经发送到原来的邮箱请查收', 'login.php'); | |||
ShowMsg('修改验证码已经发送到原来的邮箱请查收', 'login.php'); | |||
} elseif ($send === 'N') { | |||
return ShowMsg('稍后跳转修改页', $cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid."&key=".$randval); | |||
} | |||
@@ -110,7 +110,7 @@ function newmail($mid, $userid, $mailto, $type, $send) | |||
} | |||
} | |||
/** | |||
* 查询会员信息mail用户输入邮箱地址;userid用户名 | |||
* 查询会员信息mail用户输入邮箱地址userid用户名 | |||
* | |||
* @param string $mail 邮件 | |||
* @param string $userid 用户id | |||
@@ -141,14 +141,14 @@ function sn($mid, $userid, $mailto, $send = 'Y') | |||
$sql = "SELECT * FROM `#@__pwd_tmp` WHERE mid = '$mid'"; | |||
$row = $db->GetOne($sql); | |||
if (!is_array($row)) { | |||
//发送新邮件; | |||
//发送新邮件 | |||
newmail($mid, $userid, $mailto, 'INSERT', $send); | |||
} | |||
//10分钟后可以再次发送新验证码; | |||
//10分钟后可以再次发送新验证码 | |||
elseif ($dtime - $tptim > $row['mailtime']) { | |||
newmail($mid, $userid, $mailto, 'UPDATE', $send); | |||
} | |||
//重新发送新的验证码确认邮件; | |||
//重新发送新的验证码确认邮件 | |||
else { | |||
return ShowMsg('请10分钟后再重新申请', 'login.php'); | |||
} |
@@ -73,7 +73,7 @@ | |||
</div> | |||
<div class="py-3"> | |||
<div class="pannel-main-container shadow-sm rounded"> | |||
<div class="media-body py-3"> | |||
<div class="media-body"> | |||
<div class="col-12"> | |||
<h4>最新文档</h4> | |||
<div class="card ddcard"> | |||