找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 626|回复: 0

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

[复制链接]
发表于 2012-4-18 10:45:42 | 显示全部楼层 |阅读模式
织梦DedeCMS V5.7版本转移data目录后验证码无法显示的解决办法:
最近织梦DedeCMS官方出了安全补丁,把转移deta目录可以让织梦站点更安全,今天模板团在测试DedeCMS 最近更新的5.7版本,在我们的管理后台中有一个转移data目录的建议,我把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’  => $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/";
好了,这样就可以了的。有这个问题的来看看试试吧!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|要学吧论坛

GMT+8, 2026-1-24 01:16 , Processed in 0.039151 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表