濮阳杆衣贸易有限公司

主頁 > 網(wǎng)站建設(shè) > 建站知識 > 織夢CMS V5.7版本轉(zhuǎn)移data目錄后驗證碼無法顯示的

織夢CMS V5.7版本轉(zhuǎn)移data目錄后驗證碼無法顯示的

POST TIME:2018-01-08 14:15

最近dedecms官方出了安全補(bǔ)丁,把轉(zhuǎn)移deta目錄可以讓織夢站點更安全,今天小編在測試dedecms最新更新的5.7版本在我們的管理后臺中有一個轉(zhuǎn)移data目錄的建議,我把data目錄轉(zhuǎn)移之后發(fā)現(xiàn)驗證碼不顯示的問題,下面就來說一下解決方法吧
也許你還有這個東西沒有調(diào)整到位 可以參考一下:
打開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移到根目錄的上一級目錄,我們這里對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:數(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
利辛县| 嫩江县| 星子县| 壤塘县| 积石山| 襄垣县| 顺义区| 墨竹工卡县| 安平县| 秀山| 偃师市| 常熟市| 邛崃市| 祁门县| 宜川县| 潢川县| 海伦市| 通渭县| 徐水县| 辽阳市| 漳浦县| 开阳县| 黑水县| 额敏县| 中阳县| 铜陵市| 阿巴嘎旗| 化隆| 炎陵县| 徐州市| 兰考县| 调兵山市| 镇沅| 通江县| 宾阳县| 利辛县| 津市市| 商南县| 安图县| 乐业县| 蒲江县|