getToken()) { header('Location: ../index.php?msg=Invalid token. Please login.'); } else if (!$admin->is_admin) { header('Location: ../index.php?msg=Looks like that you are not administrator :('); } } else { header('Location: ../index.php?msg=Illegal access. Please login.'); } ?>