function _cloudflare_whitelist_comment in CloudFlare 7
Same name and namespace in other branches
- 6 cloudflare.module \_cloudflare_whitelist_comment()
1 call to _cloudflare_whitelist_comment()
File
- ./
cloudflare.module, line 162
Code
function _cloudflare_whitelist_comment($cid, $publishcid = FALSE) {
$ip = _get_ip_address_from_comment($cid);
if (_cloudflare_whitelist_ip($ip) == "OK" && $publishcid) {
// only publish the comment if action returned true.
_cloudflare_publish_comment($cid);
}
}