getToken()) { header('Location: ../index.php?msg=无效的 token,请重新登录。'); } else if (!$admin->is_admin) { header('Location: ../index.php?msg=看起来你并不是管理员'); } } else { header('Location: ../index.php?msg=非法访问,请先登录。'); } ?>