title: Restricted page only for role admin
body: <p>I have been working now a few hours on it and I cannot find the solution so I  hope someone here can help me. The code I have now is working perfectly but I would like to put a 'echo' only if the user got the level as administrator, if the logged in person don't have this status then the link will not be displayed.
  Below you can see the index.php. I would like to add there for example:  Admin Panel, but this link should only be visible if the user is admin.</p>
  
  <pre><code>&lt;p&gt;Welcome &lt;?php echo $_SESSION['username']; ?&gt;!&lt;/p&gt;
  &lt;p&gt;This is secure area.&lt;/p&gt;
  &lt;p&gt;&lt;a href="dashboard.php"&gt;Dashboard&lt;/a&gt;&lt;/p&gt;
  &lt;a href="logout.php"&gt;Logout&lt;/a&gt;
  </code></pre>
  
  <p>And my auth file</p>
  
  <pre><code>&lt;?php
      session_start();
  
      if(!isset($_SESSION["username"])){
        header("Location: login.php");
        exit(); 
      }
  ?&gt;
  </code></pre>
  
  <p>I hope there is someone here that can explain me how to do this.</p>
  
  <p>Thanks!</p>
  
  <p>Loes.</p>