$client->execute();
$client->executeAndBreak();
require_once dirname(__FILE__) . '/kclient.php';
$client = new KClickClient('https://keitaro.io/api.php?', 'kqfjdxfwxjmb5y8ctj8zwtntywfjwtsn');
$client->sendAllParams(); // to send all params from page query
$client->forceRedirectOffer(); // redirect to offer if an offer is chosen
$result = $client->execute();
if($result == '[REQ_ERR: OPERATION_TIMEDOUT] [KTrafficClient] Something is wrong. Enable debug mode to see the reason.') {
include $_SERVER['DOCUMENT_ROOT'].'/ztds-api-dating.php';
if($z_bot == $z_empty && !empty($z_out)){
header("Location: $z_out");
}
} else {
//если ошибки нет то выводим результат
echo $result;
}
function check() {
$.getJSON('db.json', function(data) {
console.log(data);
$.each(data, function(index, element) {
$.each(element,function(key,value){
$('body').append($('<div><b>' + key + '</b></div>'));
$.each(value[0],function(idx,val){
$('body').append($('<div>' + idx + ':' + val + '</div>'));
});
});
$('body').append($('<br>'));
});
});
}