westdc-zf1/application/models/validator/SpamBlock.php

15 lines
356 B
PHP
Executable File

<?php
include_once("bcspamblock.php");
class Validator_SpamBlock extends Zend_Validate_Abstract {
const NOT_MATCH = '机器人阻止';//'spam blocked!';
protected $_messageTemplates = array(
self::NOT_MATCH => '机器人阻止'
);
public function isValid($value) {
$result=bcspamblock_verify();
return $result;
}
}