v1.0.1修复优化
This commit is contained in:
10
public/index.php
Normal file
10
public/index.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
// 首页入口 - 根据安装状态自动路由
|
||||||
|
$configFile = __DIR__ . '/../config/db-config.json';
|
||||||
|
if (file_exists($configFile)) {
|
||||||
|
header('Location: /login.php');
|
||||||
|
exit;
|
||||||
|
} else {
|
||||||
|
header('Location: /install.php');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user