array(
'header' => "Authorization: Basic " . base64_encode("$username:$password")
)
));
if(!isset($_GET['aff'])) { exit(); }
//include("meekrodb.2.0.class.php");
function curPageURL() {
$pageURL = 'http';
//if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$user = file_get_contents("http://notebook.webformance.hu/interface/user.php?id=".$_GET['aff'],false,$context);
$user = json_decode($user,true);
$cart_items = file_get_contents("http://notebook.webformance.hu/interface/cartitems.php?id=".$_GET['aff'],false,$context);
$cart_items = json_decode($cart_items,true);
$c_str = "";
foreach($cart_items as $c_item) { $c_str .= $c_item['item_name'].","; }
$c_str = substr($c_str, 0, -1);
?>
Én már játszottam a notebook.hu nyereményjátékán, próbáld ki te is!
Tovább a játékra!