Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.post('../../system/app/ajaxrequests/register.php', { register: "", referrer: referrer, motto: motto, avatar: avatar, username: username, email: email, password: password, password_repeat: password_repeat, sec_word: secword}, function(errorCode)
- {
- if (errorCode == 'succes' || errorCode == 'ref_errorsucces')
- {
- window.location.href = "/me";
- }
- else
- {
- window.location.href = "#top";
- $(".error").fadeIn("18000").css('display', 'block');
- console.log(errorCode);
- if (language == 'nl')
- {
- if (errorCode == "empty_username")
- {
- $(".error").text("Je hebt geen gebruikersnaam ingevoerd.");
- }
- else if (errorCode == "register_disable")
- {
- $(".error").text("Registreren is op dit moment niet mogelijk!");
- }
- else if (errorCode == "empty_password")
- {
- $(".error").text("Je hebt geen wachtwoord ingevoerd.");
- }
- else if (errorCode == "empty_password_repeat")
- {
- $(".error").text("Je hebt je wachtwoord niet bevestigd.");
- }
- else if (errorCode == "empty_email")
- {
- $(".error").text("Je hebt geen email ingevoerd.");
- }
- else if (errorCode == "valid_email")
- {
- $(".error").text("Je email is geen geldig email adres.");
- }
- else if (errorCode == "used_username")
- {
- $(".error").text("Deze gebruikersnaam bestaat jammer genoeg al.");
- }
- else if (errorCode == "used_email")
- {
- $(".error").text("Dit email adres staat al in onze database.");
- }
- else if (errorCode == "short_password")
- {
- $(".error").text("Je wachtwoord moet uit minimaal 6 karakters bestaan.");
- }
- else if (errorCode == "password_repeat_error")
- {
- $(".error").text("Je wachtwoorden komen niet met elkaar overeen.");
- }
- else if (errorCode == "to_many_ip")
- {
- $(".error").text("Je mag maar maximaal 3 accounts op dit IP registreren.");
- }
- else if (errorCode == "robot")
- {
- $(".error").text("Ik ben geen robot.");
- }
- else if (errorCode == 'ref_error')
- {
- $(".error").text('Er is een fout opgetreden met jouw referrer. De referrer mag niet afkomstig zijn van jouw IP.');
- }
- else
- {
- $(".error").text("Er is een fout opgetreden! Neem a.u.b. contact op met de Website Beheerder.").css('display', 'block');
- }
- }
- else if (language == 'es')
- {
- if (errorCode == "empty_username")
- {
- $(".error").text("You forget enter a username.");
- }
- else if (errorCode == "register_disable")
- {
- $(".error").text("Registration is not enabled by the administrator.");
- }
- else if(errorCode == "short_username")
- {
- $(".error").text("Seems like you're username is too short.");
- }
- else if(errorCode == "short_sec_word")
- {
- $(".error").text("Dang! Your secret-word is too short.");
- }
- else if(errorCode == "empty_sec_word")
- {
- $(".error").text("Fiddle Sticks! You're secret-word is completely empty.");
- }
- else if (errorCode == "empty_password")
- {
- $(".error").text("You forget enter a password.");
- }
- else if (errorCode == "empty_password_repeat")
- {
- $(".error").text("You forget enter the conformation password.");
- }
- else if (errorCode == "empty_email")
- {
- $(".error").text("You forget enter a email adres.");
- }
- else if (errorCode == "valid_email")
- {
- $(".error").text("You email adres isn't valid.");
- }
- else if (errorCode == "used_username")
- {
- $(".error").text("This username is already in use.");
- }
- else if (errorCode == "used_email")
- {
- $(".error").text("This email adres is already in use.");
- }
- else if (errorCode == "short_password")
- {
- $(".error").text("Your password must be at least 6 characters.");
- }
- else if (errorCode == "password_repeat_error")
- {
- $(".error").text("The passwords don't match.");
- }
- else if (errorCode == "to_many_ip")
- {
- $(".error").text("You can only register up to three accounts on this IP.");
- }
- else if (errorCode == "robot")
- {
- $(".error").text("I'm not a robot.");
- }
- else if (errorCode == 'ref_error')
- {
- $(".error").text('Er is een fout opgetreden met jouw referrer. De referrer mag niet afkomstig zijn van jouw IP.');
- }
- else
- {
- $(".error").text("An error has occurred. Please contact thggge CMS administrator.").css('display', 'block');
- }
- }
- else
- {
- if (errorCode == 'empty_username')
- {
- $(".error").text("You forget enter a username.");
- }
- else if (errorCode == "register_disable")
- {
- $(".error").text("Registration is not enabled by the administrator.");
- }
- else if (errorCode == "empty_password")
- {
- $(".error").text("You forget enter a password.");
- }
- else if (errorCode == "empty_password_repeat")
- {
- $(".error").text("You forget enter the conformation password.");
- }
- else if (errorCode == "empty_email")
- {
- $(".error").text("You forget enter a email adres.");
- }
- else if (errorCode == "valid_email")
- {
- $(".error").text("You email adres isn't valid.");
- }
- else if (errorCode == "used_username")
- {
- $(".error").text("This username is already in use.");
- }
- else if (errorCode == "used_email")
- {
- $(".error").text("This email adres is already in use.");
- }
- else if (errorCode == "short_password")
- {
- $(".error").text("Your password must be at least 6 characters.");
- }
- else if (errorCode == "password_repeat_error")
- {
- $(".error").text("The passwords don't match.");
- }
- else if (errorCode == "to_many_ip")
- {
- $(".error").text("You can only register up to three accounts on this IP.");
- }
- else if (errorCode == "robot")
- {
- $(".error").text("I'm not a robot.");
- }
- else if (errorCode == 'ref_error')
- {
- $(".error").text('Referrer user is not a good match!');
- }
- else
- {
- $(".error").text("An error has occurred. Please contact the CMS administrator.").css('display', 'block');
- console.log(errorCode);
- }
- }
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement