init
This commit is contained in:
52
config/config.php
Normal file
52
config/config.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
return array(
|
||||
|
||||
// 定义CMS名称
|
||||
'cmsname' => 'PbootCMS',
|
||||
|
||||
// 授权码,多个授权码使用英文逗号隔开,如:'aaaaa,bbbbb'
|
||||
'sn' => 'AE6C1BA496',
|
||||
|
||||
// 授权用户手机
|
||||
'sn_user' => '',
|
||||
|
||||
// 模板内容输出缓存开关
|
||||
'tpl_html_cache' => 1,
|
||||
|
||||
// 模板内容缓存有效时间(秒)
|
||||
'tpl_html_cache_time' => 900,
|
||||
|
||||
// 会话文件使用网站路径
|
||||
'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'
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
25
config/database.php
Normal file
25
config/database.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* 主数据库连接参数,未配置的参数使用框架惯性配置
|
||||
* 如果修改为mysql数据库,请同时修改type和dbname两个参数
|
||||
*/
|
||||
return array(
|
||||
|
||||
'database' => array(
|
||||
|
||||
'type' => 'sqlite', // 数据库连接驱动类型: mysqli,sqlite,pdo_mysql,pdo_sqlite
|
||||
|
||||
'host' => '127.0.0.1', // 数据库服务器
|
||||
|
||||
'user' => 'pboot', // 数据库连接用户名
|
||||
|
||||
'passwd' => '123456', // 数据库连接密码
|
||||
|
||||
'port' => '3306', // 数据库端口
|
||||
|
||||
// 'dbname' => 'pbootcms' // 去掉注释,启用mysql数据库,注意修改前面的连接信息及type为mysqli
|
||||
|
||||
'dbname' => '/data/42a7c160922cdd04f08438f03dd6d19b.db' // 去掉注释,启用Sqlite数据库,注意修改type为sqlite
|
||||
)
|
||||
|
||||
);
|
||||
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