Beispiel #1
0
    if ($login['State'] == true) {
        echo $USER->showEmail();
    } else {
        echo $login['Msg'];
    }
}
if (isset($_POST['register-button'])) {
    $register = $USER->Register($_POST['Remail'], $_POST['RPass1'], $_POST['RPass2'], $_POST['g-recaptcha-response']);
    if ($register['State'] == true) {
        echo "We have register your email to our databases.";
    } else {
        echo $register['Msg'];
    }
}
if (isset($_POST['logout-button'])) {
    $USER->Logout();
}
?>

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <form id="login" method="POST">     
        <input id="Lemail" name="Lemail" placeholder="Email" required="required" type="email" autocomplete="off">
        <input id="LPass" name="LPass" placeholder="Password" required="required" type="password" autocomplete="off">
        <button type="submit" id="login-button" name="login-button">Dive</button>
                
    </form>