Sindbad~EG File Manager
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Credit Score Information</title>
<link rel="stylesheet" href="./cardstyle.css">
</head>
<body>
<?php
$fname = trim($_POST["fname"]);
$lname = trim($_POST["lname"]);
$street = trim($_POST["street"]);
$city = trim($_POST["city"]);
$state = trim(strtoupper($_POST["state"]));
$zip = trim($_POST["zip"]);
//<?php
$curl = curl_init();
$shakeel ='{
"appKey": "DCDBFB44-A1AD-40A9-A9FA-F3DD912D5B28",
"address": {
},
"productCode": "offers-1221-decision-1",
"userConsent": {
"ipAddress": "0.0.0.0",
"timestamp": "2021-06-01T12:12:13.000Z",
"url": "https://sandbox.array.io"
}
}';
$decode_shakeel = json_decode($shakeel);
$decode_shakeel->firstName = $fname;
$decode_shakeel->lastName = $lname;
$decode_shakeel->address->street = $street;
$decode_shakeel->address->city = $city;
$decode_shakeel->address->state = $state;
$decode_shakeel->address->zip = $zip;
if(!empty($_POST["dob"])) {
$dob = $_POST["dob"];
$decode_shakeel->dob = $dob;
}else if(!empty($_POST["ssn"])){
$ssn = $_POST["ssn"];
$decode_shakeel->ssn = $ssn;
}
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://array.io/api/offers/v2',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode($decode_shakeel),
CURLOPT_HTTPHEADER => array(
'x-credmo-client-token: 6C4BFF1C-C8B1-4FCE-A99E-FB4853D762AC',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
// echo $response;
if($response == null){
echo "No response";
}
else{
echo '<div class="payment-title">';
echo '<h1>Credit Score Information</h1>';
echo '</div>';
echo '<div class="container preload">';
echo '<div class="creditcard">';
echo '<div class="front">';
echo '<div id="ccsingle"></div>';
echo '<svg version="1.1" id="cardfront" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px" viewBox="0 0 750 471" style="enable-background:new 0 0 750 471;" xml:space="preserve">';
echo '<g id="Front">';
echo '<g id="CardBackground">';
echo '<g id="Page-1_1_">';
echo '<g id="amex_1_">';
echo '<path id="Rectangle-1_1_" class="lightcolor grey" d="M40,0h670c22.1,0,40,17.9,40,40v391c0,22.1-17.9,40-40,40H40c-22.1,0-40-17.9-40-40V40
C0,17.9,17.9,0,40,0z" />';
echo '</g>';
echo '</g>';
echo '<path class="darkcolor greydark" d="M750,431V193.2c-217.6-57.5-556.4-13.5-750,24.9V431c0,22.1,17.9,40,40,40h670C732.1,471,750,453.1,750,431z" />';
echo '</g>';
echo '<text transform="matrix(1 0 0 1 60.106 295.0121)" id="svgnumber" class="st2 st3 st4">0123 4567 8910 1112</text>';
echo '<text transform="matrix(1 0 0 1 54.1064 428.1723)" id="svgname" class="st2 st5 st6">********</text>';
echo '<text transform="matrix(1 0 0 1 54.1074 389.8793)" class="st7 st5 st8">cardholder name</text>';
echo '<text transform="matrix(1 0 0 1 479.7754 388.8793)" class="st7 st5 st8">expiration</text>';
echo '<text transform="matrix(1 0 0 1 65.1054 241.5)" class="st7 st5 st8">card number</text>';
echo '<g>';
echo '<text transform="matrix(1 0 0 1 574.4219 433.8095)" id="svgexpire" class="st2 st5 st9">01/23</text>';
echo '<text transform="matrix(1 0 0 1 479.3848 417.0097)" class="st2 st10 st11">VALID</text>';
echo '<text transform="matrix(1 0 0 1 479.3848 435.6762)" class="st2 st10 st11">THRU</text>';
echo '<polygon class="st2" points="554.5,421 540.4,414.2 540.4,427.9 " />';
echo '</g>';
echo '<g id="cchip">';
echo '<g>';
echo '<path class="st2" d="M168.1,143.6H82.9c-10.2,0-18.5-8.3-18.5-18.5V74.9c0-10.2,8.3-18.5,18.5-18.5h85.3
c10.2,0,18.5,8.3,18.5,18.5v50.2C186.6,135.3,178.3,143.6,168.1,143.6z" />';
echo '</g>';
echo '<g>';
echo '<g>';
echo ' <rect x="82" y="70" class="st12" width="1.5" height="60" />';
echo '</g>';
echo '<g>';
echo ' <rect x="167.4" y="70" class="st12" width="1.5" height="60" />';
echo '</g>';
echo '<g>';
echo '<path class="st12" d="M125.5,130.8c-10.2,0-18.5-8.3-18.5-18.5c0-4.6,1.7-8.9,4.7-12.3c-3-3.4-4.7-7.7-4.7-12.3
c0-10.2,8.3-18.5,18.5-18.5s18.5,8.3,18.5,18.5c0,4.6-1.7,8.9-4.7,12.3c3,3.4,4.7,7.7,4.7,12.3
C143.9,122.5,135.7,130.8,125.5,130.8z M125.5,70.8c-9.3,0-16.9,7.6-16.9,16.9c0,4.4,1.7,8.6,4.8,11.8l0.5,0.5l-0.5,0.5
c-3.1,3.2-4.8,7.4-4.8,11.8c0,9.3,7.6,16.9,16.9,16.9s16.9-7.6,16.9-16.9c0-4.4-1.7-8.6-4.8-11.8l-0.5-0.5l0.5-0.5
c3.1-3.2,4.8-7.4,4.8-11.8C142.4,78.4,134.8,70.8,125.5,70.8z" />';
echo '</g>';
echo '<g>';
echo ' <rect x="82.8" y="82.1" class="st12" width="25.8" height="1.5" />';
echo '</g>';
echo '<g>';
echo ' <rect x="82.8" y="117.9" class="st12" width="26.1" height="1.5" />';
echo '</g>';
echo '<g>';
echo '<rect x="142.4" y="82.1" class="st12" width="25.8" height="1.5" />';
echo '</g>';
echo '<g>';
echo ' <rect x="142" y="117.9" class="st12" width="26.2" height="1.5" />';
echo '</g>';
echo '</g>';
echo '</g>';
echo '</g>';
echo '<g id="Back">';
echo '</g>';
echo '</svg>';
echo '</div>';
echo '<div class="back">';
echo '<svg version="1.1" id="cardback" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px" viewBox="0 0 750 471" style="enable-background:new 0 0 750 471;" xml:space="preserve">';
echo '<g id="Front">';
echo '<line class="st0" x1="35.3" y1="10.4" x2="36.7" y2="11" />';
echo '</g>';
echo '<g id="Back">';
echo '<g id="Page-1_2_">';
echo '<g id="amex_2_">';
echo '<path id="Rectangle-1_2_" class="darkcolor greydark" d="M40,0h670c22.1,0,40,17.9,40,40v391c0,22.1-17.9,40-40,40H40c-22.1,0-40-17.9-40-40V40
C0,17.9,17.9,0,40,0z" />';
echo '</g>';
echo '</g>';
echo '<rect y="61.6" class="st2" width="750" height="78" />';
echo '<g>';
echo '<path class="st3" d="M701.1,249.1H48.9c-3.3,0-6-2.7-6-6v-52.5c0-3.3,2.7-6,6-6h652.1c3.3,0,6,2.7,6,6v52.5
C707.1,246.4,704.4,249.1,701.1,249.1z" />';
echo '<rect x="42.9" y="198.6" class="st4" width="664.1" height="10.5" />';
echo '<rect x="42.9" y="224.5" class="st4" width="664.1" height="10.5" />';
echo '<path class="st5" d="M701.1,184.6H618h-8h-10v64.5h10h8h83.1c3.3,0,6-2.7,6-6v-52.5C707.1,187.3,704.4,184.6,701.1,184.6z" />';
echo '</g>';
echo '<text transform="matrix(1 0 0 1 621.999 227.2734)" id="svgsecurity" class="st6 st7">985</text>';
echo '<g class="st8">';
echo '<text transform="matrix(1 0 0 1 518.083 280.0879)" class="st9 st6 st10">security code</text>';
echo '</g>';
echo '<rect x="58.1" y="378.6" class="st11" width="375.5" height="13.5" />';
echo '<rect x="58.1" y="405.6" class="st11" width="421.7" height="13.5" />';
echo '<text transform="matrix(1 0 0 1 59.5073 228.6099)" id="svgnameback" class="st12 st13">John Doe</text>';
echo '</g>';
echo '</svg>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '<div class="form-container">';
echo '<div class="field-container">';
echo '<label for="name" style="color: #000; font-size:14px;" >Card Holder</label>';
echo '<input id="name" maxlength="20" readonly value="'.$fname.' '.$lname.'" type="text">';
echo '</div>';
echo '<div class="field-container">';
echo '<label for="expirationdate" style="color: #000; font-size:14px;" >Credit Score';
echo '<input type="text" value="'.json_decode($response)->results->ScoreBucket.'" readonly >';
echo '</div>';
echo '</div>';
}
curl_close($curl);
?>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists