织梦dedecms站点data目录位置变动调整验证码不显示的解决办法
<p><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>注:DedeCMS v5.7 sp1不需要以上操作,这一点官方已升级调整过了。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>如果按照这篇文档里操作之后,验证码不显示,说明有一个地方,你还没有调整: </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>打开include下的vdimgck.php, 找到如下代码: </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<p class="right">
<span><u>复制代码</u></span></p>
<p>
代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
require_once (dirname(__FILE__).'/../data/safe/inc_safe_config.php'); <br>
require_once (dirname(__FILE__).'/../data/config.cache.inc.php'); <br>
$config = array( <br>
'font_size' => 14, <br>
'img_height' => $safe_wheight, <br>
'word_type' => (int)$safe_codetype, // 1:数字 2:英文 3:单词 <br>
'img_width' => $safe_wwidth, <br>
'use_boder' => TRUE, <br>
'font_file' => dirname(__FILE__).'/data/fonts/ggbi.ttf', <br>
'wordlist_file' => dirname(__FILE__).'/data/words/words.txt', <br>
'filter_type' => 5); <br>
$sessSavePath = dirname(__FILE__)."/../data/sessions/"; </p>
<p>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>将上面代码中的data路径做相应的调整,比如上面3步操作是将data移到根目录的上一级目录,我们这里对data的路径加一个“/..”,改后如下: </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<p class="right">
<span><u>复制代码</u></span></p>
<p>
代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
require_once (dirname(__FILE__).'/../../data/safe/inc_safe_config.php'); <br>
require_once (dirname(__FILE__).'/../../data/config.cache.inc.php'); <br>
$config = array( <br>
'font_size' => 14, <br>
'img_height' => $safe_wheight, <br>
'word_type' => (int)$safe_codetype, // 1:数字 2:英文 3:单词 <br>
'img_width' => $safe_wwidth, <br>
'use_boder' => TRUE, <br>
'font_file' => dirname(__FILE__).'/data/fonts/ggbi.ttf', <br>
'wordlist_file' => dirname(__FILE__).'/data/words/words.txt', <br>
'filter_type' => 5); <br>
$sessSavePath = dirname(__FILE__)."/../../data/sessions/"; </p>
<p>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>好了,这样就可以了。</span></p>
頁:
[1]