18 lines
483 B
JavaScript
18 lines
483 B
JavaScript
function checkLoggedIn() {
|
|
if (confirm("You are already logged in!\nDo you want to logout?\nPress ok to logout.") == true) {
|
|
window.location.href = "logout.php";
|
|
} else {
|
|
window.location.href = "profile.php";
|
|
}
|
|
}
|
|
|
|
function bannedAlert(){
|
|
alert("Your account is banned");
|
|
}
|
|
|
|
function emailNotConfirmed(userID){
|
|
if (confirm("Your email is not confirmed.\nPress ok to send another confirmation.") == true) {
|
|
sendConfirmEmail(userID);
|
|
}
|
|
|
|
} |