| @@ -49,11 +49,10 @@ class ActionSearch | |||
| //进行权限判断 | |||
| if (TestPurview($val['purview'])) { | |||
| //如果有操作权限 | |||
| if ($this->_strpos($val['title'], $this->keyword) !== false || $this->_strpos($val['description'], $this->keyword) !== false) { | |||
| if ($this->_strpos($val['title'], $this->keyword) !== false) { | |||
| //一级项目匹配 | |||
| $this->result[$i]['toptitle'] = $this->redColorKeyword($this->asarray[$key]['toptitle']); | |||
| $this->result[$i]['title'] = $this->redColorKeyword($this->asarray[$key]['title']); | |||
| $this->result[$i]['description'] = $this->redColorKeyword($this->asarray[$key]['description']); | |||
| //二级项目匹配 | |||
| $this->result[$i]['soniterm'][] = $this->redColorKeyword($val); | |||
| } | |||
| @@ -74,13 +73,8 @@ class ActionSearch | |||
| { | |||
| if (is_array($text)) { | |||
| foreach ($text as $key => $value) { | |||
| if ($key == 'title' || $key == 'description') { | |||
| //仅对title,description进行数组替换 | |||
| if ($key == 'description') { | |||
| $text[$key] = str_replace($this->keyword, '<b>'.$this->keyword.'</b>', $text[$key]); | |||
| } else { | |||
| $text[$key] = str_replace($this->keyword, '<b>'.$this->keyword.'</b>', $text[$key]); | |||
| } | |||
| if ($key == 'title') { | |||
| $text[$key] = str_replace($this->keyword, '<b>'.$this->keyword.'</b>', $text[$key]); | |||
| } | |||
| } | |||
| } else { | |||
| @@ -1,43 +0,0 @@ | |||
| <?php | |||
| /** | |||
| * 防采集工具 | |||
| * | |||
| * @version $id:article_string_mix.php 14:31 2010年7月12日 tianya $ | |||
| * @package DedeBIZ.Administrator | |||
| * @copyright Copyright (c) 2022 DedeBIZ.COM | |||
| * @license GNU GPL v2 (https://www.dedebiz.com/license) | |||
| * @link https://www.dedebiz.com | |||
| */ | |||
| require_once(dirname(__FILE__).'/config.php'); | |||
| require_once(DEDEINC.'/libraries/oxwindow.class.php'); | |||
| CheckPurview('sys_StringMix'); | |||
| if (empty($dopost)) $dopost = ''; | |||
| if (empty($allsource)) $allsource = ''; | |||
| else $allsource = stripslashes($allsource); | |||
| $m_file = DEDEDATA."/downmix.data.inc"; | |||
| //保存 | |||
| if ($dopost == "save") { | |||
| CheckCSRF(); | |||
| $fp = fopen($m_file, 'w'); | |||
| flock($fp, 3); | |||
| fwrite($fp, $allsource); | |||
| fclose($fp); | |||
| echo "<script>alert('成功保存字符串混淆');</script>"; | |||
| } | |||
| //读出 | |||
| if (empty($allsource) && filesize($m_file) > 0) { | |||
| $fp = fopen($m_file, 'r'); | |||
| $allsource = fread($fp, filesize($m_file)); | |||
| fclose($fp); | |||
| } | |||
| make_hash(); | |||
| $wecome_info = "防采集工具"; | |||
| $win = new OxWindow(); | |||
| $win->Init('article_string_mix.php', 'js/blank.js', 'POST'); | |||
| $win->AddHidden('dopost', 'save'); | |||
| $win->AddHidden('token', $_SESSION['token']); | |||
| $win->AddTitle("<div class='alert alert-info mb-0'>启用字符串混淆来防采集功能,文档模板需要的字段加上function='RndString(@me)'属性,如:{dede:field name='body' function='RndString(@me)'/}</div>"); | |||
| $win->AddMsgItem("<tr><td><textarea name='allsource' id='allsource' class='admin-textarea-xl'>$allsource</textarea></td></tr>"); | |||
| $winform = $win->GetWindow('ok'); | |||
| $win->Display(); | |||
| ?> | |||
| @@ -3,7 +3,7 @@ | |||
| .CodeMirror { | |||
| /* Set height, width, borders, and global font properties here */ | |||
| font-family: monospace; | |||
| height: 400px; | |||
| height: 350px; | |||
| color: black; | |||
| direction: ltr; | |||
| } | |||
| @@ -1 +1 @@ | |||
| body{line-height:1.6;letter-spacing:.6px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:1.2;font-size:24px;color:#393d49;font-weight:600}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.logo,.form-control{height:36px}.login-from{margin:5rem auto;width:500px}.login-box{padding:1.25rem;background:#fff}.login-box,.form-control,.btn-md,.alert,.rounded{border-radius:.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 .5rem .5rem 0;cursor:pointer}#browsehappy{padding:1rem 30px;font-size:14px;color:#856404;background:#fff3cd}.browsehappy-close{float:right;font-size:14px;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}} | |||
| body{line-height:1.6;letter-spacing:0.6px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:1.2;font-size:24px;color:#393d49;font-weight:600}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.logo,.form-control{height:36px}.login-from{margin:5rem auto;width:500px}.login-box{padding:1.25rem;background:#fff}.login-box,.form-control,.btn-md,.alert,.rounded{border-radius:.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 .5rem .5rem 0;cursor:pointer}#browsehappy{padding:1rem 30px;font-size:14px;color:#856404;background:#fff3cd}.browsehappy-close{float:right;font-size:14px;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}} | |||
| @@ -13,41 +13,34 @@ $cuserLogin = new userLogin(); | |||
| //后台功能操作配置项 | |||
| $actionSearch[0] = array( | |||
| 'title' => '常用操作', | |||
| 'description' => '后台常用操作', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '网站栏目管理', | |||
| 'description' => '网站所有栏目管理', | |||
| 'purview' => 't_List,t_AccList', | |||
| 'linkurl' => 'catalog_main.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '待审核的文档', | |||
| 'description' => '所有文档模型发表未审核列表', | |||
| 'purview' => 'a_Check,a_AccCheck', | |||
| 'linkurl' => 'content_list.php?arcrank=-1' | |||
| ), | |||
| 2 => array( | |||
| 'title' => '我发布的文档', | |||
| 'description' => '后台管理登录所发表的文档', | |||
| 'purview' => 'a_List,a_AccList,a_MyList', | |||
| 'linkurl' => 'content_list.php?mid=$cuserLogin->userID' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '标签管理', | |||
| 'description' => '网站所有标签管理', | |||
| 'purview' => 'sys_Keyword', | |||
| 'linkurl' => 'tags_main.php' | |||
| ), | |||
| 4 => array( | |||
| 'title' => '评论管理', | |||
| 'description' => '网站所有评论管理', | |||
| 'purview' => 'sys_Feedback', | |||
| 'linkurl' => 'feedback_main.php' | |||
| ), | |||
| 5 => array( | |||
| 'title' => '专题管理', | |||
| 'description' => '网站所有专题管理', | |||
| 'purview' => 'spec_New', | |||
| 'linkurl' => 'content_s_list.php' | |||
| ), | |||
| @@ -61,23 +54,14 @@ $actionSearch[0] = array( | |||
| ); | |||
| $actionSearch[2] = array( | |||
| 'title' => '附件管理', | |||
| 'description' => '网站所有附件管理', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '上传新文件', | |||
| 'description' => '上传图片、FLASH、视频音频、附件等其它附件', | |||
| 'purview' => '', | |||
| 'linkurl' => 'media_add.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '附件管理', | |||
| 'description' => '网站所有附件管理', | |||
| 'purview' => 'sys_Upload,sys_MyUpload', | |||
| 'linkurl' => 'media_main.php' | |||
| ), | |||
| 2 => array( | |||
| 1 => array( | |||
| 'title' => '文件管理器', | |||
| 'description' => '文件浏览式附件管理', | |||
| 'purview' => 'plus_文件管理器', | |||
| 'linkurl' => 'media_main.php?dopost=filemanager' | |||
| ), | |||
| @@ -85,41 +69,34 @@ $actionSearch[2] = array( | |||
| ); | |||
| $actionSearch[3] = array( | |||
| 'title' => '文档模型', | |||
| 'description' => '所有文档模型管理', | |||
| 'soniterm' => array( | |||
| 0 => DEDEBIZ_SAFE_MODE? null : array( | |||
| 'title' => '文档模型管理', | |||
| 'description' => '网站文档、图片、软件、专题、分类等模型管理', | |||
| 'purview' => 'c_List', | |||
| 'linkurl' => 'mychannel_main.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '文档单页管理', | |||
| 'description' => '创建和管理单页面', | |||
| 'purview' => 'temp_One', | |||
| 'linkurl' => 'templets_one.php' | |||
| ), | |||
| 2 => array( | |||
| 'title' => '联动类型管理', | |||
| 'description' => '创建和管理所有联动类型', | |||
| 'purview' => 'c_Stepseclect', | |||
| 'linkurl' => 'stepselect_main.php?dopost=filemanager' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '自由列表管理', | |||
| 'description' => '创建不同的列表形式', | |||
| 'purview' => 'c_List', | |||
| 'linkurl' => 'freelist_main.php' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '自定义文档属性', | |||
| 'description' => '自定义文档属性管理', | |||
| 'purview' => 'sys_Att', | |||
| 'linkurl' => 'content_att.php' | |||
| ), | |||
| 4 => array( | |||
| 'title' => '自定义表单管理', | |||
| 'description' => '创建和管理自定义表单', | |||
| 'purview' => 'c_List', | |||
| 'linkurl' => 'diy_main.php' | |||
| ), | |||
| @@ -127,41 +104,34 @@ $actionSearch[3] = array( | |||
| ); | |||
| $actionSearch[4] = array( | |||
| 'title' => '批量维护', | |||
| 'description' => '网站数据维护', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '文档批量维护', | |||
| 'description' => '某个栏目或者全部栏目的文档进行批量审核文档、更新网页、移动文档、删除文档', | |||
| 'purview' => 'sys_ArcBatch', | |||
| 'linkurl' => 'content_batch_up.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '文档重复检测', | |||
| 'description' => '网站重复标题文档处理', | |||
| 'purview' => 'sys_ArcBatch', | |||
| 'linkurl' => 'article_test_same.php' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '文档关键词维护', | |||
| 'description' => '所有文档关键词批量维护', | |||
| 'purview' => 'sys_Keyword', | |||
| 'linkurl' => 'article_keywords_main.php' | |||
| ), | |||
| 4 => array( | |||
| 'title' => '搜索关键词维护', | |||
| 'description' => '所有搜索关键词管理', | |||
| 'purview' => 'sys_Keyword', | |||
| 'linkurl' => 'search_keywords_main.php?dopost=filemanager' | |||
| ), | |||
| 5 => array( | |||
| 'title' => '自动摘要分页', | |||
| 'description' => '没有填写描述的文档或没分页的文档的自动分页标识自动更新', | |||
| 'purview' => 'sys_Keyword', | |||
| 'linkurl' => 'article_description_main.php' | |||
| ), | |||
| 6 => DEDEBIZ_SAFE_MODE? null : array( | |||
| 'title' => '数据库字段替换', | |||
| 'description' => '网站数据库字段批量替换', | |||
| 'purview' => 'sys_ArcBatch', | |||
| 'linkurl' => 'sys_data_replace.php' | |||
| ), | |||
| @@ -169,29 +139,24 @@ $actionSearch[4] = array( | |||
| ); | |||
| $actionSearch[5] = array( | |||
| 'title' => '会员管理', | |||
| 'description' => '网站所有会员管理', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '所有会员列表', | |||
| 'description' => '所有会员修改删除,查看会员文档以及提升管理员', | |||
| 'purview' => 'member_List', | |||
| 'linkurl' => 'member_main.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '会员短信管理', | |||
| 'description' => '会员发送的短消息,其中包含群发短消息和对单个会员发送短消息两种', | |||
| 'purview' => 'member_Type', | |||
| 'linkurl' => 'member_pm.php' | |||
| ), | |||
| 2 => array( | |||
| 'title' => '会员级别设置', | |||
| 'description' => '会员级别设置,通过不同会员的浏览权限来对会员级别进行一个扩展', | |||
| 'purview' => 'member_Type', | |||
| 'linkurl' => 'member_rank.php' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '积分头衔设置', | |||
| 'description' => '会员积分等级设置,根据活动积分对会员进行头衔管理', | |||
| 'purview' => 'member_Type', | |||
| 'linkurl' => 'member_scores.php' | |||
| ), | |||
| @@ -199,35 +164,29 @@ $actionSearch[5] = array( | |||
| ); | |||
| $actionSearch[6] = array( | |||
| 'title' => '支付工具', | |||
| 'description' => '配置支付方式', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '积分产品管理', | |||
| 'description' => '网站积分产品管理,生成积分以及查看积分使用状态', | |||
| 'purview' => 'sys_Data', | |||
| 'linkurl' => 'cards_manage.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '积分产品分类', | |||
| 'description' => '网站积分产品分类,添加不同点数的积分产品类型', | |||
| 'purview' => 'sys_Data', | |||
| 'linkurl' => 'cards_type.php' | |||
| ), | |||
| 2 => array( | |||
| 'title' => '会员消费记录', | |||
| 'description' => '会员消费记录,查看消费充值订单的付款情况', | |||
| 'purview' => 'sys_Data', | |||
| 'linkurl' => 'member_operations.php' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '会员等级分类', | |||
| 'description' => '会员等级分类划分,设置网站会员等级', | |||
| 'purview' => 'sys_Data', | |||
| 'linkurl' => 'member_type.php' | |||
| ), | |||
| 4 => array( | |||
| 'title' => '支付接口设置', | |||
| 'description' => '网站支付接口配置', | |||
| 'purview' => 'sys_Data', | |||
| 'linkurl' => 'sys_payment.php' | |||
| ), | |||
| @@ -235,41 +194,34 @@ $actionSearch[6] = array( | |||
| ); | |||
| $actionSearch[7] = array( | |||
| 'title' => '更新任务', | |||
| 'description' => '一键生成静态管理', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '更新网站', | |||
| 'description' => '生成所有静态页面', | |||
| 'purview' => 'sys_MakeHtml', | |||
| 'linkurl' => 'makehtml_all.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '更新首页', | |||
| 'description' => '生成网站首页面', | |||
| 'purview' => 'sys_MakeHtml', | |||
| 'linkurl' => 'makehtml_homepage.php' | |||
| ), | |||
| 2 => array( | |||
| 'title' => '更新栏目', | |||
| 'description' => '生成栏目页面', | |||
| 'purview' => 'sys_MakeHtml', | |||
| 'linkurl' => 'makehtml_list.php' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '更新文档', | |||
| 'description' => '生成文档页面', | |||
| 'purview' => 'sys_MakeHtml', | |||
| 'linkurl' => 'makehtml_archives.php' | |||
| ), | |||
| 4 => array( | |||
| 'title' => '更新专题', | |||
| 'description' => '生成专题页面', | |||
| 'purview' => 'sys_MakeHtml', | |||
| 'linkurl' => 'makehtml_spec.php' | |||
| ), | |||
| 5 => array( | |||
| 'title' => '更新缓存', | |||
| 'description' => '更新栏目缓存、更新枚举缓存、清理文档调用缓存、清理过期会员浏览历史、删除过期会员短信', | |||
| 'purview' => 'sys_ArcBatch', | |||
| 'linkurl' => 'sys_cache_up.php' | |||
| ), | |||
| @@ -277,35 +229,29 @@ $actionSearch[7] = array( | |||
| ); | |||
| $actionSearch[8] = DEDEBIZ_SAFE_MODE? null : array( | |||
| 'title' => '模板管理', | |||
| 'description' => '网站主题模板管理', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '默认模板管理', | |||
| 'description' => '网站主题模板文件管理', | |||
| 'purview' => 'temp_All', | |||
| 'linkurl' => 'templets_main.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '标签源码管理', | |||
| 'description' => '系统标签文件修改', | |||
| 'purview' => 'temp_All', | |||
| 'linkurl' => 'templets_tagsource.php' | |||
| ), | |||
| 2 => array( | |||
| 'title' => '自定义宏标记', | |||
| 'description' => '所有自定义标记管理', | |||
| 'purview' => 'temp_MyTag', | |||
| 'linkurl' => 'mytag_main.php' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '智能标记向导', | |||
| 'description' => '根据需要生成相应的调用标签', | |||
| 'purview' => 'temp_Other', | |||
| 'linkurl' => 'mytag_tag_guide.php' | |||
| ), | |||
| 4 => array( | |||
| 'title' => '全局标记测试', | |||
| 'description' => '全局标签调用测试', | |||
| 'purview' => 'temp_Test', | |||
| 'linkurl' => 'tag_test.php' | |||
| ), | |||
| @@ -313,77 +259,54 @@ $actionSearch[8] = DEDEBIZ_SAFE_MODE? null : array( | |||
| ); | |||
| $actionSearch[9] = array( | |||
| 'title' => '系统设置', | |||
| 'description' => '后台系统设置', | |||
| 'soniterm' => array( | |||
| 0 => array( | |||
| 'title' => '系统设置', | |||
| 'description' => '站点设置、核心设置、附件设置、会员设置、互动设置、性能选项、其它选项、添加新变量等功能设置', | |||
| 'purview' => 'sys_Edit', | |||
| 'linkurl' => 'sys_info.php' | |||
| ), | |||
| 1 => array( | |||
| 'title' => '管理员管理', | |||
| 'description' => '网站管理员管理', | |||
| 'purview' => 'sys_User', | |||
| 'linkurl' => 'sys_admin_user.php' | |||
| ), | |||
| 2 => array( | |||
| 'title' => '会员组管理', | |||
| 'description' => '网站管理员组权限管理', | |||
| 'purview' => 'sys_Group', | |||
| 'linkurl' => 'sys_group.php' | |||
| ), | |||
| 3 => array( | |||
| 'title' => '日志管理', | |||
| 'description' => '登录后台管理员操作进行记录', | |||
| 'purview' => 'sys_Log', | |||
| 'linkurl' => 'log_list.php' | |||
| ), | |||
| 5 => array( | |||
| 'title' => '图片水印设置', | |||
| 'description' => '上传图片添加水印设置', | |||
| 'purview' => 'sys_Edit', | |||
| 'linkurl' => 'sys_info_mark.php' | |||
| ), | |||
| /*5 => array( | |||
| 'title' => '云服务设置', | |||
| 'description' => '主流云服务平台支持', | |||
| 'purview' => 'sys_Edit', | |||
| 'linkurl' => 'sys_cloud.php' | |||
| ),*/ | |||
| 6 => array( | |||
| 'title' => '软件下载设置', | |||
| 'description' => '软件下载连接显示方式,下载方式等配置', | |||
| 'purview' => 'sys_SoftConfig', | |||
| 'linkurl' => 'soft_config.php' | |||
| ), | |||
| 7 => array( | |||
| 'title' => '防采集工具', | |||
| 'description' => '网站防采集工具', | |||
| 'purview' => 'sys_StringMix', | |||
| 'linkurl' => 'article_string_mix.php' | |||
| ), | |||
| 8 => DEDEBIZ_SAFE_MODE? null : array( | |||
| 7 => DEDEBIZ_SAFE_MODE? null : array( | |||
| 'title' => '数据库备份还原', | |||
| 'description' => '数据库备份和还原数据备份', | |||
| 'purview' => 'sys_data', | |||
| 'linkurl' => 'sys_data.php' | |||
| ), | |||
| 9 => DEDEBIZ_SAFE_MODE? null : array( | |||
| 8 => DEDEBIZ_SAFE_MODE? null : array( | |||
| 'title' => 'SQL命令工具', | |||
| 'description' => '数据表执行单行或者多行的SQL语句', | |||
| 'purview' => 'sys_data', | |||
| 'linkurl' => 'sys_sql_query.php' | |||
| ), | |||
| 10 => array( | |||
| 9 => array( | |||
| 'title' => '文件扫描工具', | |||
| 'description' => '以DedeBIZ开发模式为标准对现有的文件进行扫描判断', | |||
| 'purview' => 'sys_verifies', | |||
| 'linkurl' => 'sys_safetest.php' | |||
| ), | |||
| 11 => array( | |||
| 10 => array( | |||
| 'title' => '系统修复工具', | |||
| 'description' => '手动和自动升级错误处理', | |||
| 'purview' => 'sys_verifies', | |||
| 'linkurl' => 'sys_repair.php' | |||
| ), | |||
| @@ -64,7 +64,6 @@ if ($cuserLogin->getUserType() >= 10) { | |||
| <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='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' /> | |||
| @@ -50,10 +50,10 @@ if (empty($dopost)) { | |||
| if (count($arcArr) > 0) { | |||
| foreach($arcArr as $row) | |||
| { | |||
| if (trim($row['editcon'])=='') { | |||
| if (trim($row['editcon']) == '') { | |||
| $row['editcon'] = 'archives_edit.php'; | |||
| } | |||
| $rowarcrank = $row['arcrank']==-1? "<span class='btn btn-danger btn-xs ml-2'>未审核</span>":""; | |||
| $rowarcrank = $row['arcrank'] == -1? " <span class='btn btn-danger btn-xs'>未审核</span>" : ""; | |||
| $pubdate = GetDateMk($row['pubdate']); | |||
| echo "<tr><td><a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>{$rowarcrank}</td><td width='100'>{$pubdate}</td></tr>"; | |||
| } | |||
| @@ -123,7 +123,7 @@ if (!function_exists('IsWritable')) { | |||
| $safeMsg = array(); | |||
| $dirname = str_replace('index_body.php', '', strtolower($_SERVER['PHP_SELF'])); | |||
| if (!DEDEBIZ_SAFE_MODE) { | |||
| $safeMsg[] = '系统运行环境为开发模式,建议您启用安全模式<a href="index_body.php?dopost=safe_mode" class="btn btn-success btn-xs ml-2">详情</a>'; | |||
| $safeMsg[] = '系统运行环境为开发模式,建议您启用安全模式 <a href="index_body.php?dopost=safe_mode" class="btn btn-success btn-xs">详情</a>'; | |||
| } | |||
| if (!IsSSL()) { | |||
| $safeMsg[] = '检测到网址非安全链接,建议您部署https'; | |||
| @@ -139,7 +139,7 @@ if (preg_match("#[\\|/]admin[\\|/]#", $dirname)) { | |||
| } | |||
| $rs = TestAdminPWD(); | |||
| if ($rs < 0) { | |||
| $linkurl = '<a href="sys_admin_user.php" class="btn btn-success btn-xs ml-2">修改</a>'; | |||
| $linkurl = ' <a href="sys_admin_user.php" class="btn btn-success btn-xs">修改</a>'; | |||
| switch ($rs) { | |||
| case -1: | |||
| $msg = "检测到默认账号没有修改,建议您修改{$linkurl}"; | |||
| @@ -12,7 +12,7 @@ | |||
| <form name="form1" action="adtype_main.php" method="post"> | |||
| <table align="center" class="table maintable my-3"> | |||
| <tr> | |||
| <td bgcolor="#f5f5f5" colspan="3"><input type="hidden" name="dopost" value="save">广告分类管理<a href="ad_main.php" class="btn btn-success btn-sm ml-2">广告管理</a></td> | |||
| <td bgcolor="#f5f5f5" colspan="3"><input type="hidden" name="dopost" value="save">广告分类管理</td> | |||
| </tr> | |||
| <tr bgcolor="#e9ecef" align="center"> | |||
| <td width="6%">id</td> | |||
| @@ -28,7 +28,7 @@ | |||
| $k++; | |||
| ?> | |||
| <tr> | |||
| <td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>" /><?php echo $row->id;?></td> | |||
| <td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>"><?php echo $row->id;?></td> | |||
| <td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" class="w-100"></td> | |||
| <td><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked="checked"> 保留</label></td> | |||
| </tr> | |||
| @@ -95,7 +95,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-sm btn-success delete">清空</button> | |||
| @@ -96,7 +96,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -90,7 +90,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success delete">清空</button> | |||
| @@ -92,7 +92,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button> | |||
| @@ -63,7 +63,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -67,7 +67,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" class="admin-input-lg" value="<?php echo $addRow['litpic']?>"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -89,7 +89,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -207,8 +207,8 @@ | |||
| <tr> | |||
| <td width="120">分页方式:</td> | |||
| <td> | |||
| <label class="l-height-30"><input type="radio" name="sptype" value="hand" <?php if ($cfg_arcautosp=='N') echo "checked='checked'"?>> 手动</label> | |||
| <label class="l-height-30"><input type="radio" name="sptype" value="auto" <?php if ($cfg_arcautosp=='Y') echo "checked='checked'"?>> 自动</label> | |||
| <label><input type="radio" name="sptype" value="hand" <?php if ($cfg_arcautosp=='N') echo "checked='checked'"?>> 手动</label> | |||
| <label><input type="radio" name="sptype" value="auto" <?php if ($cfg_arcautosp=='Y') echo "checked='checked'"?>> 自动</label> | |||
| <label>大小:<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" class="admin-input-xs"> K(分页符为:#p#分页标题#e#)</label> | |||
| </td> | |||
| </tr> | |||
| @@ -96,7 +96,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button> | |||
| @@ -167,9 +167,9 @@ | |||
| </td> | |||
| <td>栏目交叉:</td> | |||
| <td> | |||
| <label class="l-height-30"><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" checked="checked"> 不交叉</label> | |||
| <label class="l-height-30"><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()"> 自动获取同名栏目</label> | |||
| <label class="l-height-30"><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()"> 指定交叉栏目id(英文逗号分开)</label> | |||
| <label><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" checked="checked"> 不交叉</label> | |||
| <label><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()"> 自动获取同名栏目</label> | |||
| <label><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()"> 指定交叉栏目id(英文逗号分开)</label> | |||
| <span onclick="ShowHide('helpvarco')" title="帮助" class="btn btn-success btn-sm"><i class="fa fa-question-circle"></i></span><br> | |||
| <textarea name="crossid" id="crossid" class="admin-textarea-sm" style="display:none"></textarea> | |||
| <div id="helpvarco" class="alert alert-info my-2" style="display:none">交叉栏目是大栏目与另一个非子栏目交叉的情况,相当于副栏目功能,需要在栏目里设置好</div> | |||
| @@ -266,9 +266,9 @@ | |||
| <td>是否支持跨站调用:</td> | |||
| <td> | |||
| <input type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥"> | |||
| <label class="l-height-30"><input type="radio" name="apienabled" value="1"> 支持</label> | |||
| <label class="l-height-30"><input type="radio" name="apienabled" value="0" checked="checked"> 不支持</label> | |||
| <span class="btn btn-success btn-sm ml-2" title="更新秘钥" onclick="makeAPIKey()"><i class="fa fa-repeat"></i></span> | |||
| <label><input type="radio" name="apienabled" value="1"> 支持</label> | |||
| <label><input type="radio" name="apienabled" value="0" checked="checked"> 不支持</label> | |||
| <span class="btn btn-success btn-sm" title="更新秘钥" onclick="makeAPIKey()"><i class="fa fa-repeat"></i></span> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -152,9 +152,9 @@ | |||
| </td> | |||
| <td>栏目交叉:</td> | |||
| <td> | |||
| <label class="l-height-30"><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" <?php if ($myrow['cross']==0) echo "checked='checked'";?>> 不交叉</label> | |||
| <label class="l-height-30"><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()" <?php if ($myrow['cross']==1) echo "checked='checked'";?>> 自动获取同名栏目</label> | |||
| <label class="l-height-30"><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()" <?php if ($myrow['cross']==2) echo "checked='checked'";?>> 指定交叉栏目id(英文逗号分开)</label> | |||
| <label><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" <?php if ($myrow['cross']==0) echo "checked='checked'";?>> 不交叉</label> | |||
| <label><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()" <?php if ($myrow['cross']==1) echo "checked='checked'";?>> 自动获取同名栏目</label> | |||
| <label><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()" <?php if ($myrow['cross']==2) echo "checked='checked'";?>> 指定交叉栏目id(英文逗号分开)</label> | |||
| <span onclick="ShowHide('helpvarco')" title="帮助" class="btn btn-success btn-sm"><i class="fa fa-question-circle"></i></span><br> | |||
| <textarea name="crossid" id="crossid" class="admin-textarea-sm" style="<?php if ($myrow['cross']!=2) echo'display:none';?>"><?php echo $myrow['crossid'];?></textarea> | |||
| <div id="helpvarco" class="alert alert-info my-2" style="display:none">交叉栏目是大栏目与另一个非子栏目交叉的情况,相当于副栏目功能,需要在栏目里设置好</div> | |||
| @@ -251,7 +251,7 @@ | |||
| <input value="<?php echo $myrow['apikey']?>" type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥"> | |||
| <label><input type="radio" name="apienabled" value="1" <?php if ($myrow['apienabled']=="1") echo "checked='checked'";?>> 支持</label> | |||
| <label><input type="radio" name="apienabled" value="0" <?php if ($myrow['apienabled']=="0") echo "checked='checked'";?>> 不支持</label> | |||
| <span class="btn btn-success btn-sm ml-2" title="更新秘钥" onclick="makeAPIKey()"><i class="fa fa-repeat"></i></span> | |||
| <span class="btn btn-success btn-sm" title="更新秘钥" onclick="makeAPIKey()"><i class="fa fa-repeat"></i></span> | |||
| <span class="btn btn-success btn-sm" title="秘钥标签" onclick="showAPI(<?php echo $id;?>)"><i class="fa fa-question-circle"></i></span> | |||
| </td> | |||
| </tr> | |||
| @@ -38,8 +38,8 @@ | |||
| <td colspan="3"> | |||
| <input type="button" name="select" onclick="selAll()" class="btn btn-success btn-sm" value="全选"> | |||
| <input type="button" name="select" onclick="noSelAll()" class="btn btn-success btn-sm mr-2" value="取消"> | |||
| <label class="l-height-30 mr-2"><input type="radio" name="action" value="check"> 审核</label> | |||
| <label class="l-height-30 mr-2"><input type="radio" name="action" value="delete"> 删除</label> | |||
| <label class="mr-2"><input type="radio" name="action" value="check"> 审核</label> | |||
| <label class="mr-2"><input type="radio" name="action" value="delete"> 删除</label> | |||
| <button type="submit" name="submit" class="btn btn-success btn-sm">提交</button> | |||
| <a href="../apps/diy.php?action=list&diyid=<?php echo $diy->diyid;?>" target="_blank" class="btn btn-success btn-sm">预览</a> | |||
| </td> | |||
| @@ -34,7 +34,7 @@ | |||
| </tr> | |||
| {/dede:datalist} | |||
| <tr> | |||
| <td colspan="4"><a href="diy_add.php" class="btn btn-success btn-sm ml-2">添加自定义表单</a></td> | |||
| <td colspan="4"><a href="diy_add.php" class="btn btn-success btn-sm">添加自定义表单</a></td> | |||
| </tr> | |||
| <tr> | |||
| <td colspan="4" bgcolor="#f5f5f5" align="center">{dede:pagelist listsize='6'/}</td> | |||
| @@ -65,7 +65,7 @@ | |||
| <td>目录默认页名称:</td> | |||
| <td> | |||
| <input type="text" name="defaultpage" id="defaultpage" value="index.html" class="admin-input-lg"> | |||
| <label class="l-height-30"><input type="checkbox" name="nodefault" id="nodefault" value="1"> 不使用目录默认首页</label> | |||
| <label><input type="checkbox" name="nodefault" id="nodefault" value="1"> 不使用目录默认首页</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -144,9 +144,9 @@ | |||
| </tr> | |||
| <tr> | |||
| <td colspan="2"> | |||
| <label class="l-height-30">高级筛选:<input type="checkbox" name="types[]" id="type1" value="image"> 带缩略图</label> | |||
| <label class="l-height-30"><input type="checkbox" name="types[]" id="type2" value="commend"> 推荐</label> | |||
| <label class="l-height-30"><input type="checkbox" name="types[]" id="type3" value="spec"> 专题</label> | |||
| <label>高级筛选:<input type="checkbox" name="types[]" id="type1" value="image"> 带缩略图</label> | |||
| <label><input type="checkbox" name="types[]" id="type2" value="commend"> 推荐</label> | |||
| <label><input type="checkbox" name="types[]" id="type3" value="spec"> 专题</label> | |||
| <label>关键词:<input type="text" name="keywordarc" id="keywordarc">(英文逗号分开)</label> | |||
| </td> | |||
| </tr> | |||
| @@ -162,8 +162,8 @@ | |||
| <option value="lastpost">最后评论时间</option> | |||
| <option value="postnum">评论总数</option> | |||
| </select> | |||
| <label class="l-height-30"><input type="radio" name="order" value="desc" checked="checked"> 由高到低</label> | |||
| <label class="l-height-30"><input type="radio" name="order" value="asc"> 由低到高</label> | |||
| <label><input type="radio" name="order" value="desc" checked="checked"> 由高到低</label> | |||
| <label><input type="radio" name="order" value="asc"> 由低到高</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -137,9 +137,9 @@ | |||
| if ($setype=='') $setype = 'X'; | |||
| ?> | |||
| <span>高级筛选:</span> | |||
| <label class="l-height-30"><input type="checkbox" name="types[]" id="type1" value="image" <?php if (preg_match("#image#i",$setype)) echo ' checked';?>> 带缩略图</label> | |||
| <label class="l-height-30"><input type="checkbox" name="types[]" id="type2" value="commend" <?php if (preg_match("#commend#i", $setype)) echo ' checked';?>> 推荐</label> | |||
| <label class="l-height-30"><input type="checkbox" name="types[]" id="type3" value="spec" <?php if (preg_match("#spec#i", $setype)) echo ' checked';?>> 专题</label> | |||
| <label><input type="checkbox" name="types[]" id="type1" value="image" <?php if (preg_match("#image#i",$setype)) echo ' checked';?>> 带缩略图</label> | |||
| <label><input type="checkbox" name="types[]" id="type2" value="commend" <?php if (preg_match("#commend#i", $setype)) echo ' checked';?>> 推荐</label> | |||
| <label><input type="checkbox" name="types[]" id="type3" value="spec" <?php if (preg_match("#spec#i", $setype)) echo ' checked';?>> 专题</label> | |||
| <label>关键词:<input type="text" name="keywordarc" id="keywordarc" value="<?php echo $ctag->GetAtt('keyword')?>">(英文逗号分开)</label> | |||
| </td> | |||
| </tr> | |||
| @@ -167,8 +167,8 @@ | |||
| <option value="lastpost">最后评论时间</option> | |||
| <option value="postnum">评论总数</option> | |||
| </select> | |||
| <label class="l-height-30"><input type="radio" name="order" value="desc" <?php if ($ctag->GetAtt('orderway')=='desc') echo "checked";?>> 由高到低</label> | |||
| <label class="l-height-30"><input type="radio" name="order" value="asc" <?php if ($ctag->GetAtt('orderway')=='asc') echo "checked";?>> 由低到高</label> | |||
| <label><input type="radio" name="order" value="desc" <?php if ($ctag->GetAtt('orderway')=='desc') echo "checked";?>> 由高到低</label> | |||
| <label><input type="radio" name="order" value="asc" <?php if ($ctag->GetAtt('orderway')=='asc') echo "checked";?>> 由低到高</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -54,7 +54,7 @@ | |||
| if ($data->code == -1) { | |||
| ?> | |||
| <tr> | |||
| <td colspan="2">启动商业组件失败,<a href="https://www.dedebiz.com/start?code=-1008" target="_blank" class="btn btn-warning btn-sm ml-2">如何启动组件</a></td> | |||
| <td colspan="2">启动商业组件失败 <a href="https://www.dedebiz.com/start?code=-1008" target="_blank" class="btn btn-warning btn-sm">如何启动组件</a></td> | |||
| </tr> | |||
| <?php | |||
| } else { | |||
| @@ -84,7 +84,7 @@ | |||
| </tr> | |||
| <?php }}} else {?> | |||
| <tr> | |||
| <td colspan="2">启动商业组件失败<a href="https://www.dedebiz.com/start?code=-1008" target="_blank" class="btn btn-warning btn-sm ml-2">启动组件</a></td> | |||
| <td colspan="2">启动商业组件失败 <a href="https://www.dedebiz.com/start?code=-1008" target="_blank" class="btn btn-warning btn-sm">启动组件</a></td> | |||
| </tr> | |||
| <?php }?> | |||
| <tr> | |||
| @@ -105,7 +105,7 @@ | |||
| } | |||
| ?> | |||
| </select> | |||
| <label class="l-height-30"><input type="checkbox" name="relation_automake" id="relation_automake" value="1"> 发布时自动更新关联文档</label> | |||
| <label><input type="checkbox" name="relation_automake" id="relation_automake" value="1"> 发布时自动更新关联文档</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -117,7 +117,7 @@ | |||
| } | |||
| ?> | |||
| </select> | |||
| <label class="l-height-30"><input type="checkbox" name="relation_automake" id="relation_automake" value="1" <?php echo $ctag->GetAtt('automake')==1? "checked" : "";?>> 发布时自动更新关联文档</label> | |||
| <label><input type="checkbox" name="relation_automake" id="relation_automake" value="1" <?php echo $ctag->GetAtt('automake')==1? "checked" : "";?>> 发布时自动更新关联文档</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -106,7 +106,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -108,7 +108,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -110,7 +110,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -110,7 +110,7 @@ | |||
| <td width="120">缩略图:</td> | |||
| <td width="630"> | |||
| <input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg"> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="l-height-30"> 远程</label> | |||
| <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||
| <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
| <button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
| <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | |||
| @@ -189,9 +189,6 @@ | |||
| if ($topvalue % 500 != 0) $arr['issign'] = 2; | |||
| ?> | |||
| <table align="center" class="table maintable mb-3"> | |||
| <tr> | |||
| <td bgcolor="#f5f5f5" colspan="8">联动枚举组管理</td> | |||
| </tr> | |||
| <tr> | |||
| <td bgcolor="#f5f5f5" colspan="8"> | |||
| <span class="float-left"><?php echo $selgroup;?> - 子分类管理</span> | |||
| @@ -210,14 +207,14 @@ | |||
| <input type="hidden" name="action" value="addenum_save"> | |||
| <input type="hidden" name="issign" value="<?php echo $arr['issign'];?>"> | |||
| <input type="hidden" name="egroup" value="<?php echo $arr['egroup'];?>"> | |||
| <span class="float-left ml-2">隶属分类: | |||
| <select name="topvalue" onChange="ChangePage2(this)" class="admin-input-sm"> | |||
| <option value="0"><?php echo $selgroup;?></option> | |||
| <?php echo $options;?> | |||
| </select> | |||
| </span> | |||
| <span class="float-left ml-2">分类名称:<input type="text" name="ename" class="admin-input-lg"></span> | |||
| <span class="float-left ml-2"><button type="submit" name="sb2" class="btn btn-success btn-sm">添加分类</button></span> | |||
| <span>隶属分类:</span> | |||
| <select name="topvalue" onChange="ChangePage2(this)" class="admin-input-sm"> | |||
| <option value="0"><?php echo $selgroup;?></option> | |||
| <?php echo $options;?> | |||
| </select> | |||
| <span>分类名称:</span> | |||
| <input type="text" name="ename" class="admin-input-lg"></span> | |||
| <button type="submit" name="sb2" class="btn btn-success btn-sm">添加分类</button> | |||
| </form> | |||
| </td> | |||
| </tr> | |||
| @@ -29,7 +29,7 @@ | |||
| if (empty($cid)) $cid="0"; | |||
| $tl = new TypeLink($cid); | |||
| $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0); | |||
| echo "<select name='typeid' class='admin-input-sm ml-2'>"; | |||
| echo "<select name='typeid' class='admin-input-sm'>"; | |||
| if ($cid=="0") echo "<option value='0' selected>不使用环境</option>"; | |||
| echo $typeOptions; | |||
| echo "</select>"; | |||
| @@ -531,9 +531,6 @@ body.hidemenu .body-right { | |||
| color:inherit; | |||
| cursor:pointer | |||
| } | |||
| .l-height-30 { | |||
| line-height:30px | |||
| } | |||
| .list-group-item { | |||
| padding:0.5rem 0 | |||
| } | |||
| @@ -374,9 +374,6 @@ input[type=file] { | |||
| .btn+.btn { | |||
| margin-left:10px | |||
| } | |||
| .l-height-30 { | |||
| line-height:30px | |||
| } | |||
| .input-text { | |||
| height:36px; | |||
| line-height:36px | |||
| @@ -11,7 +11,6 @@ if (!defined('DEDEINC')) exit ('dedebiz'); | |||
| */ | |||
| require_once(DEDEINC."/typelink/typelink.class.php"); | |||
| require_once(DEDEINC."/channelunit.class.php"); | |||
| require_once(DEDEINC."/downmix.inc.php"); | |||
| @set_time_limit(0); | |||
| class Archives | |||
| { | |||
| @@ -1,14 +0,0 @@ | |||
| <?php | |||
| if (!defined('DEDEINC')) exit ('dedebiz'); | |||
| /** | |||
| * 防采集混淆字符串 | |||
| * | |||
| * @version $id:downmix.inc.php 9:14 2010年7月6日 tianya $ | |||
| * @package DedeBIZ.Libraries | |||
| * @copyright Copyright (c) 2022 DedeBIZ.COM | |||
| * @license GNU GPL v2 (https://www.dedebiz.com/license) | |||
| * @link https://www.dedebiz.com | |||
| */ | |||
| //仅作一个映射,开发直接采用helper('downmix');调用 | |||
| helper('downmix'); | |||
| ?> | |||
| @@ -1,96 +0,0 @@ | |||
| <?php | |||
| if (!defined('DEDEINC')) exit ('dedebiz'); | |||
| /** | |||
| * 防采集混淆字符串 | |||
| * | |||
| * @version $id:downmix.inc.php 9:14 2010年7月6日 tianya $ | |||
| * @package DedeBIZ.Libraries | |||
| * @copyright Copyright (c) 2022 DedeBIZ.COM | |||
| * @license GNU GPL v2 (https://www.dedebiz.com/license) | |||
| * @link https://www.dedebiz.com | |||
| */ | |||
| /** | |||
| * 混淆字符串文档 | |||
| * | |||
| * @access public | |||
| * @param string $body 文档 | |||
| * @return string | |||
| */ | |||
| if (!function_exists('RndString')) { | |||
| function RndString(&$body) | |||
| { | |||
| //最大间隔距离(如果在检测不到p标记的情况下,加入混淆字串的最大间隔距离) | |||
| $maxpos = 1024; | |||
| //font 的字体颜色 | |||
| $fontColor = "#ffffff"; | |||
| //div span p 标记的随机样式 | |||
| $st1 = chr(mt_rand(ord('A'), ord('Z'))).chr(mt_rand(ord('a'), ord('z'))).chr(mt_rand(ord('a'), ord('z'))).mt_rand(100, 999); | |||
| $st2 = chr(mt_rand(ord('A'), ord('Z'))).chr(mt_rand(ord('a'), ord('z'))).chr(mt_rand(ord('a'), ord('z'))).mt_rand(100, 999); | |||
| $st3 = chr(mt_rand(ord('A'), ord('Z'))).chr(mt_rand(ord('a'), ord('z'))).chr(mt_rand(ord('a'), ord('z'))).mt_rand(100, 999); | |||
| $st4 = chr(mt_rand(ord('A'), ord('Z'))).chr(mt_rand(ord('a'), ord('z'))).chr(mt_rand(ord('a'), ord('z'))).mt_rand(100, 999); | |||
| $rndstyle[1]['value'] = ".{$st1} { display:none; }"; | |||
| $rndstyle[1]['name'] = $st1; | |||
| $rndstyle[2]['value'] = ".{$st2} { display:none; }"; | |||
| $rndstyle[2]['name'] = $st2; | |||
| $rndstyle[3]['value'] = ".{$st3} { display:none; }"; | |||
| $rndstyle[3]['name'] = $st3; | |||
| $rndstyle[4]['value'] = ".{$st4} { display:none; }"; | |||
| $rndstyle[4]['name'] = $st4; | |||
| $mdd = mt_rand(1, 4); | |||
| $rndstyleValue = $rndstyle[$mdd]['value']; | |||
| $rndstyleName = $rndstyle[$mdd]['name']; | |||
| $reString = "<style> $rndstyleValue </style>\r\n"; | |||
| //附机标记 | |||
| $rndem[1] = 'font'; | |||
| $rndem[2] = 'div'; | |||
| $rndem[3] = 'span'; | |||
| $rndem[4] = 'p'; | |||
| //读取字符串数据 | |||
| $fp = fopen(DEDEDATA.'/downmix.data.inc', 'r'); | |||
| $start = 0; | |||
| $totalitem = 0; | |||
| while (!feof($fp)) { | |||
| $v = trim(fgets($fp, 128)); | |||
| if ($start == 1) { | |||
| if (preg_match("/#end#/i", $v)) { | |||
| break; | |||
| } | |||
| if ($v != '') { | |||
| $totalitem++; | |||
| $rndstring[$totalitem] = preg_replace("/#,/", "", $v); | |||
| } | |||
| } | |||
| if (preg_match("/#start#/i", $v)) { | |||
| $start = 1; | |||
| } | |||
| } | |||
| fclose($fp); | |||
| //处理要防采集的字段 | |||
| $bodylen = strlen($body) - 1; | |||
| $prepos = 0; | |||
| for ($i = 0; $i <= $bodylen; $i++) { | |||
| if ($i + 2 >= $bodylen || $i < 50) { | |||
| $reString .= $body[$i]; | |||
| } else { | |||
| $ntag = @strtolower($body[$i].$body[$i + 1].$body[$i + 2]); | |||
| if ($ntag == '</p' || ($ntag == '<br' && $i - $prepos > $maxpos)) { | |||
| $dd = mt_rand(1, 4); | |||
| $emname = $rndem[$dd]; | |||
| $dd = mt_rand(1, $totalitem); | |||
| $rnstr = $rndstring[$dd]; | |||
| if ($emname != 'font') { | |||
| $rnstr = " <$emname class='$rndstyleName'>$rnstr</$emname> "; | |||
| } else { | |||
| $rnstr = " <span style='$fontColor'>$rnstr</span>"; | |||
| } | |||
| $reString .= $rnstr.$body[$i]; | |||
| $prepos = $i; | |||
| } else { | |||
| $reString .= $body[$i]; | |||
| } | |||
| } | |||
| } | |||
| return $reString; | |||
| } //函数结束 | |||
| } | |||
| ?> | |||
| @@ -110,7 +110,7 @@ class TypeUnit | |||
| if ($ispart == 0) { | |||
| //列表栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mx-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mx-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -122,7 +122,7 @@ class TypeUnit | |||
| } else if ($ispart == 1) { | |||
| //封面栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mx-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mx-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -134,7 +134,7 @@ class TypeUnit | |||
| } else if ($ispart == 2) { | |||
| //外部栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_edit.php?id=".$id."' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mx-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_edit.php?id=".$id."' class='mx-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$typeDir}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_add.php?id={$id}' title='添加' class='btn btn-light btn-sm'><i class='fa fa-plus-circle'></i></a>"; | |||
| @@ -194,7 +194,7 @@ class TypeUnit | |||
| //列表栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'>"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mx-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mx-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -207,7 +207,7 @@ class TypeUnit | |||
| //封面栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'>"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mx-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mx-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -220,7 +220,7 @@ class TypeUnit | |||
| //外部栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'>"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mx-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mx-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$typeDir}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_edit.php?id={$id}' title='修改' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i></a>"; | |||
| @@ -25,7 +25,7 @@ | |||
| <?php | |||
| if (!empty($fields)) { | |||
| echo "<tbody>"; | |||
| echo '<tr><td bgcolor="#e9ecef">表单'.$fields['id'].'<a href="diy.php?action=view&diyid='.$diy->diyid.'&id='.$fields['id'].'" target="_blank" class="btn btn-light btn-sm ml-2">详细</a></td></tr></td>'; | |||
| echo '<tr><td bgcolor="#e9ecef">表单'.$fields['id'].' <a href="diy.php?action=view&diyid='.$diy->diyid.'&id='.$fields['id'].'" target="_blank" class="btn btn-light btn-sm">详细</a></td></tr></td>'; | |||
| foreach($fieldlist as $field=>$fielddata) | |||
| { | |||
| if ($fields[$field]=='') continue; | |||
| @@ -60,7 +60,7 @@ | |||
| <div class="item-theme-box"> | |||
| <h4 class="mb-3"><a href="[field:arcurl/]" target="_blank">[field:flag runphp='yes']if (stristr(@me,"h")) @me="<span class='btn btn-success btn-sm mr-2'>头条</span>";else if(stristr(@me,"c")) @me="<span class='btn btn-success btn-sm mr-2'>推荐</span>";else @me="";[/field:flag][field:title/]</a></h4> | |||
| <div class="row"> | |||
| <div class="col-4 text-left l-height-30 text-danger"> | |||
| <div class="col-4 text-left text-danger"> | |||
| <i class="fa fa-download mr-1"></i> | |||
| <span><script src="/apps/disdls.php?aid=[field:id/]"></script></span> | |||
| </div> | |||