Fixing a small css issue in the user class.
[elgg.git] / units / admin / spam_check.php
blobfdaf9fb372811fcfa5805f365dacf183512d226c
1 <?php
3 // If isset $parameter (string), returns true if spam
5 if (isset($parameter)) {
6 if (!$spam = get_field('datalists','value','name','antispam')) {
7 $spam = "";
10 $spam = str_replace("\r","",$spam);
11 $spam = explode("\n",$spam);
13 foreach($spam as $regexp) {
14 if (strlen($regexp) > 0) {
15 if (substr($regexp,0,1) != "#") {
16 if (@preg_match("/" . trim($regexp) . "/is", $parameter)) {
17 $run_result = true;