0 ) { // if they are in the database register the user id $_SESSION['aff_valid_user'] = $userid; // logout admin if he was logged in before $_SESSION['aff_valid_admin'] = ''; unset($_SESSION['aff_valid_admin']); echo ""; exit; } } include "header.php"; if(aff_check_security()) { aff_redirect('members_only.php'); exit; } else { if (isset($_POST['userid'])) { // if they've tried and failed to log in echo AFF_I_CANNOTLOG; } else { // they have not tried to log in yet or have logged out echo AFF_I_NOTLOGGED; } // provide form to log in ?>
:
: