欢迎来到站长天空!

DedeCMS

当前位置: 主页 > CMS教程 > DedeCMS

织梦dedecms站点data目录位置变动调整验证码不显示的解决办法

时间:2020-11-04 00:00:00|栏目:DedeCMS|点击:

">注:DedeCMS v5.7 sp1不需要以上操作,这一点官方已升级调整过了。
如果按照这篇文档里操作之后,验证码不显示,说明有一个地方,你还没有调整:
打开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' => $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_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/";

好了,这样就可以了。

上一篇:dedecms artlist读取全站最新文章的代码

栏    目:DedeCMS

下一篇:dedecms编码转换方法 gbk转UTF-8,UTF-8转GBK(推荐)

本文标题:织梦dedecms站点data目录位置变动调整验证码不显示的解决办法

本文地址:https://zz.feitang.co/CMSjiaocheng/27462.html

广告投放 | 联系我们 | 版权申明

申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:257218569 | 邮箱:257218569@qq.com

Copyright © 2018-2026 站长天空 版权所有 Powered by EyouCms冀ICP备14023439号