public static function test($text, $author, $email, $website) { // if no API key set if (!empty(self::$apiKey)) { return sblamtestpost(array($text, $author, $email, $website), self::$apiKey); } else { return 0; } }
function verify($fields = null) { require_once './lib/sblam/sblamtest.php'; if (sblamtestpost($fields, $this->key) < 0) { $_SESSION['human'] = 1; return 1; } $this->errorId = 'badSb'; return 0; }