feat: initial commit

This commit is contained in:
root
2026-06-14 14:00:24 +08:00
commit 72d388f642
118 changed files with 39015 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
/**
* 校验宝塔部署 Nginx 模板占位符是否已处理或文件存在
*/
$root = dirname(__DIR__);
$tpl = $root . '/deploy/baota/nginx/cloaka-site.conf';
$inst = $root . '/deploy/baota/nginx/cloaka-site.conf.installed';
$ok = is_readable($tpl)
&& is_readable($root . '/deploy/baota/install_bt.sh')
&& is_readable($root . '/deploy/baota/hook/post_site.sh')
&& strpos(file_get_contents($tpl), '__CLOAK_ROOT__') !== false;
echo json_encode([
'ok' => $ok,
'tpl' => $tpl,
'has_inst' => is_readable($inst),
], JSON_UNESCAPED_UNICODE) . "\n";