{$_POST["adcopy_challenge"]}, {$_POST["adcopy_response"]}
"; // print_r($resp); if (!$resp->is_valid) { $error = "The question wasn't answered correctly.  Please try again.

"; } else { // determine the correct x-drivers site $xServerName = str_replace("drivers","Drivers",ucfirst(str_replace("www.","",$serverName))); // get expire time for md5 encoding $encodedArray = array(); $now = date('U'); $expireMins = 20; // user has 20 minutes to download their driver $expireTime = $now + ($expireMins*60); $encodedArray['expireTime'] = $expireTime; $encodedArray['driverid'] = $driverId; $encodedArray['xs'] = $xServerName; $cc = serialize($encodedArray); $encodedCode = urlencode(base64_encode(encode(base64_encode($cc)))); $url = "http://www.driverguide.com/driver/detail.php?driverid={$driverId}&xdl=1&action=download&expcode={$encodedCode}"; header("Location: ".$url); exit; } } // determine the correct site name for header title $xServerNameTitle = str_replace("-drivers"," Driver",ucfirst(str_replace("www.","",str_replace(".com","",$serverName)))); $xServerShortName = str_replace("-drivers","",strtolower(str_replace("www.","",str_replace(".com","",$serverName)))); $body = <<< EOT {$xServerNameTitle} Download


$currentdate
 


 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{$error}To Download the file, please prove that you are human by solving the puzzle below.
You are not signing up for anything by doing this.


EOT; $body .= solvemedia_get_html("QFtvW745XJut9Qn4ZHwuIfCTe6bMlHC9"); $body .= <<< EOT EOT; print $body; print "
"; print "  
 
 
 
 
 
 
 
 
 
 
"; ?>