hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
ubuntu
/
bmse.net
/
Upload FileeE
HOME
<?php include('includes/application_includes.php'); if (isset($_REQUEST['email']) AND $_REQUEST['email']!='') { if(isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])) { //get verify response data $verifyResponsefive = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$_POST['g-recaptcha-response']); $responseDatafive = json_decode($verifyResponsefive); if($responseDatafive->success) { $values = array( 'name' => $_REQUEST['name'], 'email' => $_REQUEST['email'], 'city_state' => $_REQUEST['city'], 'insert_dttm' => $current_date ); $info = $db->getRow('SELECT `id` FROM `bmse_preshow_newsletter_subscribers` WHERE `email`="'.$_REQUEST['email'].'" AND `city_state`="'.$_REQUEST['city'].'"'); if (empty($info)) { $subid=$db->insert('bmse_preshow_newsletter_subscribers', $values); # zoho api lead insertion -starts here # $jayParsedAryp = "refresh_token=".$refresh_token."&client_id=".$client_id."&client_secret=".$client_secret."&grant_type=refresh_token"; $make_callp = callAPIP('POST', 'https://accounts.zoho.com/oauth/v2/token?', ($jayParsedAryp)); $responsep = json_decode($make_callp, true); //ArrayDisplay($responsep); $jayParsedAry = array( "data" => array( array( "Account_Name" => $_REQUEST['email'], "itempkid" => "sub".$subid, "Last_Name" => $_REQUEST['name'], "Email" => $_REQUEST['email'], "Event_Interested_In"=>$_REQUEST['city'], "itemtype" => "stayintouch" )), "trigger" =>array( "approval", "workflow", "blueprint" ) ); $make_call = callAPI('POST', 'https://www.zohoapis.com/crm/v2/Contacts', json_encode($jayParsedAry), $responsep['access_token']); $response = json_decode($make_call, true); } } else { echo 'Invalid captcha'; } } else { echo 'Invalid captcha'; } //ArrayDisplay($response); # zoho api lead insertion -ends here # } ?>