$DBObject = new DBObject();
$object = new Script();
class DBObject {
protected $mysqliDBnet = null;
protected $mysqliDBcom = null;
public function __construct() {
require_once("config.php");
$this->mysqliDBnet = new mysqli($DB_SERVER_NET, $DB_USER_NET, $DB_PASS_NET, $DB_BASE_NET);
$this->mysqliDBcom = new mysqli($DB_SERVER_COM, $DB_USER_COM, $DB_PASS_COM, $DB_BASE_COM);
}
}
class Script extends DBObject {
function GetNewOrders() {
$query = $this->mysqliDBNET->query("");
}
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://secure.sprintbuyback.com/bbt/includes/ajax/deviceIdentification.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "manufacturer=Apple&esn=355890065519642&g-recaptcha-response=");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$headers = array();
$headers[] = 'Cookie: PHPSESSID=8m3a9ipvt1f2e8ldbc0ee21454; _ga=GA1.2.2077900497.1553365262; _gid=GA1.2.36445421.1553365262; _gaexp=GAX1.2.OCLI7L1pRO2-r_5j1q2A1g.18054.0; _hjIncludedInSample=1; _gat_UA-18377403-22=1';
$headers[] = 'Origin: https://secure.sprintbuyback.com';
$headers[] = 'Accept-Encoding: gzip, deflate, br';
$headers[] = 'Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36';
$headers[] = 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8';
$headers[] = 'Accept: */*';
$headers[] = 'Referer: https://secure.sprintbuyback.com/bbt/?utm_expid=.OCLI7L1pRO2-r_5j1q2A1g.0&utm_referrer=https%3A%2F%2Fwww.google.com%2F';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Dnt: 1';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);