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

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

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

为了更好的安全性,我们可以将智盟CMS网站的数据文件目录移动到更高的目录中,或者更改为另一个名称。

注:DedeCMSv5.7sp1不用之上 *** 作,这一点官方网已升級调整过去了。
假如依照这篇文本文档里 *** 作以后,短信验证码无法显示,表明有一个地方,你要沒有调整:
开启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/";

好啦,那样就可以了。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/773559.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-03
下一篇 2022-05-03

发表评论

登录后才能评论

评论列表(0条)

保存