X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins%2Fauto%2Fcouteau_suisse%2Fcouteau_suisse%2Foutils%2Fspam_options.php;fp=www%2Fplugins%2Fauto%2Fcouteau_suisse%2Fcouteau_suisse%2Foutils%2Fspam_options.php;h=fed4112db983de0fad1e2faf73ac9cee717ebc68;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/plugins/auto/couteau_suisse/couteau_suisse/outils/spam_options.php b/www/plugins/auto/couteau_suisse/couteau_suisse/outils/spam_options.php new file mode 100644 index 0000000..fed4112 --- /dev/null +++ b/www/plugins/auto/couteau_suisse/couteau_suisse/outils/spam_options.php @@ -0,0 +1,54 @@ +'.$_POST[$_GET['var']].'
'._T('couteau:explique_spam').'
' + ); + exit; + } +} +unset($ip_); + +function cs_test_spam(&$spam, &$texte, &$test) { + foreach($spam[0] as $m) $test |= strpos($texte, $m)!==false; + if(!$test && $spam[1]) $test = preg_match($spam[1], $texte); + if(!$test && $spam[2]) { + include_spip('inc/charsets'); + $test = preg_match($spam[2], charset2unicode($texte)); + } + return $test; +} + +?> \ No newline at end of file