很多时候我们是可以直接通过xxoo.com/templets/default/index.htm访问织梦的站,可以把人家的模板及其标签都偷下来。在这里我们除了更改模板文件夹名,还可以直接把网站根目录下的template改名,这样一定程度也隐藏了dedecms的特征。
更改方法:
找到include/common.inc.php里的
//模板的存放目录
$cfg_templets_dir = $cfg_cmspath.'/templets';
把其中的templets改名
找到include/dedetag.class.php里的
if( file_exists(DEDEROOT."/templets/".$filename) )
{
$okfile = DEDEROOT."/templets/".$filename;
}
else if(file_exists(DEDEROOT.'/templets/'.$cfg_df_style.'/'.$filename) )
{
$okfile = DEDEROOT.'/templets/'.$cfg_df_style.'/'.$filename;
}
把其中的templets改名。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)