Source of file Recaptcha.php
Size: 0,438 Bytes - Last Modified: 2021-12-23T10:19:36+00:00
/var/www/docs.ssmods.com/process/src/code/Recaptcha.php
12345678910111213141516 | <?php namespace SaltedHerring; class Recaptcha { public static function verify($response, $api = null) { $api = !empty($api) ? $api : \Config::inst()->get('GoogleAPIs','Recaptcha'); $result = RPC::send('https://www.google.com/recaptcha/api/siteverify', array( 'secret' => $api, 'response' => $response )); $result = json_decode($result); return $result; } } |