Beispiel #1
0
function pkwk_spamfilter($action, $page, $target = array('title' => ''), $method = array(), $exitmode = '')
{
    $progress = check_uri_spam($target, $method);
    if (!empty($progress['is_spam'])) {
        // Mail to administrator(s)
        pkwk_spamnotify($action, $page, $target, $progress, $method);
        // Exit
        spam_exit($exitmode, $progress);
    }
}
Beispiel #2
0
function pkwk_spamfilter($action, $page, $target = array('title' => ''), $method = array(), $exitmode = '')
{
    $progress = check_uri_spam($target, $method);
    if (empty($progress['is_spam'])) {
        spam_dispose();
    } else {
        // TODO: detect encoding from $target for mbstring functions
        //		$tmp = array();
        //		foreach(array_keys($target) as $key) {
        //			$tmp[strings($key, 0, FALSE, TRUE)] = strings($target[$key], 0, FALSE, TRUE);	// Removing "\0" etc
        //		}
        //		$target = & $tmp;
        pkwk_spamnotify($action, $page, $target, $progress, $method);
        spam_exit($exitmode, $progress);
    }
}