Beispiel #1
0
        }
        $loginAttempt = $user->login(substr($_POST['user'], 0, 30), substr($_POST['token'], 0, 12), $newpassword);
        if ($loginAttempt == 1) {
            $user->login_true();
        } else {
            if ($loginAttempt == 0) {
                $user->login_false();
            } else {
                if ($loginAttempt == 2) {
                    $user->login_attemptFalse();
                } else {
                    if ($loginAttempt == 3) {
                        $user->login_newpass();
                    } else {
                        if ($loginAttempt == 4) {
                            $user->login_brutforce();
                        }
                    }
                }
            }
        }
    } else {
        $user->login_form();
    }
    exit;
    //To ensure security
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">