ZBlogPHP::ValidCmtKey PHP Method

ValidCmtKey() public method

验证评论key
public ValidCmtKey ( $id, $key ) : boolean
$id
$key
return boolean
    public function ValidCmtKey($id, $key)
    {
        $nowkey = md5($this->guid . $id . date('Ymdh'));
        $nowkey2 = md5($this->guid . $id . date('Ymdh', time() - 3600 * 1));
        return $key == $nowkey || $key == $nowkey2;
    }
ZBlogPHP