diff --git a/admin/index.php b/admin/index.php index ac1d2100..cad3daca 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,10 +1,115 @@ - +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.'); +} +?> + +
-