Image

The Mercury Group

General Contractor of Communications

203-590-5029

Outdoor Heating Mats

Protect your facility from winter slip & falls- click to learn more about outdoor heating mats!

Learn More

Mercury Electric, LLC installs EV Charging Stations across Connecticut.

The Mercury Group is a premier Code Blue installer.

Code Blue Products
CT State Contracts

Utilize our Connecticut State Contracts. Click to learn more!

Got Power Problems?

We've got APC Power Solutions!

The Mercury Group is the one company you can call for the planning, design, build maintenance and upgrade for your entire data center.

recaptchalib.inc

$value )
$req .= $key . ‘=’ . urlencode( stripslashes($value) ) . ‘&’;

// Cut the last ‘&’
$req=substr($req,0,strlen($req)-1);
return $req;
}

/**
* Submits an HTTP POST to a reCAPTCHA server
* @param string $host
* @param string $path
* @param array $data
* @param int port
* @return array response
*/
function _recaptcha_http_post($host, $path, $data, $port = 80) {

$req = _recaptcha_qsencode ($data);

$http_request = “POST $path HTTP/1.0rn”;
$http_request .= “Host: $hostrn”;
$http_request .= “Content-Type: application/x-www-form-urlencoded;rn”;
$http_request .= “Content-Length: ” . strlen($req) . “rn”;
$http_request .= “User-Agent: reCAPTCHA/PHPrn”;
$http_request .= “rn”;
$http_request .= $req;

$response = ”;
if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
die (‘Could not open socket’);
}

fwrite($fs, $http_request);

while ( !feof($fs) )
$response .= fgets($fs, 1160); // One TCP-IP packet
fclose($fs);
$response = explode(“rnrn”, $response, 2);

return $response;
}

/**
* Gets the challenge HTML (javascript and non-javascript version).
* This is called from the browser, and the resulting reCAPTCHA HTML widget
* is embedded within the HTML form it was called from.
* @param string $pubkey A public key for reCAPTCHA
* @param string $error The error given by reCAPTCHA (optional, default is null)
* @param boolean $use_ssl Should the request be made over ssl? (optional, default is false)

* @return string – The HTML to be embedded in the user’s form.
*/
function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
{
if ($pubkey == null || $pubkey == ”) {
die (“To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create“);
}

if ($use_ssl) {
$server = RECAPTCHA_API_SECURE_SERVER;
} else {
$server = RECAPTCHA_API_SERVER;
}

$errorpart = “”;
if ($error) {
$errorpart = “&error=” . $error;
}
return ‘