初始化提交

This commit is contained in:
shenquanyi
2024-05-28 11:01:13 +08:00
commit 5d96ff2eed
1393 changed files with 325846 additions and 0 deletions

46
config/config.php Normal file
View 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
View 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
View File

@@ -0,0 +1,9 @@
<?php
// =======可用于二开时自定义路由,升级不覆盖============
return array(
'url_route' => array(
// URL地址路由如后台站点信息控制器'admin/Site' => 'admin/content.Site',
)
);