grandmugule
Messages postés9Date d'inscriptionlundi 29 mars 2004StatutMembreDernière intervention 4 juin 2004
-
1 juin 2004 à 16:56
marek_wit
Messages postés14Date d'inscriptiondimanche 7 août 2005StatutMembreDernière intervention23 mars 2009
-
18 juin 2010 à 06:31
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.
function genExtension() {
$quoi= mt_rand(1,mt_rand(1,9));
switch($quoi){
case 1: return "com";
case 2: return "net";
case 3: return "org";
case 4: return "fr";
case 5: return "be";
case 6: return "ca";
case 7: return "ch";
case 8: return "de";
case 9: return "it";
}
}
function antispam() {
echo("
<html><head><title>Anti-spam : le piège pour robots spammeurs</title>
<META name="ROBOTS" content="NOFOLLOW"></head>
18 juin 2010 à 06:31
LE praca.fr ne marche pas => la c nouveaux => http://www.gadu.fr/modules/Anti-spam/antispam.php
@++
16 août 2007 à 23:00
______________________________________________Script
<textarea name= "antispam" cols="100" rows="40">
<?
antispam();
function genChaine($int_max, $int_min=0) {
mt_srand();
if ($int_min !0) $longueur mt_rand($int_max, $int_min);
else $longueur = $int_max;
$mdp = '';
for($i=0; $i<$longueur; $i++){
$quoi= mt_rand(1,mt_rand(1,mt_rand(1,3)));
switch($quoi){
case 1: $mdp .= chr(mt_rand(97,122)); break;
case 2: $mdp .= mt_rand(0,9); break;
case 3: $mdp .= chr(mt_rand(65,90)); break;
}
}
return $mdp;
}
function genExtension() {
$quoi= mt_rand(1,mt_rand(1,9));
switch($quoi){
case 1: return "com";
case 2: return "net";
case 3: return "org";
case 4: return "fr";
case 5: return "be";
case 6: return "ca";
case 7: return "ch";
case 8: return "de";
case 9: return "it";
}
}
function antispam() {
echo("
<html><head><title>Anti-spam : le piège pour robots spammeurs</title>
<META name="ROBOTS" content="NOFOLLOW"></head>
<small> Retour à la page http://alimata.free.fr/antispam.php
<gras>Bouton Anti-spam - http://www.praca.fr/modules/Antispam/antispam.php
<textarea name ="antispam" cols="60" rows="6">http://www.praca.fr/modules/Anti-spam/antispam.php
" alt="Antispam" />
__________________________________________________________fin
A bientôt!
7 juin 2004 à 09:46
je pense que ça : http://www.phpcs.com/code.aspx?ID=17765
s'applique mieux et crypte réellement les mails...
mais bon c déja bien!
2 juin 2004 à 13:26
2 juin 2004 à 11:34
j'aurais mis et
pour que ça soit + lisible
1 juin 2004 à 19:43
1 juin 2004 à 17:19
Un truc qui marche très bien pour vérifier la syntaxe d'une adresse e-mail est les expressions régulières....
http://www.phpcs.com/article.aspx?ID=527
@++
R@f
1 juin 2004 à 16:56