织梦CMS文件夹目录解释(完整版)

目录分析:

./dede      dede后台
./html      生成节目对应的文件
./include    类库,装备文件,词库
./member      会员功用
./plus      插件(留言簿,投票。。)
./setup      设备程序目录
./special    专题生成目录
./templets    网站模板目录
./upimg      收集,后者用户上载的附件地址的目录

base.css    底子样式表
index.php    网站默许主页
robots.txt    查找控制文件

文件分析:

./index.html  由模板生成的html主页文件
./index.php
   
解析模板,并且闪现出主页,
具体代码做个分析:

require_once(dirname(__FILE__)."/include/config_base.php");
require_once(dirname(__FILE__)."/include/inc_arcpart_view.php");

//上面两段是调用两个文件一个是底子的装备文件,另一个是是文章类文件

dirname(__FILE__)是其时方法

CODE:

$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From zz5unet_homepageset");
$dsql->Close();


//SQL语句,查询表dede_homepageset 字段templet (调用哪个模板)


CODE:

$pv = new PartView();
$pv->SetTemplet($cfg_basedir."/".$cfg_templets_dir."/".$row['templet']);
$pv->Display();
$pv->Close();

//类库调用,

$cfg_basedir."/".$cfg_templets_dir."/".是方法,

$row['templet']是模板的具体的方位,

然后是$pv->Display();闪现模板文件。

============================================

/templets模板目录 

/dedecmsv31    3模板目录

/default    默许模板目录

article_article.htm    一般文章页面模板
article_default.htm    一般文档页面模板
article_flash.htm    flash页面模板
article_image.htm    图集页面模板
article_soft.htm    软件页面模板
article_spec.htm    专题页面模板
index.htm    网站主页模板
index_article.htm    文章频道封面模板
index_article_webart1.htm   
index_article_webart2.htm   
index_article_webart.htm   
index_default.htm    一般文档封面模板
index_flash.htm    flash频道封面模板
index_image.htm    图集频道封面模板
index_soft.htm    软件频道封面模板
list_article.htm    文章列表模板
list_default.htm    一般文档列表目录模板
list_flash.htm    flash文档列表模板
list_free.htm    自由列表模板
list_image.htm    图集列表模板
list_soft.htm    软件列表模板
list_spec.htm    专题列表模板

/img    模板图像目录(含样式表)

/plus    辅佐插件模板目录

download_links_templet.htm    下载联接模板
feedback_confirm.htm    议论招认模板
feedback_templet.htm    用户议论模板
feedback_templet_js.htm   
flink-add.htm    友谊联接添加模板
flink-list.htm    友谊联接列表模板
guestbook.htm    留言本模板
heightsearch.htm    高档查找模板
js.htm   
recommend.htm    举荐老友模板
rss.htm    RSS的XML模板
rssmap.htm    RSS订阅文件
showphoto.htm    图像闪现模板
sitemap.htm    网站地图模板
view_msg.htm    会员提示信息模板
vote.htm    投票效果闪现模板

/system    体系模板目录

channel_list.htm    节目列表体系模板
list_fulllist.htm    文档列表体系模板
mynews.htm    站内新闻体系模板
part_arclist.htm    文章列表体系模板
part_autochannel.htm    分类节目体系模板
part_channelartlist.htm    包含文章列表的节目体系模板
part_imginfolist.htm    运用imginfolist标签调用的模板
part_imglist.htm    运用imglist标签调用的模板
part_type_list.htm    单个节目的体系模板
spec_arclist.htm    专题列表文章体系模板
spec_list.htm    专题用模板
tag_arclist.htm   
tag_fieldlist.htm    fieldlist用体系模板

/system/channel    频道格外底层模板目录

channel_downlinkpage.htm    下载地址列表联接模板
channel_downlinks.htm    下载地址列表模板
channel_spec_note.htm    专题节点列表模板
   
/include目录  程序中间目录 

config_base.php    环境界说文件。用于检测体系环境,界说作业目录,保管数据库联接信息,引入常用函数等,建议不要批改。
config_hand.php    体系装备文件。界说体系常用的装备信息界说,可从后台处理直接生成该文件。
config_passport.php    通行证文件
config_rglobals.php    检测体系外部变量
config_rglobals_magic.php    同上
inc_archives_view.php    用于阅读文档或对文档生成HTML
inc_arclist_view.php    用于阅读频道列表或对内容列表生成HTML
inc_arcmember_view.php    用于阅读会员发布的文档
inc_arcpart_view.php    用于解析和创建全局性质的模板,如频道封面,主页,单个页面等
inc_arcsearch_view.php    用于文档查找
inc_arcspec_view.php    用于阅读全部专题列表或对专题列表生成HTML
inc_channel_unit.php    用户解析特定频道的附加数据结构信息
inc_channel_unit_functi*****.php    体系共用函数集结
inc_downclass.php    防收集随机字符串函数
inc_freelist_view.php    用于对特定内容列表生成HTML
inc_functi*****.php    可供用户运用的函数集结
inc_imgbt.php    GetTypeidSelMember
inc_memberlogin.php    用于用户登录及获得会员状况
inc_photograph.php    用于处置体系中的图像,例如水印,缩略图等
inc_photowatermark_config.php    图像处置参数界说
inc_rss_view.php    用于阅读频道RSS或对RSS生成静态文件
inc_separate_functi*****.php    SpGetArcList函数,用于获得文档列表
inc_sitemap.php    用于生成网站地图
inc_type_tree.php    用于挑选节目的目录树
inc_type_tree_member.php    同上,会员运用
inc_typelink.php    用于闪现文章的方位和节目方位等
inc_typeunit_admin.php    用于频道处理时的一些凌乱操作,首要用于后台
inc_typeunit_menu.php    同上
inc_userlogin.php    用于处理员登录
inc_vote.php    用于处理投票
jump.php    用于超联接跳转
pub_charset.php    共用字符处置函数,GB/UTF-8/Unicode/BIG5等交流
pub_collection.php    用于收集
pub_collection_functi*****.php    收集用函数
pub_datalist.php    后台处理用数据列表
pub_datalist_dm.php    同上,不运用模板
pub_db_mysql.php    用于操作数据库
pub_zuola2.php    用于收会集的HTML解析
pub_zuola.php    HTML解析器
pub_dedetag.php    用于dede模板标签解析
pub_httpdown.php    用于下载http中的资源
pub_oxwindow.php    后台程序扩展
pub_splitword_www.php    织梦分词算法
validateimg.php    验证码
vdimgck.php    验证码

/inc    共用函数目录

inc_fun_funAdmin.php    获取拼音码等函数
inc_fun_funString.php    html代码处置等函数
inc_fun_SpGetArcList.php    获取文档列表SpGetArcList