include "config.php"; $dologin = 0; $username = ""; $password = ""; if (isset($_REQUEST["dologin"])) $dologin=$_REQUEST["dologin"]; if (isset($_REQUEST["username"])) $username=$_REQUEST["username"]; if (isset($_REQUEST["password"])) $password=$_REQUEST["password"]; if ($dologin == 1) { if (($adminPassword == $password) && ($adminUser == $username)) { session_start(); $_SESSION['loggedin'] = 1; header("Location: index.php"); } else { session_start(); session_destroy(); header("Location: error.php?errorCode=1"); } } include "header.php"; ?>