最近織夢(mèng)DedeCMS官方出了安全補(bǔ)丁,把轉(zhuǎn)移deta目錄可以讓織夢(mèng)站點(diǎn)更安全,我把data目錄轉(zhuǎn)移之后發(fā)現(xiàn)驗(yàn)證碼不顯示的問(wèn)題,下面就來(lái)說(shuō)一下解決方法吧
也許你還有這個(gè)東西沒有調(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移到根目錄的上一級(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/";
好了,這樣就可以了的。有這個(gè)問(wèn)題的來(lái)看看試試吧!
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 織夢(mèng)V5.7轉(zhuǎn)移data目錄后驗(yàn)證碼無(wú)法顯示的解決辦法