15 lines
356 B
PHP
15 lines
356 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|