This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="reCaptcha1"></div> | |
<div id="reCaptcha2"></div> | |
<?php if($page == "contact" || $page == "request-a-quote" || $page == "request-a-call-back" || $page == "comdata-demo") { | |
?> | |
<script type="text/javascript"> | |
var CaptchaCallback = function(){ | |
grecaptcha.render('reCaptcha1', {'sitekey' : '<?php echo SITE_KEY;?>'}); | |
grecaptcha.render('reCaptcha2', {'sitekey' : '<?php echo SITE_KEY;?>'}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index.php | |
<script type="text/javascript"> | |
function save(){ | |
var formdata = $('#frm').serialize(); | |
$.ajax({ | |
url: "save.php", | |
type: "POST", | |
data: formdata, | |
success: function(result){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class api{ | |
public function processAPI($module, $jsonData = ''){ | |
$tokenID = "C0QDeJLRiFWY8W0XN0fiO3J05iVcQWW66L6bxSiZLe60vk07WL8a6048e92W4ZlU5m0NRMiJQLV3F50o"; | |
$baseapi = "http://domain.com/apit/api.php"; | |
$ipAddress = "192.185.123.25"; | |
$fields_string = ""; | |
$dataArray = array( |