Convert source code to UTF-8
[platal.git] / include / profil / verif_general.inc.php
index ede7ec6..564f275 100644 (file)
@@ -30,37 +30,37 @@ function strmatch_whole_words($nouveau, $ancien) {
 if ($nom != $nom_anc &&
     !strmatch_whole_words($nom_comp, $nom_anc_comp) &&
     ($nom_anc_comp == $nom_ini || !strmatch_whole_words($nom_comp, $nom_ini))) {
-    $page->trig("Le nom que tu as choisi ($nom) est trop loin de ton nom initial ($nom_ini)".(($nom_ini==$nom_anc_comp)?"":" et de ton nom précédent ($nom_anc)"));
+    $page->trig("Le nom que tu as choisi ($nom) est trop loin de ton nom initial ($nom_ini)".(($nom_ini==$nom_anc_comp)?"":" et de ton nom précédent ($nom_anc)"));
 }
 
 // validite du prenom
 if ($prenom != $prenom_anc &&
     !strmatch_whole_words($prenom_comp, $prenom_anc_comp) &&
     ($prenom_anc_comp == $prenom_ini || !strmatch_whole_words($prenom_comp, $prenom_ini))) {
-    $page->trig("Le prénom que tu as choisi ($prenom) est trop loin de ton prénom initial ($prenom_ini)".(($prenom_ini==$prenom_anc_comp)?"":" et de ton prénom précédent ($prenom_anc)"));
+    $page->trig("Le prénom que tu as choisi ($prenom) est trop loin de ton prénom initial ($prenom_ini)".(($prenom_ini==$prenom_anc_comp)?"":" et de ton prénom précédent ($prenom_anc)"));
 }
 
-// validité du mobile
-if (strlen(strtok($mobile,"<>{}@&#~\/:;?,!§*_`[]|%$^=")) < strlen($mobile)) {
-    $page->trig("Le champ 'Téléphone mobile' contient un caractère interdit.");
+// validité du mobile
+if (strlen(strtok($mobile,"<>{}@&#~\/:;?,!§*_`[]|%$^=")) < strlen($mobile)) {
+    $page->trig("Le champ 'Téléphone mobile' contient un caractère interdit.");
 }
 
 // correction du champ web si vide
 if ($web=="http://" or $web == '') {
     $web='';
 } elseif (!preg_match("{^(https?|ftp)://[a-zA-Z0-9._%#+/?=&~-]+$}i", $web)) {
-    // validité de l'url donnée dans web
+    // validité de l'url donnée dans web
     $page->trig("URL incorrecte dans le champ 'Page web perso', une url doit commencer par
-                    http:// ou https:// ou ftp:// et ne pas contenir de caractères interdits");
+                    http:// ou https:// ou ftp:// et ne pas contenir de caractères interdits");
 } else {
     $web = str_replace('&', '&amp;', $web);
 }
 
-//validité du champ libre
+//validité du champ libre
 if (strlen(strtok($freetext,"<>")) < strlen($freetext))
 {
-    $page->trig("Le champ 'Complément libre' contient un caractère interdit.");
+    $page->trig("Le champ 'Complément libre' contient un caractère interdit.");
 }
 
-// vim:set et sws=4 sts=4 sw=4:
+// vim:set et sws=4 sts=4 sw=4 enc=utf-8:
 ?>