Would header statement work in inner code?
<p>Please see code below:</p>

<pre><code>  &lt;?php



  require_once("initvars.php");
  require_once("config.php");

    if( !$auth-&gt;id ){
 //NOT logged in
 header("location: index.php"); die();
    }
</code></pre>
