topical media & game development

talk show tell print

basic-php-12-admin-auth-admin.php / php



  <?php
  if ((isset(_SESSION['admin_logged']) && 
        _SESSION['admin_logged']) != "" || 
      (isset(_SESSION['admin_password']) && 
        _SESSION['admin_password'] != "")) {
    //Do Nothing!
  } else {
    redirect = _SERVER['PHP_SELF'];
    header("Refresh: 5; URL=admin_login.php?redirect=redirect");
    echo "You are currently not logged in, we are redirecting you, " .
         "be patient!<br>";
    echo "(If your browser doesn't support this, " .
        "<a href=\"admin_login.php?redirect=redirect\">click here</a>)";
    die();
  }
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.