更新完善网页逻辑,工具迁移至html逻辑

This commit is contained in:
MasonLiu committed 2026-09-10 00:22:40 +08:00
1 parent c3bfce7afb
commit 646754c04d
26 files changed
+1606 -167

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
<?php
/**
* api/site.php —— 站点公开元信息 JSON 接口
* 供纯静态 HTML 页(如 func/*.html)读取当前站点 logo,使工具页 favicon / 标识与后台设置保持同步。
* 返回:{ "logo": "data/logo/site_logo_xxx.svg" 或 ""(空 = 使用默认 assets/img/logo.svg) }
*/
require_once dirname(__DIR__) . '/includes/db.php';
header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-store, no-cache, must-revalidate');
echo json_encode(['logo' => setting_get('site_logo', '')], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);