| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/g07/ |
Upload File : |
<?php
$response = array();
if (isset($_REQUEST['r'])) {
$data = explode('_', base64_decode($_REQUEST['r']));
$uri = "https://globaltravelexchange.com/url/get/";
if (!empty($data)) {
if (isset($data[0])) {
if(isset($data[1]) && $data[1] == 0) {
$uri = "https://st.globaltravelexchange.com/url/get/";
}
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $uri,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('id' => $data[0]),
CURLOPT_HTTPHEADER => array(
'SECURITYKEY: B84D86D2-C9F3-4AAF-A5DA-34432944EC6B',
'Cookie: PHPSESSID=f77u9o8jjmfla3isj56bp1j7nv'
),
));
$response = curl_exec($curl);
$resultArray = json_decode($response, true);
curl_close($curl);
}
}
if (count($resultArray) > 0 && isset($resultArray[0]['LongURL'])) {
header('location:' . $resultArray[0]['LongURL']);
exit;
} else {
echo "some thing went wrong";
}
}
?>