function CheckBlacklistPartner(&$partner, $full_check = FALSE) { $checks = array('email' => array($partner['email']), 'url' => null, 'domain_ip' => null, 'submit_ip' => array($_SERVER['REMOTE_ADDR']), 'word' => array($partner['name']), 'html' => null); foreach ($partner as $key => $value) { if (stristr($key, 'url')) { if (!is_array($checks['url'])) { $checks['url'] = array(); } $checks['url'][] = $value; } } return CheckBlacklist($checks, $full_check); }
function CheckBlacklistAccount(&$account, $full_check = FALSE) { $checks = array('email' => array($account['email']), 'url' => null, 'domain_ip' => null, 'submit_ip' => array($_SERVER['REMOTE_ADDR']), 'word' => array($account['name']), 'html' => null); return CheckBlacklist($checks, $full_check); }