加入我们
-开启您的软件选购之旅
-diff --git a/assets/pasted-20260208-123344-c6190c96.png b/assets/pasted-20260208-123344-c6190c96.png new file mode 100644 index 0000000..b36e5d6 Binary files /dev/null and b/assets/pasted-20260208-123344-c6190c96.png differ diff --git a/includes/header.php b/includes/header.php index dd64021..466b6f7 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,6 +1,8 @@ - + 后台管理 - - 登录 diff --git a/login.php b/login.php index 66ac155..8f3f7be 100644 --- a/login.php +++ b/login.php @@ -18,6 +18,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $_SESSION['role'] = $user['role']; if ($user['role'] === 'admin') { + $_SESSION['admin_logged_in'] = true; header("Location: admin/index.php"); } else { header("Location: index.php"); @@ -59,19 +60,11 @@ require_once 'includes/header.php'; -
开启您的软件选购之旅
-