最新活动:电脑PC端+手机端+微网站+自适应网页多模板选择-建站388元起价!!!
要源码
当前位置:主页 > 网站建设 > 织梦V5.7转移data目录后验证码无法显示的解决办法

织梦V5.7转移data目录后验证码无法显示的解决办法

时间:2023-07-22 12:07:22 阅读: 文章分类: 网站建设 作者: dede技术员

导读:dedecms

织梦模板免费织梦模板

最近织梦DedeCMS官方出了安全补丁,把转移deta目录可以让织梦站点更安全,我把data目录转移之后发现验证码不显示的问题,下面就来说一下解决方梦织模板法吧    也许你还有这个东西没有调整到位 可以参考一下:    打开include下的vdimgck.php, 找到如下代码:    require_once (dirname(__FILE__).’/../data/safe/inc_safe_config.php’);            require_once (dirname(__FILE__).’/../data/config.cache.inc.php’);            $config = array(                ‘font_size’   => 14,                ‘img_height’&nbsdede后台模板p; => $safe_wheight,                ‘word_type’  => (int)$safe_codetype,   // 1:数字  2:英文   3:单词                ‘img_width’   => $safe_wwidth,                ‘use_boder’   => TRUE,                ‘font_file’   => dirname(__FILE__).’/data/fonts/ggbi.ttf’,                ‘wordlist_file’   => dirname(__FILE__).’/data/words/words.txt’,                ‘filter_type’ => 5);            $sessSavePath = dirname(__FILE__)."/../data/sessions/";

    将上面代码中的data路径做相应的调整,比如上面3步操作是将data移到根目录的上一级目录,我们这里对data的路径加一个“/..”,改后如下:    require_once (dirname(__FILE__).’/../../data/safe/inc_safe_config.php’);            require_dede模板安装once (dirname(__FILE__).’/../../data/config.cache.inc.php’);            $config = array(                ‘font_size’   => 14,                ‘img_height’  => $safe_wheight,                ‘word_type’  => (int)$safe_codetype,   // 1:数字  2:英文   3:单词                ‘img_width’   => $safe_wwidth,                ‘use_boder’   => TRUE,                ‘font_file’   => dirname(__FILE__).’/data/fonts/ggbi.ttf’,                ‘wordlist_file’   => dirname(__FILE__).’/data/words/words.txt’,                ‘filter_type’ => 5);            $sessSavePath = dirname(__FILE__)."/../../data/sessions/";

关键词标签: 解决办法 验证码 织梦

声明: 本文由我的SEOUC技术文章主页发布于:2023-07-22 ,文章织梦V5.7转移data目录后验证码无法显示的解决办法主要讲述验证码,解决办法,织梦网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_33986.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章