We're sorry but registration to this site is currently disabled. Please try again at a later time or contact the website owner."); /* Registration was successful */ } else if(ret_val === "0" || ret_val === "5") { $('.login.info').html("
Thank you for your registration. You may now log in."); /* User Activation */ } else if(ret_val === "3") { $('.login.info').html("
Thank you, your account has been created. An activation key has been sent to the e-mail address you provided. Please check your e-mail for further information."); /* Admin Activation */ } else if(ret_val === "4") { $('.login.info').html("
Thank you, your account has been created. However, this service requires account activation by an Admin. You will be informed by e-mail when your account has been activated."); /* Registration failed */ } else if (ret_val === "2") { $('.login.info').html("
We're sorry, but an error has occurred and your registration could not be completed.
Please try again at a later time.");
}
//Clear all errors
all_keys = ["pass", "conf_pass", "username", "email", "conf_email"];
all_keys.forEach(function(key) {
elem_id = "#register-"+key+"-error";
if(key in error_array) {
$(elem_id).text(error_array[key]);
$(elem_id).css("display", "block");
}else{
$(elem_id).text("");
$(elem_id).css("display", "none");
}
});
if (ret_val !== "1"){
$("#register_form").css("display", "none");
}
}
});
return false;
});
$("#license_form").trigger('submit');