初始化

This commit is contained in:
2026-08-08 18:28:49 +08:00
parent 9bef4420e0
commit f082037a6e
854 changed files with 217171 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
// 注意:旧版 auth.php 已被弃用
// 新版应用使用 app/controllers 中的 Controller::checkLogin() 和 requireAdminRole() 进行鉴权
// 此文件保留仅为兼容,实际不会执行(因为 public/ 目录已移除)
session_start();
if (!isset($_SESSION['user_id']) && !isset($_SESSION['user'])) {
header("Location: /Login/index");
exit;
}