upload all

This commit is contained in:
zibright
2025-06-24 13:03:14 +08:00
commit bc51415f2f
99 changed files with 5113 additions and 0 deletions

28
update.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
header('Content-Type: application/json; charset=utf-8');
function checkThemeUpdate()
{
$api_url = 'https://versioncheck.imakashi.eu.org/?themeRomanticism';
$response = @file_get_contents($api_url);
if ($response === FALSE) {
return json_encode(["error" => "暂时无法连接到更新服务器"]);
}
$data = json_decode($response, true);
if (!isset($data['version'])) {
return json_encode(["error" => "无效的更新数据"]);
}
// 返回更新数据
return json_encode([
"current_version" => '2.1',
"latest_version" => $data['version'],
"update_url" => $data['url'],
"feature" => $data['feature']
]);
}
echo checkThemeUpdate();
?>