婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網站建設 > 建站知識 > dedecms5.7轉移data目錄后驗證碼無法顯示的解決辦法

dedecms5.7轉移data目錄后驗證碼無法顯示的解決辦法

POST TIME:2018-09-18 10:52

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/";

好了,這樣就可以了。



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

  • 400-1100-266
主站蜘蛛池模板: 宜兰市| 莆田市| 义马市| 马公市| 仪陇县| 湛江市| 清新县| 韩城市| 崇阳县| 广饶县| 资讯 | 娄烦县| 旺苍县| 新晃| 房山区| 武鸣县| 云龙县| 崇文区| 荣昌县| 宁都县| 鹤庆县| 自贡市| 温泉县| 南城县| 郓城县| 秭归县| 建德市| 遂溪县| 积石山| 绍兴市| 安岳县| 崇明县| 临澧县| 和硕县| 瓦房店市| 新闻| 屯昌县| 晋江市| 南汇区| 长子县| 碌曲县|