"; exit; } else { // Set the session permissiong level if the login is an administrator: $_SESSION['accesstype'] = "admin"; $_SESSION['name'] = $rsadmin['name']; $_SESSION['uid'] = $rsadmin['adminid']; // Forward to admin page: echo ""; exit; } ?>