v1.0.0提交

This commit is contained in:
2026-03-31 15:54:32 +08:00
parent 79bfeb0e18
commit 314e53bf9c
16 changed files with 2110 additions and 1 deletions

30
config.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
* PerToolBox Front - 配置文件
*
* Copyright (C) 2024 Sea Network Technology Studio
* Author: Canglan <admin@sea-studio.top>
* License: AGPL v3
*/
// API 基础地址(后端服务地址)
define('API_BASE_URL', getenv('API_BASE_URL') ?: 'http://your-domain/api/v1');
// 网站名称
define('SITE_NAME', 'PerToolBox');
// 调试模式
define('DEBUG', getenv('DEBUG') === 'true');
// 错误报告
if (DEBUG) {
error_reporting(E_ALL);
ini_set('display_errors', 1);
} else {
error_reporting(0);
ini_set('display_errors', 0);
}
// 时区设置
date_default_timezone_set('Asia/Shanghai');
?>