注释:为了安全,我们可以将CMS站点目录设置为目录中的数据,或更改为其他名称。




注:织梦V5.7 SP1不需要上述操作,官方已经升级和调整。
如果在本文档中操作后没有显示身份验证代码,则显示有一个未进行调整的地方:
打开vdimgck.php下包括找到下面的代码:

复制代码代码如下所示:
require_once(dirname(__file__)。 / / /安全、数据/ inc_safe_config。php);
require_once(dirname(__file__)。 / / /配置的数据。缓存。php);
数组(
font_size= > 14,
img_height= > safe_wheight美元,
word_type=(int)safe_codetype美元,1:2:3:英语 / /数字字
img_width= > safe_wwidth美元,
use_boder= >真的,
font_file ' = dirname(__file__)。 / / /数据ggbi TTF的字体,
wordlist_file ' = dirname(__file__)。 / / /词词数据.txt,
filter_type= > 5);
sesssavepath美元= dirname(__file__)。…;


在上面的代码中调整数据路径,例如,上面的3步是将数据移动到根目录的上层目录中。在这里,我们添加一个数据路径,并将其更改如下:

复制代码代码如下所示:
require_once(dirname(__file__)。 / / / .. ..数据/安全/ inc_safe_config。php);
require_once(dirname(__file__)。 / / / .. ..数据/配置缓存。php);
数组(
font_size= > 14,
img_height= > safe_wheight美元,
word_type=(int)safe_codetype美元,1:2:3:英语 / /数字字
img_width= > safe_wwidth美元,
use_boder= >真的,
font_file ' = dirname(__file__)。 / / /数据ggbi TTF的字体,
wordlist_file ' = dirname(__file__)。 / / /词词数据.txt,
filter_type= > 5);
sesssavepath美元= dirname(__file__)。…… ;

好吧,没关系。