1, // 配置文件中未定义管理员ID,使用默认值1 'username' => $username ]; header('Location: index.php'); exit(); } else { $error = '用户名或密码错误'; } } ?>