織夢V5.7轉移data目錄后驗證碼無法顯示的解決辦法
導讀:dedecms
最近織夢DedeCMS官方出了安全補丁,把轉移deta目錄可以讓織夢站點更安全,我把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’&nbsdede后臺模板p; => $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_dede模板安裝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/";
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-22 ,文章織夢V5.7轉移data目錄后驗證碼無法顯示的解決辦法主要講述驗證碼,解決辦法,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_33986.html