home-code

示例❤源码

<?php

/// 参数配置-根据需要配置 -----------------------------------------------

// 系统参数
$_cbase['sys']['sn']      = '0BAB703D-127A-B479-1979-2010-0424X888'// 序列号
$_cbase['sys']['ver']     = '1.0'// 版本号
$_cbase['sys']['cset']    = 'utf-8';// 系统编码
$_cbase['sys']['tmzone']  = '8'//
$_cbase['sys']['tzcode']  = 'PRC'// 时区+-12, 'ETC/GMT-8'
$_cbase['sys']['lang']    = 'cn'// 默认语言:根据语言包,可设置en,cn等
$_cbase['sys']['xpwby']   = '贴心猫(imcat)/v'.$_cbase['sys']['ver']; // `X-Powered-By`头信息:空为默认, 或自定义

// Cookie
$_cbase['ck']['pre']      = 'v48_'// Cookie前缀,8字符以内
$_cbase['ck']['domain']   = ''// Cookie Domain
$_cbase['ck']['path']     = '/'// Cookie Path

//调试日志配置
$_cbase['debug']['err_mode']  = '1'//可后台设置,是否开启调试模式,1,0(run=0)
$_cbase['debug']['err_save']  = 'file'//记录方式: file, db, 
$_cbase['debug']['err_path']  = ''//出错信息存放的目录,出错信息以天为单位存放,一般不需要修改 /erlog  
$_cbase['debug']['err_file']  = 'Y-md'//文件格式: Y-md:1979-0913, Y-m-d: 1979-09-13
$_cbase['debug']['err_hand']  = true//是否启动CP内置的错误处理,如果开启了xdebug,建议设置为false 
$_cbase['debug']['err_hkey']  = '(def)'//E_ALL^E_WARNING^E_NOTICE;

$_cbase['debug']['log_save']  = ''//记录方式: 空:不记录, Y-mdH, Y-md-H, db, 
$_cbase['debug']['pay_log'] = 1//支付记录-调试标记

$_cbase['debug']['db_sql']  = ''//记录方式: 空:不记录, Y-mdH, Y-md-H, db, 
$_cbase['debug']['db_acts'] = ',select,qSelect,find,'//connect,delete,update,replace,insert,count,fields,tables,qOther,
$_cbase['debug']['db_area'] = array('RUN_FRONT','RUN_MOB',); //,'RUN_ADMIN','RUN_UMC','RUN_AJAX','RUN_DBSQL','RUN_DEV'
$_cbase['debug']['db_time'] = '100'//0,10,100

//模板配置 
$_cbase['tpl']['tpc_on']  = 0//是否开启模板缓存,true开启,false不开启 
$_cbase['tpl']['tpc_ext'] = '.cac_php'//模板缓存后缀,一般不需要修改 
$_cbase['tpl']['no_static'] = '(adm)'//,umc
$_cbase['tpl']['def_static'] = 'comm';
$_cbase['tpl']['mob_tpls'] = '(mob,comm,ven,vfr,vru,ves)'//,app

// server
$_cbase['server']['txmao']  = 'http://imcat.txjia.com'//txmao首页{svrtxmao}
$_cbase['server']['txcode'] = 'http://yscode.txjia.com'//txcode首页{svrtxcode}
$_cbase['server']['txjia']  = 'http://txjia.com'//txjia首页{svrtxjia}

//用户自定义配置
$_cbase['ucfg']['vimg']  = 'K'// 0,H,K
$_cbase['ucfg']['ipapi'] = 'Taobao'// 默认IP地址接口, Pcoln # Taobao # Api # Ip138 # Baidu
$_cbase['ucfg']['guid'] = 'Cook'// UIP,Sess,Cook
$_cbase['ucfg']['city'] = '东莞'//本地城市,订单算运费用
$_cbase['ucfg']['space'] = 30//M空间大小
$_cbase['ucfg']['dbind'] = 0//是否开启绑定子域名
$_cbase['ucfg']['ctab'] = 'F00,F0F,060,00F,F60,90F,F69,06F,099,606,60F,906,F6F'//颜色表

/// 额外配置-根据需要配置 -----------------------------------------------

// indoc
$_cbase['indoc']['debug'] = true
// topic
$_cbase['topic']['tpldir'] = '/comm/topic'

// 多语言/多城市:实现
$_cbase['part']['name'] = '语言'
$_cbase['part']['tab'] = array();
$_cbase['part']['def'] = 'cn'// 默认:语言
$_cbase['part']['mods'] = array(); 
$_cbase['part']['psyn'] = array(); // 资料同步模型
// 请在相关模型主表的`xno`字段后,手动添加`part`字段
// 设置了psyn的模型,再添加psyn字段,用于同步
// mlang-start
if(isset($_cbase['tpl']['bdpart'])){
    
$_bdpart $_cbase['tpl']['bdpart'];
    if(isset(
$_cbase['part']['tab'][$_bdpart])){
        include 
DIR_ROOT."/extra/kvphp/lang-$_bdpart.php";
    }
}
// mlang-end

-End-