Beispiel #1
0
function errorcheck()
{
    $authorizer = new Authorizer();
    $errors = array();
    if (!$authorizer->userExists($_POST['username'], $_POST['password'])) {
        $errors[] = 'We don\' t know you!';
    }
    return $errors;
}