初始化提交
This commit is contained in:
46
config/config.php
Normal file
46
config/config.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
return array(
|
||||
|
||||
// 定义CMS名称
|
||||
'cmsname' => 'PbootCMS',
|
||||
|
||||
// 模板内容输出缓存开关
|
||||
'tpl_html_cache' => 0,
|
||||
|
||||
// 模板内容缓存有效时间(秒)
|
||||
'tpl_html_cache_time' => 900000000000,
|
||||
|
||||
// 会话文件使用网站路径
|
||||
'session_in_sitepath' => 1,
|
||||
|
||||
// 默认分页大小
|
||||
'pagesize' => 15,
|
||||
|
||||
// 分页条数字数量
|
||||
'pagenum' => 5,
|
||||
|
||||
// 访问页面规则,如禁用浏览器、操作系统类型
|
||||
'access_rule' => array(
|
||||
'deny_bs' => 'MJ12bot,IE6,IE7'
|
||||
),
|
||||
|
||||
// 上传配置
|
||||
'upload' => array(
|
||||
'format' => 'jpg,jpeg,png,gif,xls,xlsx,doc,docx,ppt,pptx,rar,zip,pdf,txt,mp4,avi,flv,rmvb,mp3,otf,ttf',
|
||||
'max_width' => '1920',
|
||||
'max_height' => ''
|
||||
),
|
||||
|
||||
// 缩略图配置
|
||||
'ico' => array(
|
||||
'max_width' => '1000',
|
||||
'max_height' => '1000'
|
||||
),
|
||||
|
||||
// 模块模板路径定义
|
||||
'tpl_dir' => array(
|
||||
'home' => '/template'
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
15
config/database.php
Normal file
15
config/database.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* 主数据库连接参数,未配置的参数使用框架惯性配置
|
||||
* 如果修改为mysql数据库,请同时修改type和dbname两个参数
|
||||
*/
|
||||
return array(
|
||||
'database' => array(
|
||||
'type' => 'mysqli', // 数据库连接驱动类型: mysqli,sqlite,pdo_mysql,pdo_sqlite
|
||||
'host' => 'gz-cdb-gugj65bd.sql.tencentcdb.com', // 数据库服务器
|
||||
'user' => 'iotcms', // 数据库连接用户名
|
||||
'passwd' => 'aiotagro@789', // 数据库连接密码
|
||||
'port' => '60026', // 数据库端口
|
||||
'dbname' => 'jxn_cms' // 去掉注释,启用mysql数据库,注意修改前面的连接信息及type为mysqli
|
||||
)
|
||||
);
|
||||
9
config/route.php
Normal file
9
config/route.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
// =======可用于二开时自定义路由,升级不覆盖============
|
||||
return array(
|
||||
|
||||
'url_route' => array(
|
||||
// URL地址路由,如后台站点信息控制器:'admin/Site' => 'admin/content.Site',
|
||||
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user