濮阳杆衣贸易有限公司

主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > dedecms5.7轉(zhuǎn)移data目錄后驗(yàn)證碼無(wú)法顯示的解決辦法

dedecms5.7轉(zhuǎn)移data目錄后驗(yàn)證碼無(wú)法顯示的解決辦法

POST TIME:2018-09-18 10:52

dedecms最新更新的5.7版本在我們的管理后臺(tái)中有一個(gè)轉(zhuǎn)移data目錄的建議,我想這也是為了安全吧

但是轉(zhuǎn)移data目錄后可能會(huì)出現(xiàn)驗(yàn)證碼不顯示的問(wèn)題,下面就來(lái)說(shuō)一下吧
也許你還有這個(gè)東西沒(méi)有調(diào)整到位 可以參考一下:
打開(kāi)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:數(shù)字 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路徑做相應(yīng)的調(diào)整,比如上面3步操作是將data移到根目錄的上一級(jí)目錄,我們這里對(duì)data的路徑加一個(gè)“/..”,改后如下:
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:數(shù)字 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/";

好了,這樣就可以了。



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
肇源县| 抚顺县| 墨江| 六枝特区| 巴彦县| 夹江县| 双鸭山市| 绥德县| 荃湾区| 怀宁县| 汝州市| 九龙坡区| 十堰市| 容城县| 东台市| 密山市| 平舆县| 贡觉县| 浏阳市| 砚山县| 江津市| 米泉市| 民勤县| 高密市| 襄垣县| 邓州市| 仁寿县| 神农架林区| 乌拉特中旗| 疏勒县| 章丘市| 平遥县| 淳化县| 广安市| 开江县| 锡林郭勒盟| 永城市| 双峰县| 东乌珠穆沁旗| 泗洪县| 永善县|