function text_generation(lng_text, text_pattern)
{
/**
* Fonction chargé de créer un texte aléatoirement
* @author Yves ASTIER
* @param int lng_text Longueur du texte à générer
* @param string text_pattern Texte servant de base pour la génération du texte
* @return string Retourne le texte généré
*/
var n = '';
for(var i=0;i';
if(!champ_c_password)
a += 'Le mot de passe doit comporter entre 1 et 32 caractères de type alphabétique ou numérique et/ou _-.
';
if(!champ_c_password2)
a += 'Les mots de passe ne sont pas identiques
';
if(!champ_domain)
a += 'Le sous-domaine saisi est incorrect
';
subdomain_bdd = mboost_function_verif_subdomain($("#domain").val());
if(subdomain_bdd)
{
permute_fond(false, "#domain");
a += 'Le sous-domaine choisi existe déjà. Merci d\'en choisir un autre.
';
}
mail_bdd = mboost_function_verif_mail($("#c_email").val());
if(mail_bdd)
{
permute_fond(false, "#c_email");
a += 'L\'email que vous avez saisi existe déjà.
';
}
check_c_agree = $("#c_agree:checked").length;
if(!check_c_agree)
a += 'Vous n\'avez pas accepté les conditions générales d\'affiliation
';
if(champ_c_email && champ_c_password && champ_c_password2 && champ_domain && !subdomain_bdd && !mail_bdd && check_c_agree)
return true;
else
{
$("#js_erreur").removeClass().addClass("visible").addClass("js_problem").html(a);
return false;
}
});
});