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

15 lines
356 B
PHP
Raw Normal View History

2009-03-06 03:20:46 +00:00
<?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;
}
}