DESTOON
返回首页   网站建设 > > DESTOON知识

DESTOON常见知识!

更新时间:2021-10-07

手把手教你怎么认destoon标签条件
 看准一个标签认条件

如:

 

  1. <!--{php $tags=tag("moduleid=18&table=club_group_18&condition=status=3 AND level>0&areaid=$cityid&order=addtime desc&pagesize=20&length=26&template=null");}-->

 

 

 

解释为:

 


moduleid   模块

table   表名   这个条件一般很少用到

condition=status=3  正常信息

and level>0   信息级别大于0

and level=1   信息级别等于1 (1-9 依次相同)

and thumb<>''  必须有标题图

areaid=$cityid  地区 (这个一般默认,不用理会)

order 排序方式(看后台当前模块管理设置有方式)

pagesize  显示条数

length 字符数量(26=13个字)

template 指定模板

destoon 配置文件config.inc.php参数说明

  $CFG['db_host']
数据库服务器,可以包括端口号,一般为localhost

$CFG['db_user']
数据库用户名,一般为root

$CFG['db_pass']
数据库密码

$CFG['db_name']
数据库名称

$CFG['db_charset']
数据库连接字符集

$CFG['database']
数据库类型,默认为mysql

$CFG['pconnect']
是否使用持久连接

$CFG['tb_pre']
数据表前缀,默认为destoon_

$CFG['charset']
网站字符集

$CFG['path']
系统安装路径(相对于网站根路径的) 以 / 结尾

$CFG['url']
网站访问地址,以 / 结尾

$CFG['absurl']
是否启用绝对地址1=启用[如有任一模块绑定二级域名时必须启用] 0=不启用

$CFG['com_domain']
公司库绑定域名

$CFG['com_dir']
泛解析绑定目录 1=company目录 0=网站根目录

$CFG['com_rewrite']
会员顶级域名ReWrite 1=开启 0=关闭

$CFG['com_vip']
VIP会员名称

$CFG['file_mod']
文件或目录可写属性,Windows服务器可以填0

$CFG['cache_dir']
缓存目录 允许和网站不在同一目录或磁盘分区 
目录必须存在且PHP需具备访问和写入权限 例如设置 E:\cache 结尾不要 \

$CFG['db_expires']
数据库查询结果缓存过期时间(秒) 

$CFG['tag_expires']
数据调用标签缓存过期时间(秒) 

$CFG['template_refresh']
模板自动刷新(0=关闭,1=打开,如不再修改模板,请关闭)

$CFG['template_trim']
去除模板换行等多余标记,可以压缩一定网页体积(0=关闭,1=打开)

$CFG['cookie_domain']
cookie 作用域 例如 .destoon.com 如果绑定了二级域名 此项必须设置

$CFG['cookie_path']
cookie 作用路径

$CFG['cookie_pre']
cookie 前缀

$CFG['timezone']
时区设置(>PHP 5.1),Etc/GMT-8 实际表示的是 GMT+8 GMT+8 

$CFG['timediff']
服务器时间校正 单位(秒) 可以为负数

$CFG['template']
默认模板

$CFG['skin']
默认风格

$CFG['language']
默认语言

$CFG['authkey']
网站安全密钥,建议定期在后台修改 推荐字母和数字组合

$CFG['founderid']
创始人ID
创始人相对于其他超级管理员独具以下系统权限
全站设置 管理员管理 模块管理/设置 数据库管理 模板管理 栏目管理 地区管理 在线升级等系统关键操作

$CFG['edittpl']
是否允许在后台编辑模板 (0=关闭,1=打开)

$CFG['executesql']
是否允许在后台运行SQL语句 (0=关闭,1=打开)



destoon 后台入口文件weigouadmin.php解析


destoon有几个文件不能修改,一修改后台就无法登陆,weigouadmin.php就是其中之一,据官网客服说这个文件是可以修改的,不知为什么即使不修改打开一下保存后后台就不能登陆了。因刚接触dt,需要在程序里加点注释记录一下调用路径,特记录到这里以便以后查阅。

 

<?php

。。。。。。

$_areaids = '';

$_areaid = array();

isset($file) or $file = 'index';   //如果url参数里无 $file 则默认index

$secretkey = 'a'.strtolower(subst(md5(DT_KEY), -6));

if($CFG['authadmin'] == 'cookie') {

$_destoon_admin = get_cookie($secretkey);

$_destoon_admin = $_destoon_admin ? intval($_destoon_admin) : 0;

} else {

$session = new dsession();

$_destoon_admin = isset($_SESSION[$secretkey]) ? intval($_SESSION[$secretkey]) : 0;

}

$_founder = $CFG['founderid'] == $_userid ? $_userid : 0;

$_catids = $_childs = '';

$_catid = $_child = array();

if($file != 'login') {

if($_groupid != 1 || $_admin < 1 || !$_destoon_admin) msg('', '?file=login&forward='.urlencode($DT_URL));

if(!admin_check()) {

admin_log(1);

$db->query("delet FROM &#123;&#36;db->pre&#125;admin wher userid=$_userid AND url='?".$DT_QST."'");

msg('警告!您无权进行此操作 Error(00)');

}

}

if($DT['admin_log'] && $action != 'import') admin_log();

if($DT['admin_online']) admin_online();

if(isset($reason) && is_array($itemid)) admin_notice();

$widget = isset($widget) ? intval($widget) : 0;

$psize = isset($psize) ? intval($psize) : 0;

if($psize > 0 && $psize != $pagesize) {

$pagesize = $psize;

$offset = ($page-1)*$pagesize;

}

//什么情况下$module才是destoon??

if($module == 'destoon') {

(include DT_ROOT.'/admin/'.$file.'.inc.php') or msg();

} else { //后台管理界面一般走这个分支,例如供应模块里的添加供应 链接是weigouadmin.php?moduleid=5&action=add

include DT_ROOT.'/module/'.$module.'/common.inc.php';//这里加载的就应该是/module/sell/common.inc.php   DT_ROOT是 根目录/

(include MD_ROOT.'/admin/'.$file.'.inc.php') or msg(); //这里加载的就应该是/module/sell/admin/index.inc.php  MD_ROOT是/module/sell/

}

?>
 



DESTOON常见知识!





友情提示

专注DESTOON模板
SEO仿站!


购买
DESTOON版权?
1200元 ?
版本授权