LOGIN if/else STATEMENTS

I am working on a login system that I would like to allow:

  • admin users to only see the admin header
  • standard users to only see the standard header

Anyways, I would like to know how to make an if/else statement that says something like

if $logintype = admin
{
include (‘header_admin.php’);
}
else
{
include (‘header.php’);
}

something like that. The only problem I see is having the headers secure so that only an admin can see the admin header and only the standard can see the standard header.

So can anyone help me with a code and the security?