All pastes #738812 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-16 17:37 UTC
rendered paste body
$success = 'yes'; 
				$curlPost = 'success='.urlencode($success); 
				$ch = curl_init(); 
				curl_setopt($ch, CURLOPT_URL, "http://".$_SERVER['HTTP_HOST']."/profile/checkout_thankyou.php"); 
				curl_setopt($ch, CURLOPT_HEADER, 1); 
				curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
				curl_setopt($ch, CURLOPT_POST, 1); 
				curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost); 
				$data = curl_exec($ch); 
				curl_close($ch); 
				//print_r($data);
				//die();
				
				 echo "<script>window.top.location='".$location."';</script>";